On 09/05/2012 11:35 AM, Antonio Fortuny wrote: > use a semaphore... You can't easily wait on a semaphore in the main thread. (In fact you can't wait at all.) IMHO it's easy and straight-forward to use TApplication.QueueAsyncCall() for this. -Michael.,