Menu

Another Bug (and solution) found...

2004-10-23
2012-09-26
  • M. Schodermayr

    M. Schodermayr - 2004-10-23

    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:

      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!

     
    • M. Schodermayr

      M. Schodermayr - 2004-10-23

      Sorry, instead of "acception" & "ecception", I mean exception! be blamed

       
      • Colin Laplace

        Colin Laplace - 2004-10-25

        Thank you for the fix !

        Colin

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.