Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: OnWork event handler not triggered ?...
| Subject: | Re: OnWork event handler not triggered ?... |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 3 Mar 2006 01:18:52 |
"Don" <blacknapkin@twistandfruge.com> wrote in message
news:4407d785$1@newsgroups.borland.com...
> The problem actually lies in the IOHandler.ReadStream method.
> It calls BeginWork and EndWork... but never calls DoWork when
> it reads any of the buffer-sized chunks of data.
When bytes are removed from the IOHandler's InputBuffer, the
TIdBuffer.OnBytesRemoved event is triggered TIdIOHandler has a handler
assigned to that event, TIdIOHandler.BufferRemoveNotify(), which calls
DoWork(). ReadStream() does read bytes from the InputBuffer, so DoWork()
should be getting called.
Gambit