Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-01

Linux daemon crashing

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rob van der Linde

Hi all, I'm trying to make a Linux daemon using FPC 2.2

I tried compiling the bundled daemon.pp (fcl-base/tests), it's an object oriented version. Compilation is ok, but when I run the daemon I get the following error:

exception at 000000000046BF6C:
Options do not allow determining what needs to be done.

And the daemon exits.

I also tried compiling an older version of daemon.pp, that was bundled with FPC 2.0.4 (but still compiling it with FPC 2.2). The older version is not object oriented, and contains more complex code, but it does work.

Is this a known problem when creating a daemon in Linux, using the new units? Or maybe it could be because I am using AMD64? I have not yet tried it on a 32 bit Linux installation, so I am not sure.

I would like to use the object oriented version if possible, I like the code, it looks clean and easy to use, but it doesn't work, so I am temporarily having to use the older version of daemon.pp for now.

Michael Van Canneyt
to Rob van der Linde
Rob van der Linde wrote 10 lines
Hi all, I'm trying to make a Linux daemon using FPC 2.2 I tried compiling the bundled daemon.pp (fcl-base/tests), it's an object oriented version. Compilation is ok, but when I run the daemon I get the following error: exception at 000000000046BF6C: Options do not allow determining what needs to be done. And the daemon exits.

Add -r (or --run) to the command-line option.

Michael.

Rob van der Linde
to Michael Van Canneyt

Thanks or that, that seems to start it fine, but it doesn't close the master process and return to my terminal, as the non object oriented version from FPC 2.0.4 does.

Any ideas if this is possible with the OOP version?

Michael Van Canneyt wrote 20 lines
On Thu, 24 Jan 2008, Rob van der Linde wrote: > Hi all, I'm trying to make a Linux daemon using FPC 2.2 > > I tried compiling the bundled daemon.pp (fcl-base/tests), it's an object > oriented version. Compilation is ok, but when I run the daemon I get the > following error: > > exception at 000000000046BF6C: > Options do not allow determining what needs to be done. > > And the daemon exits. Add -r (or --run) to the command-line option. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal