 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mike Down Guest
|
Posted: Fri Jun 25, 2004 12:59 pm Post subject: How to stop VCL DCU files being recompiled ? |
|
|
Hi,
I have a problem with a program executable that I've started working
upon.
(Delphi 5 UP1, WinXP)
The program is compiled without runtime packages, but when it is
compiled the VCL source code is also re-compiled, and the resulting
DCUs appear in the 'Unit Output Directory' specified in the Project
Options.
This causes problems for us, as the Project Options turn on Range
Checking and Overflow checking.
Consequently, we now see related errors in ComCtrls.pas -
eg, I've changed line 12825 -
(PFontHandles(DesignInfo).OurFont + PFontHandles(DesignInfo).StockFont
<> 0)
TO
(PFontHandles(DesignInfo).OurFont and
PFontHandles(DesignInfo).StockFont <> 0)
to avoid the range check error ... but, I don't think I should be
doing this.
These errors don't surface with the original VCL DCUs as Ranging
checking is explicitly turned off ($R-) in ComCtrls.pas.
In fact a colleague does not get his VCL DCUs re-compiled using the
same project settings, and hence doesn't see the Range check error
(although he's using WinNT) ?
So finally, my question is - What could I have done (outside of the
Project settings) to force Delphi to re-compile the VCL source code ?
Thanks for any advice,
Mike
|
|
| Back to top |
|
 |
Mike Down Guest
|
Posted: Mon Jun 28, 2004 3:02 pm Post subject: Re: How to stop VCL DCU files being recompiled ? |
|
|
I've found the source if this problem in case anyone else ever gets
the same.
It appears that Delphi will attempt to build any PAS files located in
the Environment Options Library Path ... in this case I somehow had
the VCL source directory path set - hence the re-compile of the full
VCL source code.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|