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. Other Discussions
  3. Article Writing
  4. Memory Crunching

Memory Crunching

Scheduled Pinned Locked Moved Article Writing
performancetutorial
2 Posts 2 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 entire application a great part of it's memory is decommited back to the system (You can check this with the taskmanager)... Does anyone know how to do this inside an application without minimizing it...

    S 1 Reply Last reply
    0
    • 2 2sky

      When you minimize an entire application a great part of it's memory is decommited back to the system (You can check this with the taskmanager)... Does anyone know how to do this inside an application without minimizing it...

      S Offline
      S Offline
      Simon Brown
      wrote on last edited by
      #2

      Maybe, just maybe,... // // Get a handle to the process. // DWORD dwId = ::GetCurrentProcessId(); HANDLE hProcess = ::OpenProcess(PROCESS_ALL_ACCESS,FALSE,dwId); if (hProcess) { ::EmptyWorkingSet(hProcess); ::CloseHandle(hProcess); } Old Simon

      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