Memory Management

Memory management was introduced in this chapter. Concepts such as root objects, reference trees, generations, and finalization queues were reviewed. The next chapter expands the conversation to include the disposable pattern, weak references, unsafe pointers, and other topics related to memory management.

Understanding the managed paradigm to memory management is particularly important to C-based and C++-based programmers. C programmers are accustomed to managing their own memory with minimal assistance from the environment. For them, memory management in .NET represents a different mindset, which includes adopting different best practices for allocating, managing, and releasing memory. Some C developers perceive the managed ...

Get Programming Microsoft® Visual C#® 2008: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.