I have the following code

procedure TConsumerThread.Execute;
...some code
     while GetMessage(Msg, 0, 0, 0) do
     begin
        TranslateMessage(Msg);
        DispatchMessage(Msg);
        if Msg.Message = WM_REQUEST then
        Begin
...some code
         http.GetASync;
         http.CtrlSocket.MessageLoop;
...some code
        end;
     end;


in the requestdone I have

    PostMessage((Sender as THttpCli).CtrlSocket.Handle, WM_QUIT, 0, 0);

This wm_quit will hoverever also stop the thread execute...how can i solve 
that ? 


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

Reply via email to