[Lazarus] timer in a console application

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Aug 10 16:17:44 CEST 2012


Andrea Mauri schrieb:
> Il 10/08/2012 13:01, michael.vancanneyt at wisa.be ha scritto:
>>
>> The fptimer unit has a timer that can be run in the main thread of an
>> application, in a console application.
> 
> I tried using fptimer in my objects but it seems that it does not work 
> as expected.

What if you start simple, with only a console app that prints something 
on regular intervals? When this works, you can add threads. The main 
loop then can e.g. output the thread states at regular intervals. When 
this works, add the scheduling logic for multiple threads.

DoDi





More information about the Lazarus mailing list