Main Site Documentation

Garbage Collection


#1

I try GC. use under 2 function

Debug.EnableGCMessages(false);
Debug.GC(false);

Especially, Debug.GC(false) and Debug.GC(true); is Same.

the bool is not operate?


#2

Your English is … :slight_smile: Maybe Google translator would do a better job?

Look at description here: http://msdn.microsoft.com/en-us/library/ee433726.aspx

“A Boolean value that specifies whether garbage collection should be forced.”

So, in both cases it will print out the same information, but when True is sent, you will force garbage collection.