Daemons and Services lazarus / 31-LCL ---------------------------------------------------------------------- SymbolicFrank · 2016-04-01 07:22 Ok, I couldn't get them to work on Debian. But that was only half of it, I need one for Windows as well. And I cannot get that one to work as well. It gives the same error message: Code: [Select]Exception at 00000001000197E2: EStreamError: Failed to initialize component class "TMyMapper": No streaming method available. TMyMapper is the TDaemonMapper. Help? ---------------------------------------------------------------------- SymbolicFrank · 2016-04-01 07:34 Here is the example program. ---------------------------------------------------------------------- Cyrax · 2016-04-01 09:28 Which Lazarus and FPC versions are you using? Are you perhaps using lazdaemon package to create your daemon application? Please do not use LCL package or any other which have dependency on it when doing daemons. They can't use any GUI functionalities at all.  A daemon is console program. ---------------------------------------------------------------------- SymbolicFrank · 2016-04-01 11:47 I'm using 1.6 / 3.0, and the LazDaemon package. The TDaemonMapper inherits from TComponent, and the TDaemon from TDataModule. So they both have a form. When opening the application or selecting the TDaemonMapper form, it gives the following error: Code: [Select]Stream=TDaemonMapper1: Root=:TDaemonMapper1 Error reading TDaemonMapper1.DaemonDefs: Unknown property: "DaemonDefs" Stream position: 388 I didn't change anything in that, I only added a DaemonDef, as said on the wiki and in the pdf. ---------------------------------------------------------------------- SymbolicFrank · 2016-04-19 13:24 Ok, I have "fixed" it by simply inheriting the service from TCustomDaemon. That works.