When you define the EXE-Output (using a relative path like ..\Bin\Debug), close DevCPP & restart it and then try to open the last Project, an acception occurs (invalid file name).
The ecception cames from the GetExecutableName in project.pas (line 1438). There you can find the following code:
if not DirectoryExists(Options.ExeOutput) then
MkDir(Options.ExeOutput);
Replace it with
ForceDirectories(Options.ExeOutput);
and the exceptions wouldn't be shown again and the project is opened in a correct way!
ForceDirectories checkes, if the given Directory exists. If not, each dirs & sub-dirs will be created! Get sure, that ForceDirectories from SysUtils will be used, because the one from FileCtrl is deprecated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found an other bug in DevC++:
When you define the EXE-Output (using a relative path like ..\Bin\Debug), close DevCPP & restart it and then try to open the last Project, an acception occurs (invalid file name).
The ecception cames from the GetExecutableName in project.pas (line 1438). There you can find the following code:
Replace it with
and the exceptions wouldn't be shown again and the project is opened in a correct way!
ForceDirectories checkes, if the given Directory exists. If not, each dirs & sub-dirs will be created! Get sure, that ForceDirectories from SysUtils will be used, because the one from FileCtrl is deprecated!
Sorry, instead of "acception" & "ecception", I mean exception! be blamed
Thank you for the fix !
Colin