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. Memory Crunching

Memory Crunching

Scheduled Pinned Locked Moved C / C++ / MFC
performancetutorialquestion
4 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.
  • 2 Offline
    2 Offline
    2sky
    wrote on last edited by
    #1

    When you minimize an application, a huge amount of memory is decommited back to the system (You can check this with the Windows Taskmanager)... Does anyone know how to force this inside the application, without minimizing the mainwindow ?

    R T 2 Replies Last reply
    0
    • 2 2sky

      When you minimize an application, a huge amount of memory is decommited back to the system (You can check this with the Windows Taskmanager)... Does anyone know how to force this inside the application, without minimizing the mainwindow ?

      R Offline
      R Offline
      Rick York
      wrote on last edited by
      #2

      _heapmin() can do this to a degree. As far as I know it is the only way to release memory back to the OS in Win32.

      1 Reply Last reply
      0
      • 2 2sky

        When you minimize an application, a huge amount of memory is decommited back to the system (You can check this with the Windows Taskmanager)... Does anyone know how to force this inside the application, without minimizing the mainwindow ?

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #3

        SetProcessWorkingSetSize. Available on NT/2K only. Tomasz Sowinski -- http://www.shooltz.com.pl

        2 1 Reply Last reply
        0
        • T Tomasz Sowinski

          SetProcessWorkingSetSize. Available on NT/2K only. Tomasz Sowinski -- http://www.shooltz.com.pl

          2 Offline
          2 Offline
          2sky
          wrote on last edited by
          #4

          Thank you very much, the both of you for making time... You soulved a huge problem I was struggling with... :-D Thankx

          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