On Thursday, 9 May 2019 at 10:09:23 UTC, Cym13 wrote:
Hi,

this is likely not related to D itself but hopefully someone can help me with this since I'm rather new to windows programming, I mainly work on linux. I'm trying to bundle a DLL in a binary, write it in a temp folder, use it and remove the dangling file.

[...]

That's a windows "feature". You can't delete files that are in use. The fact that you close the file in your program isn't a guarantee that there's no other open handles around.

For the same reason you have to restart windows after every update to apply it.

Reply via email to