Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2006

Tip: Looking for answers? Try searching our database.

Free the memory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mullai - 01 Dec 2006 11:25 GMT
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
Bruno van Dooren [MVP VC++] - 03 Dec 2006 10:35 GMT
>         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"


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.