David Loncarek wrote: > Using HTTPCLI AsyncGET how main thread wait for the Async to download > the html code.
Take a look at procedure THttpCli.DoRequestSync() in unit OverbyteIcsHttpProt.pas, which handles the synchronous methods of THttpCli. > Code relies on input html code. If i sleep the main ui thread it will > become frozen. Of course, never call sleep() (at least in 99.99% of the casses) since it pauses the calling thread. > 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.. :) Simply use THttpCli's synchronous methods such as Get rather than GetAsync. -- Arno -- 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