[Lazarus] Dispatching GUI messages from background threads

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sun Jan 11 01:17:48 CET 2009


David W Noon schrieb:

> This looks rather like some sort of deadlock on something like a mutex
> semaphore -- but that's just a guess. Is there some "knack" to calling
> Dispatch() that avoids this problem?

The solution is simple: don't use Dispatch() from a thread, use the 
thread-safe SendMessage instead.

DoDi




More information about the Lazarus mailing list