thanks for the extra info ----- Original Message ----- From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, April 05, 2006 8:20 PM Subject: Re: [twsocket] wm_quit in requestdone in thread
> Hello, > > Release post a message to the component's hidden window to destroy it. > The destruction is done in the message handler. > > WM_QUIT will exit the message loop if using GetMessage, and it will also > terminate program for example, but it is not the same. It is pure > depandant of what the programmer do in his message pump. > > --- > Rgds, Wilfried [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > http://www.mestdagh.biz > > Wednesday, April 5, 2006, 18:41, Fastream Technologies wrote: > >> WM_QUIT has the same effect as Release! > >> Regards, > >> SZ > >> ----- Original Message ----- >> From: "Frans van Daalen" <[EMAIL PROTECTED]> >> To: "ICS support mailing" <twsocket@elists.org> >> Sent: Wednesday, April 05, 2006 7:21 PM >> Subject: Re: [twsocket] wm_quit in requestdone in thread > > >>> ----- Original Message ----- >>> From: "Fastream Technologies" <[EMAIL PROTECTED]> >>> To: "ICS support mailing" <twsocket@elists.org> >>> Sent: Wednesday, April 05, 2006 6:05 PM >>> Subject: Re: [twsocket] wm_quit in requestdone in thread >>> >>> >>>> Hello, >>>> >>>> Why don't you use the Release method of VCL in the requestdone? >>>> >>>> Regards, >>>> >>>> SZ >>> >>> Isn't the release the start of a destroy? The http component is re-used >>> until de thread execute recieves no new items to be processed >>> >>>> >>>> ----- 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 >>>> >>>> >>> >>> >>> -- >>> 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 > -- 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