Actually the problem was also present with older versions. Not 1.0.9 thought, but if I recall right the invalid pointer started to appear in 1.1.0 or something like that. That's one of the reasons why I did not update earlier.
Furthermore doing the solution 2 does get rid of the invalid pointer error. But I just found out that 1.3.4 is out, so I'll give it a try first. Thanks Nick and David! -- Rami Saarinen --- Nick Liebmann <[EMAIL PROTECTED]> wrote: > I discovered I was using a older version of commonc++, so I dont think > this is your problem. > I am sure David will come up with something > > Nick > > Rami Saarinen wrote: > > >--- Nick Liebmann <[EMAIL PROTECTED]> 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 > > > > > > > > > > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo _______________________________________________ Bug-commoncpp mailing list Bug-commoncpp@gnu.org http://lists.gnu.org/mailman/listinfo/bug-commoncpp