Re: Memory problems (possibly very easy question)
- From: "peter koch" <peter.koch.larsen@xxxxxxxxx>
- Date: 29 Nov 2006 08:03:58 -0800
Joseph M. Newcomer skrev:
The question sounds more like the "I freed the memory, why didn't my program get smaller?"
(Usually based on some value like theprogram size in Task Manager). The program doesn't
get smaller because it isn't supposed to get smaller; that's not how storage allocators
work. It is a common delusion that if you free storage your program should get smaller;
it can't, and it won't. The subtleties of this are discussed in my essay on storage
mangement on my MVP Tips site.
I disagree. Read this excerpt from the OP:
But my mem usage does not reduce... so when i run the process a few
times the usage gets really really large, and windows gives me virtual
memory usage warnings (or similar).
Essentially: every time the process is run memory increases. This is a
very strong indication that memory is not reused.
/Peter
.
- Follow-Ups:
- Re: Memory problems (possibly very easy question)
- From: Joseph M . Newcomer
- Re: Memory problems (possibly very easy question)
- References:
- Re: Memory problems (possibly very easy question)
- From: Joseph M . Newcomer
- Re: Memory problems (possibly very easy question)
- Prev by Date: Re: How about the future of VC++/MFC
- Next by Date: Re: How about the future of VC++/MFC
- Previous by thread: Re: Memory problems (possibly very easy question)
- Next by thread: Re: Memory problems (possibly very easy question)
- Index(es):
Relevant Pages
|
Loading