Arno Garrels wrote: > Paul wrote: >> That means I have to free all http clients, switch to a new desktop >> and recreate everything, and continue the existing communications ! >> Nearly impossible. >> Is there no other way to do this ? > > You may try to call ThreadDetach instead which destroys TWSocket's > hidden window in V5. In V6 the window should be destroyed when the > last TWsocket instance of a thread calls ThreadDetach (if memory > serves well).
Well, applies not only to TWSocket's window but also to the component window, if any. HttpClient.ThreadDetach should do it. The problem with ThreadDetach is that the component is windowless unless it is attached again. Francois suggested to do a read on the socket once you are attached again. Maybe processing pending messages before the call to ThreadDetach also avoids losing messages? --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be