Le 24/10/2012 17:27, Bernd a écrit :
2012/10/24 Antonio Fortuny <[email protected]>:

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.
This is what I suspected

Why don't you just make it everything entirely evented and do not
block anything?
Because application processing does not permit shuch a way. It is a client TCP application and requests only one socket connected to one server. An entirely evented application is not manageable in this context




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

Reply via email to