[Lazarus] TTimer woes (newbie)

Paul Breneman list2010 at BrenemanLabs.com
Tue Apr 1 16:45:06 CEST 2014


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





More information about the Lazarus mailing list