[Lazarus] I need TTimer (or equivalent) in a CLI program.

Donald Ziesig donald at ziesig.org
Wed Jul 20 23:12:54 CEST 2016


On 07/20/2016 05:04 PM, Donald Ziesig wrote:
> I am writing a command line program that will be started as root from 
> /etc/init.d.  (Raspberry PI that will not be connected to the internet.)
>
> This program requires TTimer, which seems to be a part of LCL and 
> gives me missing units at compile time.
>
> To try to get around LCL, I derived a timer from TCustomTimer. 
> Unfortunately, this pulls in TWidgetSet (also part of LCL but without 
> the missing units) and I get run time error 211 since TWidgetSet is 
> abstract.
>
> Is there any timer-like component available without bringing in LCL?
>
>
> Thanks,
>
>
> Don Ziesig
>
>
OOPS,  I forgot to mention,  I found TFPTimer, but it does not implement 
the OnTimerStart and OnTimerStop events which I need as well.  Now that 
I am thinking about it, perhaps I can derive something from that that 
implements those event callbacks.



More information about the Lazarus mailing list