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 your PDF, without using LazDaemon package.
LazDaemon uses the same classes internally yet it does not work. Yes,
it is strange.

Now, does anybody know how to debug Windows services?

You can only do it by attaching to an external process.
Start the service, and attach the debugger to it.

That obviously means that you will miss the startup code.

It's what I hate about windows services :(
Usually I make the program twice: once as a normal program (to debug) and once as a service.

Michael.

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to