>> Using HTTPCLI AsyncGET how main thread wait for the Async to download 
>> the html code.
>> Code relies on input html code. If i sleep the main ui thread it will 
>> become frozen.
>> 
>> I know how to get HTML with Async via Events but i have no idea how 
>> program it so that Main UI thread will wait and then continue.. :)

> use a timer. The HTML fetches your stuff async and stores it somewhere 
> and sets some "get was successfull" flag.

Defenitely not ! Use the http component OnRequestDone handler to handle what
has to be done. At most you use a timer to implement a timout feature, not
more.

-- 
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to