Hello Markus, > hm, curious. Now it works if I have the receiving component statically on
But it will be a lot simpler if you create it in Execute method. It is also confusing to have it on a datamodule while it is attached to a thread. Note that you also can use the message pump of TWSocket itself. --- Rgds, Wilfried http://www.mestdagh.biz Wednesday, May 4, 2005, 08:46, [EMAIL PROTECTED] wrote: >> >> Hello, >> >> how does TWSocket.ThreadAttach work? I don't see where have >> to specify the >> thread. >> Or is it to be used in TThread.Execute and then is's >> automatically attached >> to >> the current one? >> > hm, curious. Now it works if I have the receiving component statically on > the data module > and have it Multihreaded:=true; and simply process messages like that > while GetMessage(MsgRec, 0, 0, 0) do begin > TranslateMessage(MsgRec); > DispatchMessage(MsgRec) > (okay copied from TWSocket). > Is this generally okay? Or is it coincidence that it works now? > If it is generally okay, I think I know how to proceed now. > 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