How to force garbage collector to run?

Smith
Smith
Moderator
738 Points
154 Posts

Hi,

How to force garbage collector to run?

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

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
404 Points
167 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