GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Microsoft.NET
Go To First  |  Previous Question  |  Next Question 
 Microsoft.NET  |  Question 30 of 38    Print  
Does Garbage Collection disposes a object even if you abort the application in the middle? How to check this?

  
Total Answers and Comments: 3 Last Update: September 05, 2008     Asked by: syamala 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 30, 2007 17:21:52   #1  
Koolster        

RE: Does Garbage Collection disposes a object even if ...
GC collects in a periodic fashion and clears only those objects which have been marked for deletion.
 
Is this answer useful? Yes | No
October 31, 2007 00:27:57   #2  
venubabu.ch Member Since: October 2007   Contribution: 1    

RE: Does Garbage Collection disposes a object even if ...
No GC doesn't clear when the application is aborted. As It run's on low priority thread and so if the application is aborted. The thread itself aborts.
 
Is this answer useful? Yes | No
September 05, 2008 05:37:36   #3  
Aldo John Member Since: September 2008   Contribution: 4    

RE: Does Garbage Collection disposes a object even if you abort the application in the middle? How to check this?
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 your program as there is no reference to those objects. To check if it is collected or not you can try some CLR monitoring tools...like CLR Profiler...But its a hard job...most probably you will not need that..!!
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape