Hello, I create/pool/destruct THttpCli descendents in one thread and then pass to worker thread with threaddetach (in creator thread)-->threadattach (worker thread) --> USE --> Abort() --> threaddetach (worker thread) --> threadattach (creator thread). If I do it like,
ThreadDetach(); PostMessage(thttpconnectionclientObject->Handle, Msg_WM_HTTP_CLIENT_READY, ... it does not work always. It gives "not detached to attach" error. What I do to bypass this is to post a message to the creator thread after detach before posting to connection. Does this carry a rationale? I also needed to do the same for Abort()--after abort I post a message before I detach and then post a message before posting to another thread. Regards, SZ -- 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