<HTML><HEAD>
<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type></HEAD>
<BODY dir=ltr bgColor=#ffffff text=#000000>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>FYI - I found the solution for this – on the new PC the Platform variable
is set to MCD, not AnyCPU .</DIV>
<DIV> </DIV>
<DIV><A title=http://support.codegear.com/article/37522
href="http://support.codegear.com/article/37522">http://support.codegear.com/article/37522</A></DIV>
<DIV> </DIV><SPAN id=ArticleLabel>
<H3><FONT face="Times New Roman">Problem Description</FONT></H3>
<DIV id=docsection1 class=section header="Problem Description">
<P><FONT face="Times New Roman">I have set an alternative output directory for
my project but when I build the project, the executable is written to my source
directory</FONT></P></DIV><A style="name: 2problemresolution"></A>
<H3><SPAN class=toclink><A
style='href: "http://support.codegear.com/article/37522#37522_tocentry2"'><FONT
face="Times New Roman"> </FONT></A></SPAN><SPAN id=docsectionheader2
title="Collapse section" class=sectioncollapse><A
style="href: "javascript:hideShowElement('docsectionheader2',"
?docsection2?)?><FONT face="Times New Roman"> </FONT></A></SPAN><FONT
face="Times New Roman">Problem Resolution</FONT></H3>
<DIV id=docsection2 class=section header="Problem Resolution">
<P><FONT face="Times New Roman">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:</FONT></P>
<P><FONT face="Times New Roman"></Configuration></FONT></P>
<P><FONT face="Times New Roman"><Platform Condition=" '$(Platform)' == ''
">AnyCPU</Platform></FONT></P>
<P><FONT
face="Times New Roman"><DCC_DCCCompiler>DCC32</DCC_DCCCompiler></FONT></P>
<P><FONT
face="Times New Roman"><DCC_DependencyCheckOutputName>d:\output\mytestoproject.exe</FONT></P>
<P><FONT face="Times New Roman">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.</FONT></P>
<P><FONT face="Times New Roman">You can override environment variables in the
IDE via the following steps:</FONT></P>
<OL>
<LI><FONT face="Times New Roman">Choose Tools | Options.</FONT>
<LI><FONT face="Times New Roman">In the resulting dialog box, select
Environment Variables node in the tree.</FONT>
<LI><FONT face="Times New Roman">Locate PLATFORM.</FONT>
<LI><FONT face="Times New Roman">Click on the Add Override… button.</FONT>
<LI><FONT face="Times New Roman">In the Variable Value field, type
AnyCPU.</FONT>
<LI><FONT face="Times New Roman">Click OK in both dialogs and restart the
IDE.</FONT></LI></OL>
<P><FONT face="Times New Roman">The output path will now be
respected.</FONT></P></DIV></SPAN>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=johnkbird@paradise.net.nz
href="mailto:johnkbird@paradise.net.nz">John Bird</A> </DIV>
<DIV><B>Sent:</B> Wednesday, January 15, 2014 8:58 PM</DIV>
<DIV><B>To:</B> <A title=delphi@listserver.123.net.nz
href="mailto:delphi@listserver.123.net.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV><B>Subject:</B> [DUG] Windows 8.1 issue - D2007 Debugging</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>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.</DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'> </DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>There
is no permissions problem with the output folder, I checked that, and the IDE is
being run as Administrator.</DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'> </DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>Anyone
have any idea why the output folder is being ignored and any fixes?</DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'> </DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'> </DIV></DIV></DIV></DIV>
<P>
<HR>
_______________________________________________<BR>NZ Borland Developers Group -
Delphi mailing list<BR>Post: delphi@listserver.123.net.nz<BR>Admin:
http://delphi.org.nz/mailman/listinfo/delphi<BR>Unsubscribe: send an email to
delphi-request@listserver.123.net.nz with Subject:
unsubscribe</DIV></DIV></DIV></BODY></HTML>