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. The Lounge
  3. C++ Garbage collection

C++ Garbage collection

Scheduled Pinned Locked Moved The Lounge
3 Posts 3 Posters 6 Views
  • 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.
  • R Offline
    R Offline
    rdcrumbaker
    wrote last edited by
    #1

    Anyone out there know of any free/open source code that implements a real garbage collector in C++ ? Anyone have any experience with this ?

    J U 2 Replies Last reply
    0
    • R rdcrumbaker

      Anyone out there know of any free/open source code that implements a real garbage collector in C++ ? Anyone have any experience with this ?

      J Offline
      J Offline
      justin tabb
      wrote last edited by
      #2

      Here are a few, I think some are free

      1 Reply Last reply
      0
      • R rdcrumbaker

        Anyone out there know of any free/open source code that implements a real garbage collector in C++ ? Anyone have any experience with this ?

        U Offline
        U Offline
        User 8128300
        wrote last edited by
        #3

        It works OK until your program relies on more memory than is physically available. After that point every pass the garbage collector makes of your memory you swap every page in the programs memory space. Performance suffers, badly. Its the one thing the vendors don't comment on. Its one reason why large programs (such as CAD and GIS programs) will never get done in C# or Java. Re: All the fuss about should I go .Net or not? Depends on if you are writing very large apps or not. If you are, then beware garbage collection. Stephen

        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

        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups