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#
  4. Memory Managment

Memory Managment

Scheduled Pinned Locked Moved C#
performancehelp
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.
  • B Offline
    B Offline
    bwagz
    wrote on last edited by
    #1

    Hi, When my win app executes it opens in a maximized form and takes up 45,000K in mem. However, as soon as i minimize it, it cuts the mem usage in half. Is there are reason for this and is there any way of doing this type of mem clean up in the code. I tried using the garbage collection but it doesn't seem to do it. thanks for any help

    P S 2 Replies Last reply
    0
    • B bwagz

      Hi, When my win app executes it opens in a maximized form and takes up 45,000K in mem. However, as soon as i minimize it, it cuts the mem usage in half. Is there are reason for this and is there any way of doing this type of mem clean up in the code. I tried using the garbage collection but it doesn't seem to do it. thanks for any help

      P Offline
      P Offline
      PaleyX
      wrote on last edited by
      #2

      Minimising an app causes the OS to farm a lot of the memory it uses out to disk. It happens with every app. Rugby League: The Greatest Game Of All.

      1 Reply Last reply
      0
      • B bwagz

        Hi, When my win app executes it opens in a maximized form and takes up 45,000K in mem. However, as soon as i minimize it, it cuts the mem usage in half. Is there are reason for this and is there any way of doing this type of mem clean up in the code. I tried using the garbage collection but it doesn't seem to do it. thanks for any help

        S Offline
        S Offline
        Salil Khedkar
        wrote on last edited by
        #3

        That’s the OSs memory management and optimization in action If you minimize an app, it does not need to be as responsive as an active app. So the OS optimizes the situation by moving most of the app data to virtual memory, so the physical memory usage is reduced and that real estate is available for active foreground apps. If you maximize it again, the reverse thing happens. ;) Salil Khedkar [^]

        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