[Lazarus] Launching process from ServiceDaemon fails under Ubuntu x64 11.10+

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Mar 7 09:15:14 CET 2012


On Wed, 7 Mar 2012 09:01:57 +0100 (CET)
michael.vancanneyt at wisa.be wrote:

> 
> 
> On Tue, 6 Mar 2012, Andrew Brunner wrote:
> 
> > Up until a few days ago I was using my service daemon app (X) to launch a
> > console application (Y) worked flawlessly.  The service daemon monitors for
> > crashes and scale and can create instances at runtime.
> >
> > I did a trunk update to both FPC and Lazarus and App Y got a bunch of
> > linker errors (see below) so I included interfaces unit and (Y) builds just
> > fine.
> 
> You should not include this unit. That's an error.
> 
> > if executed from a Desktop App TProcess (Y) enters the program loop. :-)
> > If executed (X) inside a Service Daemon TProcess (Y) zombies and never
> > enters the program loop :-(
> >
> > The service daemon is mission critical to my project and this is a pretty
> > serious issue.
> >
> > Errors when I try to build Process app without Interfaces unit :
> 
> It means you have a LCL component somewhere in your app, that's what's
> causing this.

Yes.

The widgetset independent parts have been moved to a package of its
own: LazUtils.
Open the project inspector and replace the dependency LCL with LazUtils.
Do the same for any of your packages that works without gui.

Mattias




More information about the Lazarus mailing list