Re: [twsocket] Wait for

2013-01-12 Thread François Piette
> 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

Re: [twsocket] Wait for

2013-01-12 Thread François Piette
>> 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 wi

Re: [twsocket] Wait for

2013-01-11 Thread Arno Garrels
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