Fastream Technologies wrote: > Hello Wayne, > > Make sure you do not call WSocket->Handle after you threaddetach. This > call would auto-threasdattach!!
It's true that calling WSocket.Handle creates a new window in current thread context if no window handle is currently attached (V6-V7), but that does not happen in the snippet provided. ThreadDetach may only be called in the context of the same thread which called ThreadAttach previously. The error is raised in case the ThreadID doesn't match. You can check property ThreadID after ThreadAttach and before ThreadDetach to be sure. -- Arno Garrels -- 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
