Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to : let system collect the memory that has already been freed by application

How to : let system collect the memory that has already been freed by application

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformancetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Simon W 0
    wrote on last edited by
    #1

    Hi: When my application start, it allocated some memory from private heap and freed them later,but windows didn't collect them.Windows report that those memory blocks were in use.So, yy question is: How to : let system collect the memory that has already been freed by application I am seeking... For what? Why did you ask me for what? I don't know!

    C R 2 Replies Last reply
    0
    • S Simon W 0

      Hi: When my application start, it allocated some memory from private heap and freed them later,but windows didn't collect them.Windows report that those memory blocks were in use.So, yy question is: How to : let system collect the memory that has already been freed by application I am seeking... For what? Why did you ask me for what? I don't know!

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      you can try _heapmin -c


      To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
         /. #3848917

      image effects!

      1 Reply Last reply
      0
      • S Simon W 0

        Hi: When my application start, it allocated some memory from private heap and freed them later,but windows didn't collect them.Windows report that those memory blocks were in use.So, yy question is: How to : let system collect the memory that has already been freed by application I am seeking... For what? Why did you ask me for what? I don't know!

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        See my MemWatcher[^] tool. /ravi Let's put "civil" back into "civilization" http://www.ravib.com ravib@ravib.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups