How to force garbage collector to run?

Smith
Smith
2890 Points
78 Posts

Hi,

How to force garbage collector to run?

Views: 9583
Total Answered: 1
Total Marked As Answer: 0
Posted On: 11-Dec-2015 05:27

Share:   fb twitter linkedin
Answers
Jak
Jak
908 Points
132 Posts
         

Hi smith,

you can force garbage collector to rum using

 System.GC.Collect()

But not recommended. Keep in mind, though, that the Garbage Collector might not always clean up what you expect...

Posted On: 11-Dec-2015 05:32
 Log In to Chat