I forgot to speak about threadetach/attach. I am already using them very
well. I think the logic is good.
Regards,
SZ
On 2/24/08, Francois PIETTE [EMAIL PROTECTED] wrote:
Socket have to be closed from the thread context they have been
created.
WAIT a moment--what do you mean? I create the socket in the main thread
pool, accept() there, then postthreadmessage to worker thread, serve,
then
shutdown there and then destruct there. Do you say this is buggy?
Yes, this is buggy. If you don't create the TWSocket instance in the
thread
context where you plan to free it, then you must use
ThreadDetach/ThreadAttach.
Can you show me an example?
See the MT samples delivered with ICS.
Also search the mailing list archive for discussion about
ThreadAttach/ThreadDetach, this has been discussed several times.
--
[EMAIL PROTECTED]
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be