Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: TIdTCPClient socket error
| Subject: | Re: TIdTCPClient socket error |
| Posted by: | "Toby Piper" (ne..@compcraft.com) |
| Date: | Fri, 21 Sep 2007 12:42:13 |
> What is the actual error you are getting?
EIdSocketHandleError
>> I have tried clearing the buffers and disconnecting, but that
>> doesn't seem to do it.
>
> Yes, it does.
No it doesn't. Something seems to be keeping it open (perhaps because I'm
not to the writebuffercancel that you suggested?) as it does not set
Connected to false.
>
>> LMSClient.IOHandler.WriteBufferClear;
>
> Use WriteBufferCancel() instead. That way, the buffer is freed from
> memory.
> If you don't do that, then the buffer will still be active (the
> WriteBufferingActive property will be True) the next time you connect, and
> will be subject to your original flush threshold (which is -1 by default).
Thanks, I'll try that.
Does that mean that I then need to enable the write buffer when I (or
before) I reconnect? The Indy help is not clear on this.
Thanks!