[Lazarus] lnet sockets

Bernd prof7bit at gmail.com
Wed Oct 24 17:27:04 CEST 2012


2012/10/24 Antonio Fortuny <a.fortuny at sitasoftware.lu>:

> Question is: The two pieces of code for the timer(1) and the socket(2) will
> they be active when the main thread enters the wait state thru the
> WaitForSingleObject ?

Is this an LCL application? If yes then you may MOT block the main
thread that way. Neither the timer nor the lnet event would be able to
fire anymore, it would be frozen forever.

Why don't you just make it everything entirely evented and do not
block anything?




More information about the Lazarus mailing list