> 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.
You can disable socket operation using Pause/Resume methods. Wether or not you use Pasue/Resume, it is better to go outside of any event handler by using a custom message you'll post using PostMessage and from the corresponding event handler, do you modal display. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) 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