How to force garbage collector to run?

Smith
Smith
Participant
374 Points
112 Posts

Hi,

How to force garbage collector to run?

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

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