Hello Markus, > 1. that should work, shouldn't it?
Yes at first sitht it is ok. > 2. would pm_noremove be okay, or should I rather pm_remove? use pm_remove otherwise the messages will stay in queue an you only will reead first message. Also think over to use GetMessage(). Advantage is that it break the loop when a WM_Quit is recieved. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, February 7, 2006, 19:36, Markus Humm wrote: > Hello, > my thread's execute method would look like this now: > var msg:TMsg; > begin > while not terminated do > begin > case myaction of > acreate: here I'd create a new connection and then status > will be anothing again > aclose: here I'd close a open connection and then status > will be anothing again > anothing: > begin > if PeekMessage(Msg, 0, 0, 0, pm_noremove) then > begin > TranslateMessage(Msg); > DispatchMessage(Msg); > end; > end; > end; > end; > end; > The question now: > 1. that should work, shouldn't it? > 2. would pm_noremove be okay, or should I rather pm_remove? > Greetings > Markus -- 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