Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : IdCmdTCPClient severe bug in Indy10

www.cryer.info
Managed Newsgroup Archive

IdCmdTCPClient severe bug in Indy10

Subject:IdCmdTCPClient severe bug in Indy10
Posted by:"Gabriel Corneanu" (gabrielcorneanu@nospam.yahoo.com)
Date:Thu, 7 Jul 2005 07:40:10

Hello,
I was using a TIdCmdTCPServer in a small application.
The first impulse was to use a TIdCmdTCPClient on the client side.
The actions were very simple: the client connects, sends a string request,
reads the response and at the end disconnects. This can be done several
times.
The big surprise: the disconnect call frees the component! That's because
the listener thread is freed, this one frees the context, which in turn
frees the owner connection (the client in this case). Any call from now on
is a potential AV.
Is this a bug or am I mistaken??

Thanks,
Gabriel

Replies:

www.cryer.info
Managed Newsgroup Archive