Fatal Error: Cannot create output file "project1.exe"

Viewed 48588

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?

15 Answers
  1. Try to open the windows task manager
  2. go to process if you can not find your app in here
  3. then go to details tab you will find it.

I had the same problem and then I found it on details tab.

1/29/2020: During the past week, I experienced this: Load a project in Delphi 7 on a Win 10 machine, compile it (successfully), run the project from inside of D7 (successful), recompile the project and get a "cannot create ....project1.exe". Upon reboot, can successfully compile and execute, but the second compile fails as the above. I found that Dell Support Assist had an update 8 days ago (about the time this started), so I uninstalled it. After that, no problems with D7.

A solution that has worked for me, change project options -> Linking and leave it like that, then delete the executable manually and solved.Project options -> linking

Just save project as in another place. it works for me.

Related