Re: AW: [twsocket] Thread Attach

2005-05-04 Thread Wilfried Mestdagh
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 its

Re: [twsocket] Thread Attach

2005-05-04 Thread Francois Piette
> 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) You have all e

Re: [twsocket] Thread Attach

2005-05-04 Thread Francois Piette
> 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? You've got it ! Be aware that a thread context is not directly related to a thread's method. -- [EMAIL PRO

AW: [twsocket] Thread Attach

2005-05-04 Thread Markus . Humm
> > 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

Re: [twsocket] Thread Attach

2005-05-04 Thread Wilfried Mestdagh
Hello Markus, > Or is it to be used in TThread.Execute and then is's automatically attached Yes. You have to detach in the thread where it is created, attach in new thread. See also the example coming with ICS. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settin

Re: [twsocket] Thread Attach

2005-05-03 Thread Arno Garrels
[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? > > Greetings Call ThreadDetach in the thread that created the socket,

[twsocket] Thread Attach

2005-05-03 Thread Markus . Humm
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? Greetings Markus Humm -- To unsubscribe or change your settings for TWSocket mailing list please goto http: