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

Reply via email to