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

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to