How to force garbage collector to run?

Smith
Smith
Participant
360 Points
110 Posts

Hi,

How to force garbage collector to run?

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

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
352 Points
151 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
banner

Blog

Active User (0)

No Active User!
 Log In to Chat