[reSIProcate] Maybe there have a bug with 1.3 RC1
I'm using RC1 for my UA today, sometime I got a error with StackThread.cxx:
 
Unhandled exception at 0x00720069 in UASampleD.exe: 0xC0000005: Access violation writing location 0x109d88de.
 
 
The Visual C++ 2005 call stack is stoped on StackThread.cxx line 36:
 
            beforeProcess();
            mStack.process(fdset);   <------------ This line.
            afterProcess();
 
 
This is appears when I shutdown the dum and stack - With 1.22 I do not encounter this issue.
 
I have created two threads for dum and stack: 
MyDumThread is derived from ThreadIf.
 
resip::StackThread mStackThread;
 
 
 
There are my source code :
MyDumThread::thread()
{
 
while(isShutdown() == false)
{
 for (;;)
 {
  Lock lock(mDumMutex);
  if (mDum.process() == false)
  {
   return;
  }
 } 
}
}
 
 
MyDumThread::release()
{
Lock lock(mDumMutex);
 shutdown();
 mDum.shutdown();
 mStackThread.shutdown();
 waitForShutdown(150);
 
 while(waitForShutdown(20) == false)
 {  
 }
 ThreadIf::detach();
 Sleep(150);
 while(mDumCanbeShutDown == false)
 {
  mDum.process();
  Sleep(20);
 }
 
 mStackThread.waitForShutdown(150);
 while(mStackThread.waitForShutdown(20) == false)
 {  
 
 }
 mStackThread.detach();
 
}