Benjy Kessler
Benjy Kessler

Reputation: 7616

EXE is locked after build

I am using VS2012, every time I build a program the exe file is locked for about 5 minutes. I can't manually delete the file or rename it. I am running Windows 7 64bit with no antivirus software. This never happened with VS2010, it only started happening when I upgraded to VS2012. Has anybody else experienced this? Is this a bug in VS, or is something wrong in my setup?

Upvotes: 1

Views: 1109

Answers (2)

Benjy Kessler
Benjy Kessler

Reputation: 7616

What solved this issue for me was enabling the Application Experience service. Here is a description of what the service does. Here is a thread from Microsoft which discusses the problem.

Upvotes: 1

user806549
user806549

Reputation:

I've experienced this when I don't terminate my threads properly both in 2010 and 2012. After a test-run, I change something and try to build.

The short term fix for me has been to kill the relevant process (not VS, but the host process for your EXE). The long term fix to hunt down where I forgot to terminate your threads properly.

But this question/answer may be more relevant for you: Visual Studio locks output file on build

Upvotes: 2

Related Questions