> 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

Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"