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

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

Reply via email to