Re: [Lazarus] LazDaemon

2014-09-01 Thread vfclists .
On 24 July 2014 16:37, Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 24 Jul 2014, Juha Manninen wrote: I think the LazDaemon package is broken at least on Windows. Can someone else start a Windows service made with it? I cannot. When I find some time, I will have a look at

Re: [Lazarus] LazDaemon

2014-07-28 Thread Michael Schnell
On 07/25/2014 11:56 PM, Graeme Geldenhuys wrote: Further comments on this. You should be able to debug the startup code by using the same trick I use for debugging CGI applications. Sounds like doable but feels like a nasty workaround. If this method indeed is necessary due to the technical

Re: [Lazarus] LazDaemon

2014-07-25 Thread Michael Van Canneyt
On Thu, 24 Jul 2014, Juha Manninen wrote: On Thu, Jul 24, 2014 at 4:10 PM, Virgo Pärna virgo.pa...@mail.ee wrote: You are running that cleandir.exe -i form cmd Window? Did you start cmd with Run as Administrator? Yes. Actally the service version is cleandirs.exe (with s). There is

Re: [Lazarus] LazDaemon

2014-07-25 Thread Juha Manninen
On Fri, Jul 25, 2014 at 9:05 AM, Michael Van Canneyt mich...@freepascal.org wrote: I will use now the FPC daemon class, it works. Out of curiosity: which class is that ? I mean the TCustomDaemon and TCustomDaemonMapper descendants as explained in your PDF, without using LazDaemon package.

Re: [Lazarus] LazDaemon

2014-07-25 Thread Graeme Geldenhuys
On 2014-07-25 07:18, Juha Manninen wrote: Now, does anybody know how to debug Windows services? tiOPF's tiLog.pas unit (and friends: tiLogToFile etc) works very well. It can be used independently with any project. The FPC dbugintf unit should also work, but has some issues (sometimes missing

Re: [Lazarus] LazDaemon

2014-07-25 Thread Michael Van Canneyt
On Fri, 25 Jul 2014, Juha Manninen wrote: On Fri, Jul 25, 2014 at 9:05 AM, Michael Van Canneyt mich...@freepascal.org wrote: I will use now the FPC daemon class, it works. Out of curiosity: which class is that ? I mean the TCustomDaemon and TCustomDaemonMapper descendants as explained in

Re: [Lazarus] LazDaemon

2014-07-25 Thread Virgo Pärna
On Fri, 25 Jul 2014 09:18:01 +0300, Juha Manninen juha.mannine...@gmail.com wrote: On Fri, Jul 25, 2014 at 9:05 AM, Michael Van Canneyt mich...@freepascal.org wrote: I will use now the FPC daemon class, it works. Out of curiosity: which class is that ? I mean the TCustomDaemon and

Re: [Lazarus] LazDaemon

2014-07-25 Thread Marco van de Voort
On Fri, Jul 25, 2014 at 09:18:01AM +0300, Juha Manninen wrote: Now, does anybody know how to debug Windows services? Under Delphi GUI or gdb console Attach the debugger to the running process. I don't know how to do from the Lazarus IDE. -- ___

Re: [Lazarus] LazDaemon

2014-07-25 Thread Michael Van Canneyt
On Fri, 25 Jul 2014, Marco van de Voort wrote: On Fri, Jul 25, 2014 at 09:18:01AM +0300, Juha Manninen wrote: Now, does anybody know how to debug Windows services? Under Delphi GUI or gdb console Attach the debugger to the running process. I don't know how to do from the Lazarus IDE.

Re: [Lazarus] LazDaemon

2014-07-25 Thread Juha Manninen
On Friday, July 25, 2014, Marco van de Voort mar...@stack.nl wrote: Under Delphi GUI or gdb console Attach the debugger to the running process. I don't know how to do from the Lazarus IDE. There is such option in Lazarus Run menu but it gives an error when connecting to a running service. --

Re: [Lazarus] LazDaemon

2014-07-25 Thread Sven Barth
Am 25.07.2014 14:13 schrieb Juha Manninen juha.mannine...@gmail.com: On Friday, July 25, 2014, Marco van de Voort mar...@stack.nl wrote: Under Delphi GUI or gdb console Attach the debugger to the running process. I don't know how to do from the Lazarus IDE. There is such option in Lazarus

Re: [Lazarus] LazDaemon

2014-07-25 Thread Graeme Geldenhuys
On 2014-07-25 07:27, Michael Van Canneyt wrote: Usually I make the program twice: once as a normal program (to debug) and once as a service. I thought that was normal programming practice. :) I've always done it like that (Windows and *nix). I think I learned that from Delphi 4 or 5 days.

[Lazarus] LazDaemon

2014-07-24 Thread Juha Manninen
I think the LazDaemon package is broken at least on Windows. Can someone else start a Windows service made with it? I cannot. There is an example project C:\SW\lazarus_gitsvn\examples\cleandir\cleandirs.lpi that uses it. Trying to install it (cleandirs.exe -i with admin rights) fails. Same thing

Re: [Lazarus] LazDaemon

2014-07-24 Thread Virgo Pärna
On Thu, 24 Jul 2014 15:06:53 +0300, Juha Manninen juha.mannine...@gmail.com wrote: I think the LazDaemon package is broken at least on Windows. Can someone else start a Windows service made with it? I cannot. There is an example project C:\SW\lazarus_gitsvn\examples\cleandir\cleandirs.lpi

Re: [Lazarus] LazDaemon

2014-07-24 Thread Michael Van Canneyt
On Thu, 24 Jul 2014, Juha Manninen wrote: I think the LazDaemon package is broken at least on Windows. Can someone else start a Windows service made with it? I cannot. There is an example project C:\SW\lazarus_gitsvn\examples\cleandir\cleandirs.lpi that uses it. Trying to install it

Re: [Lazarus] LazDaemon

2014-07-24 Thread Juha Manninen
On Thu, Jul 24, 2014 at 4:10 PM, Virgo Pärna virgo.pa...@mail.ee wrote: You are running that cleandir.exe -i form cmd Window? Did you start cmd with Run as Administrator? Yes. Actally the service version is cleandirs.exe (with s). There is also a cmd line program cleandir.exe. I

Re: [Lazarus] Lazdaemon and Fedora 17

2012-11-11 Thread zeljko
On Sunday 11 of November 2012 05:35:25 Andrew Brunner wrote: Does anyone have any experience with Fedora 17 and daemons? Under Debian, I use a script and start-stop-daemon to load my FPC/Lazarus Daemon. Under Fedora, there is no such start-stop-daemon command. Has anyone had any success

Re: [Lazarus] Lazdaemon and Fedora 17

2012-11-11 Thread Brian Chalega da Silva
Em 11-11-2012 06:04, zeljko escreveu: On Sunday 11 of November 2012 05:35:25 Andrew Brunner wrote: Does anyone have any experience with Fedora 17 and daemons? Under Debian, I use a script and start-stop-daemon to load my FPC/Lazarus Daemon. Under Fedora, there is no such start-stop-daemon

Re: [Lazarus] Lazdaemon problem on Ubuntu x64

2010-04-19 Thread Andrew Brunner
On Mon, Apr 19, 2010 at 2:28 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Check Package / Package graph. Is the package lazdaemon shown as installed? That was the first thing I checked. It showed installed. Maybe you start the wrong lazarus binary? How did you install lazarus,

[Lazarus] Lazdaemon problem on Ubuntu x64

2010-04-18 Thread Andrew Brunner
I installed lazdaemon on win32 xp and created a project. It compiled just fine. I opened the project under Ubuntu x64 and the project failed to load. I also didn't see any menu options under New like daemon like I did under win32. So I went into the IDE and added and rebuilt IDE under x64. And