Garbage Collector
When does garbage collector start to run in c#?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vignesh ManiPosted Jun 25, 2015, 5:44 AM
1. The system has low physical memory.
2. The memory that is used by allocated objects on the managed heap surpasses an acceptable threshold. This threshold is continuously adjusted as the process runs.
3. The GC.Collect method is called. In almost all cases, you do not have to call this method, because the garbage collector runs continuously. This method is primarily used for unique situations and testing.
Munesh SharmaPosted Jun 20, 2015, 2:14 AM
Pankaj Kumar ChoudharyPosted Jun 19, 2015, 9:59 PM
Sujeet SumanPosted Jun 19, 2015, 8:39 AM