Re: [OpenSIPStack] Unhandled exception
Brought to you by:
joegenbaclor
From: OpenSIPStack F. <ope...@op...> - 2008-07-17 16:00:44
|
I do not see any harm done so I added it in CVS. However, m_ThreadPool will delete all threads when SIPUserAgent gets deleted. If they seem to be running forever, then it means SIPUserAgent is staying forever too. Deleting SIPUserAgent will delete the threads. Joegen > {quote:title=optotronic wrote:}{quote} > I think I found one shutdown problem. In SIPUserAgent.cxx: > > {quote}void SIPUserAgent::Terminate() > { > GetTransportManager()->Terminate(); > m_SIPStack.Terminate( m_ThreadPool.GetSize() ); > m_ThreadPool.RemoveAll(); // <- added this > }{quote} > > I added the last line to remove the workers from the thread pool. Otherwise, they appeared to be running forever. > > Does that look right, or is there somewhere else where they should be destroyed, that is apparently not working properly? > > I am still frequently getting hangs on shutdown, especially on multicore systems, but this seems to be an improvement. I'm using OSSPhone (MFC) for testing, as it seems to have the closest behavior to my Delphi test app. > > Finest regards, > Bill Root |