Michael Schnell wrote:
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()

Please remind us what a non-LCL program has to call to make sure that stuff is dequeued.

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.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to