Free the memory

M

Mullai

Hi Friends,

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
 
B

Bruno van Dooren [MVP VC++]

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.

This has nothing to do with freeing unused memory in windows.
It sounds like you have a memory leak in your application.
Each memory allocation has to be paired with a deallocation to prevent
memory leaks.

You'll have to find out which allocations are not freed by your app.
There is a tool called pageheap that can help you.

You can also use _CrtMemDumpAllObjectsSince or _CrtDumpMemoryLeaks to help
you


--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top