bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Haunting free(): invalid pointer 0x8a11604!


From: Rami Saarinen
Subject: Re: Haunting free(): invalid pointer 0x8a11604!
Date: Fri, 11 Feb 2005 09:59:48 -0800 (PST)

--- Nick Liebmann <address@hidden> wrote:

> 
> Ok, your problem is that the TCPSession::final calls delete this when 
> the thread ends.
> 
> Your choices are
> 
> 1) Dont call tcp->detach(), call start()... the thread will be deleted 
> automaticall by TCPSession::final
> 2) override virtual void final() in TCPSessionThread, to do nothing.
> 
> For the library, TCPSession::final should say if(!isDetached()) delete
> this;

Thanks Nick! I'll check this out on monday. 


--
Rami Saarinen



                
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]