[Lazarus] Lazarus program runs fine in a Terminal but not in a PuTTY session, why?

Michael Van Canneyt michael at freepascal.org
Thu Oct 31 23:02:26 CET 2019

On Thu, 31 Oct 2019, Bo Berglund via lazarus wrote:

>> If the program works 100%, you should ask yourself why you needed the GUI
>> routines in the first place ?
>> Michael.
> I do *not* have *any* GUI routines or such.
> The program was created as one of the console types Lazarus offers (I
> do not really know the difference between them and I don't remember
> which one I chose).
> So it is *not* a GUI program at all, it was meant from the start to be
> run from cron invisible from the user rather like a service.


> I also set the dependencies to LCLbase to avoid the GUI part.

Well, clearly there is still a dependency on a GUI unit because the program
tried to make contact with an X server.

If the 'interfaces' unit is in the uses clause of your program, try removing it.


More information about the lazarus mailing list