Interacting with the Garbage Collector

The System.GC class provides several methods for manually interacting with the garbage collector. In this chapter you already learned some of them. Remember these methods:

Image Collect, which enables you to force a garbage collection

Image WaitForPendingFinalizers, which enables you to wait for all Finalize methods to be completed before cleaning up resources

Image ReRegisterForFinalize, which puts an object back to the finalization ...

Get Visual Basic 2015 Unleashed 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.