[fpc-pascal] CrossPlatform problem, INFINITE not defined on Linux

Michael Van Canneyt michael at freepascal.org
Sun Jul 19 10:55:56 CEST 2020



On Sun, 19 Jul 2020, Bo Berglund via fpc-pascal wrote:

>>
>> or use TProcess.
>> https://www.freepascal.org/docs-html/current/fcl/process/tprocess.html
>>
>
> OK, thanks.
> Then I will have to make a rewrite of the unit...
>
> Possibly add IFDEF:s such that the Windows version remains and I
> create equivalents for Linux using for example TProcess.
>
> Thankfully there are only these two functions to deal with:
> ExecAndWait() starts a program and waits for it to complete
> ExecStart() starts a program and leaves it running
>
> These are used exactly 1 time each in the full application...

All the more reason to dispense with the unit.
Less code to maintain.

Michael.


More information about the fpc-pascal mailing list