>> 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 

> 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.

The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)

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

Reply via email to