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

Bo Berglund bo.berglund at gmail.com
Sun Jul 19 13:00:05 CEST 2020


On Sun, 19 Jul 2020 10:55:56 +0200 (CEST), Michael Van Canneyt
<michael at freepascal.org> wrote:

>> These are used exactly 1 time each in the full application...
>
>All the more reason to dispense with the unit.
>Less code to maintain.
>

Seems like RunCommandInDir or simply RunCommand can do what the
ExecWait with all its setting up of process flags and whatnot does.
So as you say I could as well discard the unit altogether and put this
call in the main code instead.

Thanks for pointing it out. Original code is from about 2008...

In fact a few years back I created a video handler using ffmpeg as the
processing program and when looking back there I see now I used
RunCommandInDir. And it is also Windows/Linux.
This was a project built entirely with Lazarus/Fpc of course.


-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list