FYI - I found the solution for this – on the new PC the Platform variable is 
set to MCD, not AnyCPU .

http://support.codegear.com/article/37522

Problem Description
I have set an alternative output directory for my project but when I build the 
project, the executable is written to my source directory

    Problem Resolution
The problem could be due to an environment variable called PLATFORM. If you 
open the .dproj file you can see where the output path is set:

</Configuration>

<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

<DCC_DCCCompiler>DCC32</DCC_DCCCompiler>

<DCC_DependencyCheckOutputName>d:\output\mytestoproject.exe

You can see that this is conditional on PLATFORM being set to AnyCPU. If you 
have PLATFORM set to anything other than AnyCPU the condition will not be met 
and the Output path will not be set.

You can override environment variables in the IDE via the following steps:

  1.. Choose Tools | Options. 
  2.. In the resulting dialog box, select Environment Variables node in the 
tree. 
  3.. Locate PLATFORM. 
  4.. Click on the Add Override… button. 
  5.. In the Variable Value field, type AnyCPU. 
  6.. Click OK in both dialogs and restart the IDE.
The output path will now be respected.


From: John Bird 
Sent: Wednesday, January 15, 2014 8:58 PM
To: NZ Borland Developers Group - Delphi List 
Subject: [DUG] Windows 8.1 issue - D2007 Debugging

Another strange issue – tidying up source in D2007 before moving to XE5, and 
the debugger for D2007 is not working on WIndows 8.1 64 bit – the reason is the 
output folder which is set correctly in the project for the .EXE file is being 
ignored when building and running – the EXE file ends up in the folder where 
the project file is.   The debugger runs the EXE that is in the output folder, 
which is not the one just built, so no debugging happens.  The only thing that 
works is the Stop button, but no breakpoints.
There is no permissions problem with the output folder, I checked that, and the 
IDE is being run as Administrator.
Anyone have any idea why the output folder is being ignored and any fixes?


--------------------------------------------------------------------------------
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to