[fpc-pascal] Methods for autoupdating fpc programs?

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Oct 4 14:16:12 CEST 2015


On Sun, 4 Oct 2015 12:37:29 +0100
Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:

> On 2015-10-03 19:30, Bo Berglund wrote:
> > But how could one exchange a running program on the pi from within
> > itself?
> 
> On non-Windows platforms it is much easier, because you can normally
> replace a program on file, while it is running in memory. Windows
> doesn't allow that. Either way the solution is quite simple for most
> platforms.

That is not entirely true.

Replacing a running program by simply copying can result under Linux in
'text file busy'.

You can rename a running executable, allowing to copy a new
version. This works on Windows and Linux.

Mattias



More information about the fpc-pascal mailing list