[fpc-pascal] Methods for autoupdating fpc programs?
flavio.etrusco at gmail.com
Mon Oct 5 23:14:37 CEST 2015
On Mon, Oct 5, 2015 at 1:58 PM, Jürgen Hestermann
<juergen.hestermann at gmx.de> wrote:
> Am 2015-10-04 um 19:11 schrieb micsch at gmail.com:
>>> But that makes no sense to me. If the OS is designed to potentially
>>> running programs (or parts of it) from memory it cannot allow overwriting
>>> the file on disk in any case. When it does so, it cannot remove parts
>>> memory because it may not be available on disk anymore. So it must
>>> the disk change from the beginning, otherwise it may not be able to
> In these links I didn't find any explanation that tell me if (and if yes,
> why) it *sometimes* does not work.
AFAIK (and the articles seem to confirm that) no "part is replaced"
and no parts are (necessarily) held in memory: a new file is created
on disk and the old file is kept on disk, tough not mapped the file
name, until all processes that hold "pointers" to the old file are
IIRC NTFS works like that too and Windows actively creates locks to
files in use to avoid deletion.
More information about the fpc-pascal