BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to stop VCL DCU files being recompiled ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Mike Down
Guest





PostPosted: Fri Jun 25, 2004 12:59 pm    Post subject: How to stop VCL DCU files being recompiled ? Reply with quote



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





PostPosted: Mon Jun 28, 2004 3:02 pm    Post subject: Re: How to stop VCL DCU files being recompiled ? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.