Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Indy 9 TidTCPClient.WriteStream problem
| Subject: | Re: Indy 9 TidTCPClient.WriteStream problem |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 28 Feb 2008 09:55:09 |
"Tomislav Stamac" <tstamac@vip.hr> wrote in message
news:47c66e1f@newsgroups.borland.com...
> if LBufferingStarted then
> begin
> OpenWriteBuffer;
> end;
That is why OnWork does not get triggered. The TStream is being written to
an intermediate buffer, not to the socket directly. The buffer is not
flushed to the socket until after OnWorkEnd has been triggered. OnWork can
only be triggered in between OnWorkBegin and OnWorkEnd. Having
WriteStream() call OpenWriteBuffer() is a bug that was fixed 2 years ago.
You are using an outdated version of Indy and should upgrade.
Gambit