1.

When Should You Call The Garbage Collector In .net?

Answer»

As a good RULE, you should not call the garbage COLLECTOR. However, you could call the garbage collector when you are done using a large OBJECT (or set of OBJECTS) to FORCE the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.

As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.



Discussion

No Comment Found