On Thu, Oct 18, 2012 at 9:13 AM, Michael Schnell <[email protected]> wrote: > The LCL provides the function QueuAsyncCall() to have a thread execute a > code snippet in the main thread and thus allow for GUI work. > > Other than TThread.Synchronize, this does not stall the thread until the > main thread activity is finished (which can take forever), but the procedure > only gets queued, the thread just continues and the queued procedure gets > executed when the main thread has time to run it.
Thanks, I didn't know about it, and it might save me a thread. > > -Michael > > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
