CubicDesign wrote:
> I added today that unit I was talking about a week before, to an 
> existing project.
> I just added the unit to the uses clause and nothing more! I did not 
> used any of its procedures or functions.
> The size of the exe file jumped from 409600 to 542800 bytes. The size of 
> the compiled unit is 100KB.
> 
> What it is wrong? The size of my EXE should not increase since I used no 
> functions/procedures from that unit.
> 
> The header of that unit is something like:
> 
> UNIT MyTpu;
> interface
> uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, 
> Forms,
>      Dialogs, StdCtrls, Registry, ShellApi, mmSystem, ComObj, JPEG, 
> DateUtils,
>      IniFiles, FileCtrl, ShlObj, ActiveX, SHFolder, ClipBrd, ImageHlp, 
> WinSock,
>      FastStrings, UnitEmailVerifier, CubTPU_ext;

Looks like this is a unit that defines a form class. It includes a 
resource file, right? That resource must be included in the EXE since 
the compiler cannot know whether that resource really gets used. 
Resources always get included.

-- 
Rob
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to