You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should mean that the compiler can output a new dynamic library without hitting errors because there's programs still reading (soon to be older versions of) it.
When Casey presents this copy-based workaround, he's just working around the Windows FS guarantees.
It is also possible to overwrite the loaded library file in the sense of actually writing to the existing file and (i.e. not deleting it and creating a new one with the same name), however I have seen this cause issues/crashes (I assume due to the old thread locals still being loaded and/or other state associated with the loaded library that doesn't expect to be used with a new version of the code).
On *nix you can overwrite a file that's being read by another process.
https://stackoverflow.com/questions/2028874/what-happens-to-an-open-file-handle-on-linux-if-the-pointed-file-gets-moved-or-d
This should mean that the compiler can output a new dynamic library without hitting errors because there's programs still reading (soon to be older versions of) it.
When Casey presents this copy-based workaround, he's just working around the Windows FS guarantees.
Can the copy become Windows-specific?
The text was updated successfully, but these errors were encountered: