[Lazarus] sleep function don't passed before executing the next statement
Michael Schnell
mschnell at lumino.de
Wed Nov 21 09:46:26 CET 2012
On 11/21/2012 09:35 AM, Bernd wrote:
> You should generally try your best to avoid using Sleep() in the above
> way in most cases.
I would go so fat saying that in a GUI project sleep in the main thread
is strictly forbidden, as it produces nothing but confusion.
(Same is true for any "busy wait" polling loops in the main thread and
"busy wait" polling loops without sleep in worker threads.)
-Michael
More information about the Lazarus
mailing list