Yesterday I was debugging an application. I've stopped the program, modified it then I tried to run it and got this error message:
Error 1 error LNK1168: cannot open E:\DEVELOPMENT\Projects\Visual Studio 2013\GameEngine\bin\Debug\EngineCore.exe for writing E:\DEVELOPMENT\Projects\Visual Studio 2013\GameEngine\EngineCore\LINK EngineCore
I've opened the task manager and saw the process, so I've tried to kill it. I wasn't able to. Then I restarted the computer, but got the same error. I've tried deleting the file but I got a message that it's still in use. I've opened task manager again but I couldn't find the process. For a temporary solution I've switched to release mode as that seemed to work until now, when the same thing happened to the release mode process. I have no idea why this happened.
I have Windows 10 64 bit and Visual Studio 2013
I've downloaded Process Explorer, found the process but I just can't kill it (error message: "Access denied")! If I restart the computer it's still there. I got it's PID and tried to force-kill it ( taskkill /pid 13684 /f ) but it didn't work either.
I've tried using a live CD. I deleted the exe file. I've quadruple-checked it. But when I booted into windows10, the file reappeared.
Then I've downloaded Unlocker, which couldn't delete the file, but after a restart I was able to delete it manually.