[Lazarus] Cross-compiling for Raspberry Pi2

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Sep 21 12:48:45 CEST 2015


On 2015-09-21 09:14, Michael Schnell wrote:
> 
> I am rather positive that a Delphi "Service Application" can do TTimer etc.

No it doesn't... At least not by simply creating an instance of TTimer
and hooking up the OnTimer event.

This applies to both Console and Service applications under Delphi. The
Delphi TTimer, in uses the WM_TIMER Windows message and a Console and
Service application don't have a message loop. So to get it to work, you
need to implement your own message loop.


http://stackoverflow.com/questions/12026951/using-vcl-ttimer-in-delphi-console-application

  http://objectmix.com/delphi/403332-ttimer-service.html



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the Lazarus mailing list