in reply to pp: modules disappearing while program runs?
There can be issues with tools like CCleaner deleting temporary folders and thus any files in use by pp-packed executables that are not file-locked.
Assuming that is the issue, the simplest option for now is to set the PAR_GLOBAL_TEMP environment variable to a folder that is not cleaned up automatically. This needs to be done before you start your program, e.g. by wrapping your code in a batch file or setting a system-wide env var. More details are at https://metacpan.org/dist/PAR/view/lib/PAR/Environment.pod.
Re-running the executable is an option. This works because, when you re-run the executable, all the PAR archive contents are re-extracted if a canary file is not found. It is obviously clunkier but works.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: pp: modules disappearing while program runs?
by Anonymous Monk on Apr 07, 2022 at 20:57 UTC | |
by swl (Parson) on Apr 07, 2022 at 22:06 UTC | |
by Anonymous Monk on Apr 07, 2022 at 21:04 UTC |