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:
Collect
, which enables you to force a garbage collection
WaitForPendingFinalizers
, which enables you to wait for all Finalize
methods to be completed before cleaning up resources
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.