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. Visual Studio
  4. Does Deleting a Project Free Memory from Objects?

Does Deleting a Project Free Memory from Objects?

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studioperformancequestion
5 Posts 3 Posters 4 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.
  • K Offline
    K Offline
    kelly90210
    wrote on last edited by
    #1

    I'd like to delete old VS 2013 C# Projects. Will deleting them in the Documents > Visual Studio 2013 > Projects folder also free memory being used by Objects or do I still need to wait for the VS Garbage Collection to get round to doing it? Thanks.

    W L 2 Replies Last reply
    0
    • K kelly90210

      I'd like to delete old VS 2013 C# Projects. Will deleting them in the Documents > Visual Studio 2013 > Projects folder also free memory being used by Objects or do I still need to wait for the VS Garbage Collection to get round to doing it? Thanks.

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      I don't see how deleting a project would directly affect the amount of free memory. The memory usage is created by Visual Studio enviroment so in order to free that memory you need to achieve a situation where Visual Studio no longer uses the previously allocated objects. Deleting a project may or may not free resources. However, deleting a project in order to free memory sounds a bit odd. If your solution is large and contains multiple projects you can consider breaking it to multiple solutions and just referencing the assemblies from another solution. This may help if you're running low on memory.

      K 1 Reply Last reply
      0
      • W Wendelius

        I don't see how deleting a project would directly affect the amount of free memory. The memory usage is created by Visual Studio enviroment so in order to free that memory you need to achieve a situation where Visual Studio no longer uses the previously allocated objects. Deleting a project may or may not free resources. However, deleting a project in order to free memory sounds a bit odd. If your solution is large and contains multiple projects you can consider breaking it to multiple solutions and just referencing the assemblies from another solution. This may help if you're running low on memory.

        K Offline
        K Offline
        kelly90210
        wrote on last edited by
        #3

        Mika Wendelius wrote:

        If your solution is large and contains multiple projects you can consider breaking it to multiple solutions and just referencing the assemblies from another solution.

        Thanks Mika!

        W 1 Reply Last reply
        0
        • K kelly90210

          Mika Wendelius wrote:

          If your solution is large and contains multiple projects you can consider breaking it to multiple solutions and just referencing the assemblies from another solution.

          Thanks Mika!

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          Glad to be of service :)

          1 Reply Last reply
          0
          • K kelly90210

            I'd like to delete old VS 2013 C# Projects. Will deleting them in the Documents > Visual Studio 2013 > Projects folder also free memory being used by Objects or do I still need to wait for the VS Garbage Collection to get round to doing it? Thanks.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            There is no memory to be freed; objects only exist in memory while the application is running. So deleting the projects from the disk has no effect.

            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