Does Garbage Collection disposes a object even if you abort the application in the middle? How to check this?

 Posted by deccansoft on 7/30/2010 | Category: C# Interview questions | Views: 1145

Garbage Collector runs as a seperate thread in the .NET runtime and not in the application we create. Even if the application crashes GC will collect all the memory occupied by our program as there is no reference to those objects. To check if it is collected or not we can try some CLR monitoring tools like CLR Profiler

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response