Hello David, Yes, a modal form is pumping messages. If it is really nececary to popup a form if you have received a certain packet, you have to create / show the form "outside" the OnDataAvailable event.
To do it outside just post a message to a custom message handler. Your custom message handler will execute a while later (so outside the event) and you can safely display the modal form. If you need example, then just ask of course :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, September 26, 2007, 16:19, David Perkins wrote: > I now suspect that the data is only being sent once. > When I receive a certain packet I pop up a messagebox asking the user > a question and I suspect it is this that is causing the packet to be > repeated since it is ultimately being displayed by a call from the > OnDataAvailable event. > How may this be prevented? I cannot disable all messge processing in > my app whilst it's in the OnDataAvailable event. > On 26/09/2007, Wilfried Mestdagh <[EMAIL PROTECTED]> wrote: >> Hello David, >> >> Eventually you can check with SocketSpy what exacly is sent. >> >> --- >> Rgds, Wilfried [TeamICS] >> http://www.overbyte.be/eng/overbyte/teamics.html >> http://www.mestdagh.biz >> >> -- >> 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 >> -- 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