Re: [Lazarus] Making a Linux systemd service, how does one handle the shutdown?

2020-06-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: I have read that a systemd service on Linux will be taken down by the service manager using kill -TERM, i.e. the application is given a chance for a clean shutdown. So my question is: How/where do I implement a handler for the terminate mess

[Lazarus] Making a Linux systemd service, how does one handle the shutdown?

2020-06-21 Thread Bo Berglund via lazarus
I have read that a systemd service on Linux will be taken down by the service manager using kill -TERM, i.e. the application is given a chance for a clean shutdown. So my question is: How/where do I implement a handler for the terminate message in a FreePascal console application (no GUI or form a

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Bo Berglund via lazarus
On Sun, 21 Jun 2020 15:09:59 +0200, Mattias Gaertner via lazarus wrote: >> I changed it to /home/pi/dev/fpc/3.2.0/compiler/ppcarm > >The 'compiler' folder looks like the FPC source directory. > >When you install fpc, the path should be something like >/installbasedir/lib/fpc/3.2.0/ppcarm > Thank

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Mattias Gaertner via lazarus
On Sun, 21 Jun 2020 12:10:20 +0200 Bo Berglund via lazarus wrote: >[...] > Since Lazarus recompiles itself when one installs a new package, how > can I deal with that? The IDE uses the default fpc, set in Tools / Options / Environment / Files. Every project can use its own compiler. When you ins

Re: [Lazarus] Free Pascal 3.2.0 released !

2020-06-21 Thread Jy V via lazarus
maybe a typo in the documentation in section https://wiki.freepascal.org/User_Changes_3.2.0#Process_Unit pnoconsole on Windows New behaviour: ponewconsole maps to CREATE_NO_WINDOW should probably refer to "pnoconsole" instead of "ponewconsole" On Sat, Jun 20, 2020 at 4:28 PM Marco van de Voort vi

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: On Sun, 21 Jun 2020 11:12:17 +0200 (CEST), Michael Van Canneyt via lazarus wrote: This is so, but it does not have to be a problem: you must not recompile lazarus itself using such a secondary copy. Since Lazarus recompiles itself when o

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Bo Berglund via lazarus
On Sun, 21 Jun 2020 11:12:17 +0200 (CEST), Michael Van Canneyt via lazarus wrote: >This is so, but it does not have to be a problem: you must not recompile >lazarus itself using such a secondary copy. Since Lazarus recompiles itself when one installs a new package, how can I deal with that? The

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Michael Van Canneyt via lazarus
Now you can start 2 instances of lazarus, with a different setting for the compiler version. I have 4 or 5 such versions. Thanks, that seems simple enough. :) It is. Just a follow-up: After downloading the 3.2.0 sources via svn I went into the new 3.2.0 dir and did (I am using an RPi4 c

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Bo Berglund via lazarus
On Sun, 21 Jun 2020 09:53:47 +0200 (CEST), Michael Van Canneyt via lazarus wrote: > > >On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: > >> Is it possible to switch Lazarus between using fpc 3.0.4 and 3.2.0 so >> as to compare the two easily? > >Yes. > >Just install the new FPC alongside the

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: Is it possible to switch Lazarus between using fpc 3.0.4 and 3.2.0 so as to compare the two easily? Yes. Just install the new FPC alongside the old one. The simplest is then to copy the lazarus settings directory, and create a shortcut w