致命错误:无法创建输出文件“project1.exe” [英] Fatal Error: Cannot create output file "project1.exe"

查看:409
本文介绍了致命错误:无法创建输出文件“project1.exe”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在有一段时间,我在Windows 7(64bit)上使用Delphi 7和Delphi XE2,如果从IDE里面,我仍然遇到这个问题:



编译程序,运行它,停止它,更改它并重新运行我收到此错误消息:



[致命错误]无法创建输出文件project1.exe



我不知道是什么原因导致的。我有googled了解更多信息,但我找不到解决方案。



有两种解决方法:等待一两分钟,或手动删除project1.exe。不用说,这是不可行的。



我没有病毒扫描程序,没有病毒。具有完全访问相关文件夹的权限。以管理员身份运行所有内容。



那么这是什么原因?我可以做些什么来解决它?

解决方案

我找到了解决方案。看来,禁用服务应用程序体验导致了这一点。
禁用任务系统将锁定任何可执行文件一段时间。



重新启用应用程序体验是解决方案。 >

通过以下方式找到:



https://superuser.com/questions/260375/why-would-system-continue-locking-executable-file-处理后应用程序退出


So for some time now I keep having this problem:

on windows 7 (64bit), with Delphi 7 and Delphi XE2, if from within the IDE, I compile a program, run it, stop it, change it and rerun it I get this error message:

[Fatal Error] Cannot create output file "project1.exe"

I have no clue to what causes this. I googled for more information, but I could not find a solution.

There are two workarounds: either wait a minute or two, or delete project1.exe manually. Needless to say, this is unworkable.

I do not have a virus scanner, and no virus. Have full access to related folders. Run everything as Administrator.

So what causes this? And what can I do to fix it?

解决方案

I found the solution. It appears that disabling the service "Application Experience" caused this. When disabled the task "system" will lock "any" executable for some time.

Re-enabling "Application Experience" is the solution.

Found via:

https://superuser.com/questions/260375/why-would-system-continue-locking-executable-file-handles-after-the-app-has-exit

这篇关于致命错误:无法创建输出文件“project1.exe”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆