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. Tag-object, use of memory, dispose

Tag-object, use of memory, dispose

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studiomcpdata-structuresperformance
4 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.
  • L Offline
    L Offline
    Load_error
    wrote on last edited by
    #1

    Hi All! In C# ,VS2010 : Let's say I assign a tag-property for a TreeNode-object with an IShellFolder-object. What do VS really store in the Tag-property? Do the framework hide all the gruesome memoryhandling for me and internally just store a pointer to the IShellFolder-object, or do the memoryuse just increase the further I recurse into the Folder-tree? I have been programming for some years, but have no formal education on computing, except for some MCP-courses. Someone knows what I should read or some good sources for explaining this? TIA, Load_error ------ On Error Goto Hell

    L 1 Reply Last reply
    0
    • L Load_error

      Hi All! In C# ,VS2010 : Let's say I assign a tag-property for a TreeNode-object with an IShellFolder-object. What do VS really store in the Tag-property? Do the framework hide all the gruesome memoryhandling for me and internally just store a pointer to the IShellFolder-object, or do the memoryuse just increase the further I recurse into the Folder-tree? I have been programming for some years, but have no formal education on computing, except for some MCP-courses. Someone knows what I should read or some good sources for explaining this? TIA, Load_error ------ On Error Goto Hell

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      IMO you should learn a language, or any new technology, from a book you buy and study; and study again one year later. Memory management is pretty automatic in .NET :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      L 1 Reply Last reply
      0
      • L Luc Pattyn

        IMO you should learn a language, or any new technology, from a book you buy and study; and study again one year later. Memory management is pretty automatic in .NET :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        L Offline
        L Offline
        Load_error
        wrote on last edited by
        #3

        Well, to reduce the memory-footprint is not just a matter of reading, it is (together with memory-leaking and multithreading) some of the stuff I find most difficult to debug (like the half-assed CLR-implementation GC, what does it really collect?!? What should I release with Marshalling, etc ?!?). Desktop developers have got a christmaspresent from MS every time they release a new OS, like they think "how to break any existing code" every time... I started out in the VB3 days (Win95 / -stuff), and seem to re-create libraries for (almost) the same things over and over again. Your answer did not help much, either... Regards, Load_error

        L 1 Reply Last reply
        0
        • L Load_error

          Well, to reduce the memory-footprint is not just a matter of reading, it is (together with memory-leaking and multithreading) some of the stuff I find most difficult to debug (like the half-assed CLR-implementation GC, what does it really collect?!? What should I release with Marshalling, etc ?!?). Desktop developers have got a christmaspresent from MS every time they release a new OS, like they think "how to break any existing code" every time... I started out in the VB3 days (Win95 / -stuff), and seem to re-create libraries for (almost) the same things over and over again. Your answer did not help much, either... Regards, Load_error

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Books have been devoted to the subject of garbage collection, as it is a popular research topic. As you haven't made clear what knowledge you have of the subject, it is hard to provide reference material at the right level. Here are some pointers nevertheless; please make sure you understand reference types before you even enter the GC documentation. http://msdn.microsoft.com/en-us/magazine/bb985010.aspx[^] http://blogs.msdn.com/b/ricom/archive/2004/11/29/271829.aspx[^] http://msdn.microsoft.com/en-us/magazine/cc300474.aspx[^] If that is insufficient, clarify your quest, and come up with more specific questions. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          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