By Date: <-- -->
By Thread: <-- -->

OPAL: SIP Transports deletion, when STUN enabled



On Fri, 3 Feb 2006 03:15:50 +0100
"Jacek Stobnicki" <grippenek (at) go2.pl> wrote:

..deleted

> 1. Unfortunately I must say that this problem is still not corrected - in
> Windows environment.
> 
> I've tested it with CVS HEAD from 29.01, when you wrote that you've fixed
> it, same in code from today - It still crashes. I've debugged that code, and
> conclusions are the same - it is possible that endpoint is deleted before
> deletion of all its transport threads (which are using class variables
> already deallocated), even without debugger I can see this in a trace from
> library.

I missed the original post, so I'm sorry for entering the middle of a
conversation.

May I ask why are you deleting the endpoint?

> After closer look at synchronization mechanisms available in pwlib, I've
> used PCondMutex as a counter of SIP transport threads. Destructor of
> SIPEndPoint waits until this counter reaches 0 - then returns.
> 
> In attachnment I send modified sources (from HEAD 02 Feb 2006) - take a look
> to them, maybe my workaround is not valid in 100% of cases, but I didn't
> test it intensievely yet.
> 
> 2. Another problem which I've spotted: during deletion of endpoints,
> sometimes OPAL "likes" to hang up in transport thread (in HandlePDU as I can
> remember), it fires assertion related to heap allocation. When I have this
> problem once again I'll try to grab stack trace, and other usefull files to
> help correcting this issue, which sometimes is very annoying....

Again - why are you deleting the endpoint?

   Craig

-----------------------------------------------------------------------
 Craig Southeren          Post Increment ? VoIP Consulting and Software
 craigs (at) postincrement.com.au                   www.postincrement.com.au

 Phone:  +61 243654666      ICQ: #86852844
 Fax:    +61 243673140      MSN: craig_southeren (at) hotmail.com
 Mobile: +61 417231046      

 "It takes a man to suffer ignorance and smile.
  Be yourself, no matter what they say."   Sting

------------------------------------------------------------------------
Check the FAQ before asking! - http://www.openh323.org/~openh323/fom.cgi
The OpenH323 Project mailing list, using Mailman. To unsubscribe or
change your subscription options, goto
http://www.openh323.org/mailman/listinfo/openh323
Maintained by Quicknet Technologies, Inc - http://www.quicknet.net
------------------------------------------------------------------------