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. .NET (Core and Framework)
  4. "free" memory

"free" memory

Scheduled Pinned Locked Moved .NET (Core and Framework)
performancetutorialquestion
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.
  • A Offline
    A Offline
    Andrei Matei
    wrote on last edited by
    #1

    I was wondering what kind of memory I use when I, for example, declare a new variable... Is it Ram, or disk swap? Do I have any control over that? Can I find out how much free memory a system has? Thanks, Andrei Matei andreimatei@home.ro

    M 1 Reply Last reply
    0
    • A Andrei Matei

      I was wondering what kind of memory I use when I, for example, declare a new variable... Is it Ram, or disk swap? Do I have any control over that? Can I find out how much free memory a system has? Thanks, Andrei Matei andreimatei@home.ro

      M Offline
      M Offline
      Martin Cook
      wrote on last edited by
      #2

      When you declare a variable it gets created in RAM. If your available RAM is low then the system might swap some stuff to disk in order to free up some RAM, but even in that case your variable would stil reside in RAM. As far as I know you really don't have much control over that.

      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