Markus Humm wrote:
> I don't call processmessages and the like directly in the event but
> might output some lines on screen for debugging.
How? ShowMessage is a modal form.
> Other thing: what about critical sections. Would they be safe for
> preventing this in my situation?
No, critical sections would be working only when they are used
from multiple threads.
You could try something like below, is the exception raised?
procedure TForm.WSocketDataAvailable(Sender: TObject; ErrCode: Word);
if AFlag then
AFlag := TRUE;
AFlag : FALSE
Arno Garrels [TeamICS]
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be