Hello, Instead of Sleep(), why don't you Pause() the twsocket? That would be better IMHO.
Regards, SZ ----- Original Message ----- From: "Engi" <[EMAIL PROTECTED]> To: "'ICS support mailing'" <twsocket@elists.org> Sent: Friday, June 29, 2007 4:16 PM Subject: Re: [twsocket] TWSocketServer in thread > > Here is a part of my Execute() code : > > try > { > while (GetMessage(&msg, NULL, 0, 0) && !Terminated) > { > DispatchMessage(&msg); > > if (!DialogError) > { > ... > ... > ... > } > > Sleep(1); > } > } > catch(Exception &e) > { > if (DebugActif) OutputDebugString("*** exception: " + > e.Message); > } > > Is it correct ? > > > > -- 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