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