July 2015
Intermediate to advanced
1300 pages
87h 27m
English
With the object resurrection phrase, we describe the scenario in which an object is restored after its reference was removed, although the object was not removed yet from memory. This is an advanced technique, but it is not very useful and Microsoft strongly discourages you from using it in your applications. It is helpful to understand something more about objects’ lifetime. An object being finalized can store a self-reference to a global variable, and this can keep the object alive. In simpler words, a reference to a “died” object is restored when within the Finalize method the current object is assigned (using the Me keyword) to a class-level or module-level variable. Here’s a small code example for ...