On 03/31/2014 01:51 PM, Flávio Etrusco wrote:
...
I guess simply changing your loop to:
+++
    repeat
       Application.ProcessMessages;
    until not timer1.enabled;
+++
should make it work.

That loop will work, but the CPU usage will be 100% and the CPU will run warm and the battery life on a laptop will be bad. I'd normally add a Sleep(10) in the loop to avoid those problems.

Best regards,
Paul
www.TurboControl.com


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to