daemons (windows service) do not work with Lazarus 0.9.28.2 lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- anonim · 2010-03-26 09:12 I have created a sample windows service application (lazdaemon package) in an older version of lazarus. The service installs in windows, but does not do anything when I compile the same app in  Lazarus 0.9.28.2 It seems that the service thread does not get created. in older version 0.9.26 (i'm not sure about the correct number), the same app runs (service thread does execute, writes to the event log). any ideas. The sample app ws written accordindg to the article http://www.linuxprogramlama.com/downloads/lazarus/daemons.pdf ---------------------------------------------------------------------- fredycc · 2010-05-05 13:55 I follow the same tutorial with the same results: nothing happens; I'll try with another version. Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 Windows 7 32 bits. You can execute your service  : Check this post: http://www.lazarus.freepascal.org/index.php/topic,857 6.msg45749/topicseen.html#new ---------------------------------------------------------------------- anonim · 2011-06-29 13:57 I have upgraded to the Lazarus 0.9.30 today. It seem nothing is fixed yet. What did you mean on the link above? ---------------------------------------------------------------------- felipemdc · 2011-06-29 14:57 You should create a bug report and write on it that it is a regression. Also please attach a minimal test case which reproduces the problem to the bug report. This should guarantee that the new release will contain a fix for this. ---------------------------------------------------------------------- anonim · 2011-06-30 06:01 Standard cleadirs demo does not work. I guess it should write something to the event log even the configuration file does not exist. Cleandirs doesn't do anything... I have Windows XP Pro. Lazarus 0.9.30 ---------------------------------------------------------------------- afortuny · 2011-07-19 08:24 Hi guys. Got the same as anonim. I've made my own windows service after instaling lazdaemon package. Lazarus 0.9.30 (FPC 2.4.2) on Windows Server 2003 X64 Lararus 0.9.31 (FCP 2.4.4) on Vista 32 Rebuild Lazarus: OK Create new project as service: got the service frame (mapper and daemon components) Daemon class assigned into on item of mapper Events implemented: Mapper: Create, Destroy, Install, Run, Uninstall. Code is only a comment in a text flat file Daemon: Create, Destroy, Start, Stop, Execute. Same code as above except for Start in which the code launches a Thread which writes comments into the same text file, one live every second, for ever, until thread is terminated (in Stop event). So far so good. BUT: Pragram.exe -install works (got the comments in the text file) Pragram.exe -uninstall works (got the comments in the text file) Mapper and Daemon are both registered, created, destoyed  Within Services manager: start service and stop service do nothing at all. I mean neither procedures nor events are fired and nothing is written into the text file.  Both versions (Win32 and Win64) give exactly the same results: Start Stop do not work.  New ideas are welcome. Antonio. ---------------------------------------------------------------------- afortuny · 2011-07-22 06:41 Read next chapter on post of July 19, 2011, 10:24:59 am of afortuny.