使用Visual Studio 2010,当我短时间内构建+运行我的应用程序时,经常会出现以下错误。如果我等一两分钟再尝试,它就可以正常工作。Unlocker 声明没有句柄锁定可执行文件。
我该如何发现是什么在锁定它?
如果是 Visual Studio 自身锁定了文件,我该怎么做才能让它停止?或者释放这个文件?
1>------ Build started: Project: MyProj, Configuration: Release Win32 ------
...
1>InitializeBuildStatus:
1> Creating "Release\MyProj.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> All outputs are up-to-date.
1> SomeFile1.cpp
1>ResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'D:\...\MyProj.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.94
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========