VC ++致命错误LNK1168:无法打开filename.exe进行写入 [英] VC++ fatal error LNK1168: cannot open filename.exe for writing
问题描述
我的Visual Studio Express 2010 c ++突然停止了重建项目。
当我第一次按F7键时,项目会构建并运行良好(哎呀,这是一个非常好的例子)。
然后进行一些更改,然后再次按F7,然后得到:
1> LINK:致命错误LNK1168:无法打开C:\Users\username\Documents\Visual Studio 2010 writingProjectsconsole\Debug\console.exe进行编写
现在有趣的事情来了:
suddenly my visual studio express 2010 c++ stopped rebuilding my project.
When I first hit F7 the project builds and runs fine (heck, it's a hello world example).
Then I make some changes and hit F7 again, then I get:
1>LINK : fatal error LNK1168: cannot open C:\Users\username\Documents\Visual Studio 2010\Projects\console\Debug\console.exe for writing
Now the funny thing comes:
- 该应用程序未运行,并且未在任务管理器中显示。
- 进入项目目录并尝试手动删除它会成功,但是文件再次出现在其他地方o_O
- 系统还原已禁用
- 我还试图获取整个该死驱动器的所有权
- 每次删除文件时,它都会再次重新创建自身,但有时它会停止执行
- 如果删除文件(然后在此之后重新创建),然后启动sysinternals proc
- 如果我之前启动procmon,则文件删除后总是像往常一样出现
- the app is not running and it's not shown in task manager.
- going into the project directory and trying to remove it with hands comes with success but the file APPEARS AGAIN FROM NOWHERE o_O
- the system restore is disabled
- i also tried to take the ownership of the whole damn drive
- each time I delete the file it recreates itself again but sometimes it stops doing that
- if delete the file (and it recreates after that) and then I start sysinternals procmon then the file will dissapear.
- if I start procmon before - then the file keeps appearing after delete like always
操作系统:W7 SP1 64位,具有最新更新
有什么想法吗?谷歌没有帮助我:(
OS: W7 SP1 64-bit, with latest updates
any ideas, please? google didn't help me :(
推荐答案
启用应用程序体验服务。启动控制台窗口,然后输入 net start AeLookupSvc
Enable "Application Experience" service. Launch a console window and type net start AeLookupSvc
- http://support.microsoft.com/kb/902196
这篇关于VC ++致命错误LNK1168:无法打开filename.exe进行写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!