Abstract
At this point in the text, you have learned a great deal about how to build custom class types using VB 2010. Now you will see how the CLR manages allocated class instances (aka, objects) via garbage Collection. VB 2010 programmers never directly deallocate a managed object from memory (recall there is no Delete keyword in the VB 2010 language). Rather, .NET objects are allocated to a region of memory termed the managed heap, where they will be automatically destroyed by the garbage collector “sometime in the future.”
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Andrew Troelsen, Vidya Vrat Agarwal
About this chapter
Cite this chapter
(2010). Understanding Object Lifetime. In: Pro VB 2010 and the .NET 4 Platform. Apress. https://doi.org/10.1007/978-1-4302-2986-5_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2986-5_8
Publisher Name: Apress
Print ISBN: 978-1-4302-2985-8
Online ISBN: 978-1-4302-2986-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)