> 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.

On my system, such an application takes 1988KB/472KB and 336/472KB after 
minimize.
The first number correspond to the working set of the program. The second is 
the size of the virtual
memory for the process. To see both numbers in task manager, you must go to the 
display menu and
select the columns. You may also use ProcessExplorer from www.sysinternals.com 
to see more numbers.

> 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.

This si normal behaviour. When a process is minimized, Windows reduce his 
working set as much.

> So my question is, is there any way to reduce footprint in memory?

The bigger numbers you have compared to mine is the sign your "do nothing" 
application is more than
a simple form. Search for unneeded units in the uses clause. Even if you don't 
call any code from
that units, it may grow you exe file because of the initialization/finalization 
sections they have.

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

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

Reply via email to