在Delphi 10.1 Berlin中无法创建输出文件 [英] Could not Create Output file in Delphi 10.1 Berlin

查看:68
本文介绍了在Delphi 10.1 Berlin中无法创建输出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一次运行我的Delphi Project时,它运行没有错误.但是随后的运行会在下面产生错误:

When running my Delphi Project for the first time , it runs with no error. But the subsequent runs produces an error below:

[dcc32 Fatal Error] F2039 Could not create output file '.\Win32\Debug\Project1_p.exe'

我尝试启用我的应用程序体验并将其设置为自动,如这里,没有运气.如何永久解决此问题?我正在使用Delphi 10.1 Berlin.

I tried enabling my application Experience and setting it to automatic, as stated here with no luck. How to fix this permanently? Im using Delphi 10.1 Berlin.

更新1:

我知道删除.exe,检查可执行文件是否仍在任务管理器中运行并杀死进程是快速的解决方案.但是我想要一个永久的解决方法.

I know deleting the .exe, checking whether the executable is still running in the task manager and killing the process are the quick solutions. But I want a permanent fix.

推荐答案

您可能正在通过无需调试运行"按钮(绿色的大箭头Shift + Ctrl + F9)运行应用程序,而不是最好通过运行按钮(Windows F9内的绿色小箭头).

You probably are running your application through the Run Without Debugging button (big green arrow Shift+Ctrl+F9), instead of that you should better run it through the Run button (small green arrow inside of a windows F9).

这样,您不仅可以轻松地修复调试应用程序的错误,而且更重要的是,当您停止调试器(停止"按钮)时,应用程序将关闭,并且可执行文件不再使用,因此您可以重新编译而无需显示再次出现该错误.

This way not only you can easily fix errors debugging your application line to line, but more importantly, when you stop the debugger (Stop button) the application closes and the executable is no longer in use, so you can recompile without showing that error again.

这篇关于在Delphi 10.1 Berlin中无法创建输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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