[Lazarus] How does one add an event to a blocking system?

Michael Schnell mschnell at lumino.de
Wed Oct 21 14:04:05 CEST 2015


On 10/21/2015 01:44 PM, Bo Berglund wrote:
> So if I use a thread to read data from the socket, how do I signal to
> the main application that data are arriving using an event?
TThread.Synchronize(), TThread.Queue()

In an "Application" (other than in a "Program" you also can use 
"Application.QueueAsyncCall()".

You supposedly want to transfer Data to the main thread. Here IMHO it's 
a nice idea to use Finalizers.

-Michael




More information about the Lazarus mailing list