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
> 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
> 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
>
> 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
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
[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,
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: