I\'ve been having this problem for a while now. I created a brand new winforms c# application in Visual Studio. I can usually launch it in debug mode once without a problem.
You can Run a program called Unlocker.exe which is a small program which unlocks the locked program.
Try to unlock the exe which is locked and it will give you the exact program which is locking it.
This will help you pin point the problem.