[Top][All Lists]
[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: |
Mon, 14 Feb 2005 04:34:13 -0800 (PST) |
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 <address@hidden> 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 <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
> >
> >
> >
> >
>
>
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
- Haunting free(): invalid pointer 0x8a11604!, Rami Saarinen, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, David Sugar, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, Nick Liebmann, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, David Sugar, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, Nick Liebmann, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, Rami Saarinen, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, Nick Liebmann, 2005/02/10
- Re: Haunting free(): invalid pointer 0x8a11604!, Rami Saarinen, 2005/02/11
- Re: Haunting free(): invalid pointer 0x8a11604!, David Sugar, 2005/02/10