Live data from Hacker News

Microsoft reveals why Windows 11 keeps saying a file is in use after closing app

windowslatest.com

31–33 of 33 posts

Re: Microsoft reveals why Windows 11 keeps saying a file is in use after closing app

#31
post #30

Earlier quoted context omitted.

while not root cause, wouldn’t a module having corrupted memory still be an issue with either the OS (for not protecting it) or the module (for not sanitizing input)?

No, because this would be kernel level code, so anything else running in the kernel (other drivers) could stomp on your memory and you couldn't do anything about it. No OS protections here.

Ah that makes sense, thanks!

Re: Microsoft reveals why Windows 11 keeps saying a file is in use after closing app

#32

On a possibly related issue, is this the same thing that cause the 'USB drive is still in use' message when you try to eject a USB drive even when every application is closed? If so, does anyone know a fix for it?

On a drive there is also the filesystem, which might not be finished with its work. When a program writes to the disk it gets buffered by the OS/filesystem driver first, so that the program can finish, before the data is actually on the disk.

So there is no fix, because there is nothing to fix. If you remove the device before the OS tells you you can, you risk missing data or corruption.

Re: Microsoft reveals why Windows 11 keeps saying a file is in use after closing app

#33
post #3

But they can't be bothered to tell which process is holding it, not even a damn PID. C'mon guys, bare minimum here, and this issue has been there for decades. It's great you added file locksmith to powertoys but that should be a built in OS feature for many, many years now.

Maybe the Restart Manager API (RmStartSession/RmRegisterResources/RmGetList) can return the list of processes that hlod a file open. Is available since Vista. The Shell UI just doesn't call it.
Post reply on HN