Re: why does minimizing my app cut mem usage by 90%?
From: Jerry Coffin (jcoffin_at_taeus.us)
Date: 06/27/04
- Next message: Joseph M. Newcomer: "Re: Pointer of Reference ?"
- Previous message: Kurt: "Re: CHeaderCtrl and HDF_SORTDOWN"
- In reply to: Nobody: "why does minimizing my app cut mem usage by 90%?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 27 Jun 2004 12:12:03 -0600
In article <gQNCc.1014$_I3.412@lakeread03>, nobody@cox.net says...
> I have an MFC application that upon startup uses about 20MB of memory
> according to task manager. I noticed that if I minimize the app, memory goes
> down to about 1MB to 2MB and never returns to 20MB even if I restore the
> app.
[ ... ]
> How can I trigger this behavior without programatically minimizing my app
> which looks ugly on the screen.
SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1);
--
Later,
Jerry.
The universe is a figment of its own imagination.
- Next message: Joseph M. Newcomer: "Re: Pointer of Reference ?"
- Previous message: Kurt: "Re: CHeaderCtrl and HDF_SORTDOWN"
- In reply to: Nobody: "why does minimizing my app cut mem usage by 90%?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|