none
Force To Free Up Virtual Memory Manually RRS feed

  • Question

  • I have an Application with 3rd party controls (mostly Grids), it keeps increasing the Virtual Memory usage even Mouse Move. I have tried to use an API - SetProcessWorkingSetSize to Free Up the Memory Usage but the API Free Physical Memory ONLY. Is there any way to Free the Virtual Memory by calling some API?

    Thanks!!
    Tuesday, March 3, 2009 4:35 AM

Answers

  • Beyond forcing a garbage collection, no.  Find out first if your app is leaking unmanaged memory.  If it does, call your grid vendor.  If it doesn't, use a .NET memory profiler.
    Hans Passant.
    Tuesday, March 3, 2009 4:56 AM
    Moderator