I'm writing a windows app that's designed to run minimized (showing a tray
icon only, not in the taskbar).
Starting the app in normal mode (window Normalized) it takes about 17Mb of
memory, then when I minimize it to the tray this shrinks to 2Mb.
Starting the app window as minimized though consumes the full 17Mb of
memory. If I normalize or maximize the window it stays the same, only
reducing to 2Mb when I minimize it manually.
I want the app to run minimized by default, so I want to start it minimized,
but I can't seem to get this to only consume the 2Mb of memory that it
should.
I'm on framework 2.0. Any advice anyone ?
Cerebrus - 27 Mar 2006 12:54 GMT
Are you checking the memory usage from the Task manager window
(Ctrl+Alt+Del) ? The minimized figure is just as misleading as the
Restored Window figure.
If so, this article might clear up things...
<http://www.itwriting.com/dotnetmem.php>
Regards,
Cerebrus.