Re: [twsocket] InternalAbort causes OnDataAvailable *during* theAbort call

2010-03-28 Thread Jon Robertson
That sounds like an excellent solution to this particular situation. So simple, I'm ashamed I didn't suggest it first. :) On Sun, Mar 28, 2010 at 2:13 PM, Francois PIETTE wrote: > Abort call InternalAbort which do not clear the buffer where > TCustomLineWSocket store received data to break it i

Re: [twsocket] InternalAbort causes OnDataAvailable *during* theAbort call

2010-03-28 Thread Francois PIETTE
As you noticed, when you turn off LineMode in your code, it will not re-enter OnDataAvailable. I'm not sure why the distinction at this point. Abort call InternalAbort which do not clear the buffer where TCustomLineWSocket store received data to break it into lines. I suspect that TCustomLine