[Lazarus] How many timers available on Linux (Raspberry Pi)?

Michael Van Canneyt michael at freepascal.org
Wed Jul 22 12:34:34 CEST 2020



On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote:

> OK,
> so I created this program as a simple program with no template.
> In Delphi it was a TService descendant, but now i want it to just be a
> normal console program, which I can run as a service under Systemd on
> Linux.
>
> Then while chasing a strange error concerning wsmenus I changed from
> what it was in the beginning to nogui.

It means you have somewhere a reference to a LCL/VCL unit.

Probably your use of TTimer caused this.

>
> Now I do not know how to cancel that change and get back to what it
> was before (it needs to be a console app and dual platform).
>
> There 13 different "widgets" offered and I do not remember what it was
> in the beginning. So which do I choose for a dual platform
> (Linux/Windows) application?

You don't need to set a widget for a console application.

> Concerning timers the old application I am porting makes heavy use of
> TTimer objects, there are probably a lot more than the 4 I have in
> this constructor.
>
> So I should change the timer class from TTimer to TfpTimer or some
> such?
>
> I assume that is cross-platform, right?

Yes.

Michael.


More information about the lazarus mailing list