Hello, Why don't you use the Release method of VCL in the requestdone?
Regards, SZ ----- Original Message ----- From: "Frans van Daalen" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, April 05, 2006 6:44 PM Subject: [twsocket] wm_quit in requestdone in thread >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 -- 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