I often have this problem even when I build a new C++ project and try to build a release file.
I use Visual studio 2008. One thing that may cause this problem is my code
If you are embedding a manifest file, your anti-virus program may lock and scan your exe file before embedding the manifest.
I recommend disabling anti-virus from reading your DEBUG and RELEASE output folders.