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
Isn't that how Windows generally behaves, i.e. that opened files cannot be deleted? (I think it is more forgiving w.r.t. to the mappings.) So I think you want to call drop(file); before calling remove_file in your test? Possibly even drop(mmap); but I am not sure about the second one.
Theoretically, that's the case, but what confuses me is that on my local Windows 11 machine, I can delete the file normally without needing to drop mmap. However, only on Github Action's Windows Server 2022 does it throw an error. I will try to set up Windows Server 2022 locally for testing. I suspect that the difference in how Windows Server 2022 and Windows 11 handle memory mapping might be the cause.
I'm trying to test a rust project on Github Action but it yields an error only on Windows.
That's all right at my desktop and Github Action Linux/macos so I don't know what I should troubleshoot.
https://github.com/LokiSharp/memmap2-rs/blob/00de205e006aabb69e03172c04da869c18cd776f/src/lib.rs#L1575
https://github.com/LokiSharp/memmap2-rs/actions/runs/7223354238/job/19682434953
The text was updated successfully, but these errors were encountered: