Jack,

As far as I am aware, the VB app is small because the runtime it requires
has most of the code in it and needs to be shipped with your VB application
(as do the external ActiveX component libraries such as COMCTL32). Most of
the things that you use in Delphi (VCL components included) are compiled
straight into the executable. Hence you can deliver the Delphi .EXE and know
that you have everything you need. If you ship a VB app, you might also need
to deliver the VB runtime, later versions of ActiveX libraries etc.

You can make tiny Delphi programs, and there are a number of articles on
doing it on the web. It generally involves writing your own Tform equivalent
to get away from using the Delphi code libraries. Others on this list may
have more pointers into doing this, but it's generally better to stick with
the VCL. Whats 6Mb amongst friends these days anyway.

Regards,
Darren

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Jack
Sent: 11 August 2005 01:06
To: [email protected]
Subject: Delphi Apps Memory usage

Hello all,

A Delphi application with only one form and nothing else takes 6MB memory if
it's compiled with Delphi 2005, or 3.6MB if compiled with Delphi 5. That's
very big for an application that does nothing.
However, if I minimize the window to task bar, the memory usage drops to
below 1MB. Then I activate the window again, the memory usage goes up to
1.xMB but does not go up all the way to 6MB or 3.6MB.
This works quite mysteriously.

A VB app that I use with skinned forms and does a lot of things takes below
3MB memory. When it's minimized to tray icon, it takes 600KB.

So my question is, is there any way to reduce footprint in memory?
It feels strange that the real app in VB that needs the VB runtime libraries
takes less memory then an empty Delphi app.

--
Best regards,
Jack

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi



_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to