Posted By:
Dermot_Hennessy
Posted On:
Tuesday, March 26, 2002 08:09 PM
Generally - you seem to require a singleton object. Please reference a patterns book or website for more details.
1.1 It will, if it gets to run. The GC thread is low priority, and will not get to run if your threading model does not permit it.
1.2 Should be answered by the "Generally" answer above.
1.3 The purpose behind telling that GC thread that an object is null is to explicitly mark that object for GC. It may be GC'ed anyway - that depends on the number of references held to that object in "live" memory.
1.4 The singleton pattern (and a proper understanding thereof) should again answer this question.
Hope this helps
Dermot