Everytime i build my C++ project, visual studio keeps exe file open for about 2 mins.
I dont even run the exe file just build it. 2 mins i m forced to wait to build it again.
Exe handle is owned by SYSTEM process. Because of that i cant delete, move, rename etc.. by hand or with pre-build commands.
There are no antivirus programs, index service or any other process running.
problem is related to size of my project. issue does not reoccur in small sized project.
Do you know any workarounds ?
I rename the exe. Add a pre-build that renames (not deletes, but renames) the old exe (if it exists).
It was the only thing that worked for me, because sometimes it wouldn’t be “minutes” of file in use, but hours; and the only thing that would fix it would be to restart VS2010.