Re: Free Memory
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 01 Dec 2006 14:26:42 -0500
You have to defined what you mean by "unused memory". There is no mechanism in the
standard storage allocator to return space to the kernel once it is freed (this is
inherent in the way all storage allocators work; see my essay on storage allocation on my
MVP Tips site).
"Crash" is a meaningless term; you have not actually said what happens. Therefore, there
is no way to suggest any possible solution to the problem.
Make sure you have freed up any objects you are no longer using. Otherwise, you have a
storage leak, and the problem is entirely yours. Next, you have to worry about memory
fragmentation, which can cause a memory footprint to monotonically increase. A partial
solution here is to never allocation extremely large blocks of memory (>100K, for example)
but instead figure out how to represent information in smaller chunks, which will reduce
your vulnerability to fragmentation. But the description you give is so vague as to be
impossible to analyze the cause except in the most general terms.
joe
On 1 Dec 2006 03:19:00 -0800, "Mullai" <write2mullai@xxxxxxxxx> wrote:
Hi Friends,Joseph M. Newcomer [MVP]
I want to know how to free the unused memory in Windows. When
I run my application the RAM free percentage keeps on decreasing . At
one point of time my application crashes when the system resources goes
very down below 40%. Please anyone help me to overcome this problem.
Actually my application is a pagination software like Quark Express. My
application is in VC++ 6.0 with MFC.
Thanx in advance,
Mulls
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Free Memory
- From: Mullai
- Free Memory
- Prev by Date: Re: How to over come CTreeCtl Limitations
- Next by Date: Re: Updating display of Tree Control with check boxes
- Previous by thread: Re: Free Memory
- Next by thread: Controling dot-matrix printer
- Index(es):
Relevant Pages
|