Merijn Bosma wrote: > Arno Garrels wrote: >> Hi, >> >> >>> - OnDataAvailable event is triggered continuously (close to 14000 >>> times per second) >>> >> >> Do you call the message pump from OnDataAvailable, directly or >> indirectly (i.e. Application.ProcessMessages, any Showmessage() or >> a VCL-dialog)? >> >> > I'm digging through code right now just to be sure. > > In case I am, could that explain this behavior?
I think so. > I'm not calling the message pump when I'm receiving no data, so > shouldn't that break the loop if it was there? The event handler may be reentered, so don't call the message pump from there. If you want i.e. display a dialog you could post a custom message and from its message handler pop up the dialog. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be