Board index » delphi » Memory usage problems
cargo
![]() Delphi Developer |
Memory usage problems2003-11-30 11:12:18 PM delphi224 Hi all I have the following problem: If I create an empty project with one form (Delphi 6 Prof, Windows XP Prof) and run it, task manager shows a mem usage of 2.5 megs. When I click the minimize icon, mem usage drops to 0.5 megs. Click the restore icon and mem usage is 0.95. Then it will stay between these limits (0.5 minimized, 0.95 restored). Questions: 1) why that first mem usage (2.5 megs)? 2) how can I simulate a minimize to get the same effect as clicking the minimize icon? I tried WindowsState = wsMinimized but the effect is not the same as clicking with the mouse: mem usage is around 0.9 when minimized and 1.75 when restored. Also, if I do WindowsState := wsMinimized in OnShow event, the window will minimize to caption bar in the left bottom corner of the desktop. Why is this? |