Paul wrote:
> That means I have to free all http clients, switch to a new desktop
> and recreate everything, and continue the existing communications !
> Nearly impossible.
> Is there no other way to do this ?

You may try to call ThreadDetach instead which destroys TWSocket's
hidden window in V5. In V6 the window should be destroyed when the
last TWsocket instance of a thread calls ThreadDetach (if memory
serves well).

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


> 
> 
> Paul
> 
> ----- Original Message -----
> From: "Arno Garrels" <[EMAIL PROTECTED]>
> To: "ICS support mailing" <twsocket@elists.org>
> Sent: Monday, August 14, 2006 4:20 PM
> Subject: Re: [twsocket] SetThreadDesktop with ICS
> 
> 
>> Paul wrote:
>>> Hi,
>>> 
>>> a bit off topic, but I have problems using SetThreadDesktop() api.
>>> It returns error 170 = The requested resource is in use.
>>> Is this because ICS uses hidden windows ?
>> 
>> The online help seems to confirm that.
>> 
>> This function will fail if the calling thread has any windows or
>> hooks on its current desktop (unless hDesktop is a handle to the
>> current desktop).
>> 
>> 
>> ---
>> Arno Garrels [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> 
>> --
>> 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