CrazyEngineers Forum
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Computer Science & IT Engineering

CE - Ads

Radiance '10RadianceIITBIIT Bombay

Reply
 
LinkBack Thread Tools

  #1
Old 14th January 2009, 12:00 AM
CE - Regular Member
 
babloo0311's Avatar
 
Join Date: 14th August 2008
I'm a Crazy Information science Engineer
Location: India
Posts: 86
Default Difference B/w Finalize and Finally in .Net?

Hi Everyone,


I want the Difference between finalize method and Finally method in .NET and when exactly the garbage collector calls these methods. What does Dispose method does.
babloo0311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2
Old 14th January 2009, 02:30 PM
CE - Enthusiast
 
arunhero99's Avatar
 
Join Date: 7th January 2009
I'm a Crazy Electronics Engineer
Location: Bangalore
Posts: 121
Default Re: Difference B/w Finalize and Finally in .Net?

Difference between final, finally and finalize() « ALLU
__________________
Honor and Glory
http://funhike.blogspot.com/
arunhero99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3
Old 14th January 2009, 06:18 PM
CE - Newbie
 
rashmi05's Avatar
 
Join Date: 1st September 2008
I'm a Crazy COMPUTERS Engineer
Posts: 6
Default Re: Difference B/w Finalize and Finally in .Net?

The Dispose pattern is used to release unmanaged resources in a timely fashion. This allows you to do this in a way that you have control over when they are released. where as Finalize method is also used for the purpose of releasing resources - but in this You have no control over when it will be called by the GC. Further,
implementing a Finalize method can have an adverse affect on the performance of the GC because it takes two passes of the GC to collect objects that override Finalize.
rashmi05 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4
Old 15th January 2009, 07:42 AM
CE - Regular Member
 
babloo0311's Avatar
 
Join Date: 14th August 2008
I'm a Crazy Information science Engineer
Location: India
Posts: 86
Default Re: Difference B/w Finalize and Finally in .Net?

thanks friends
babloo0311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT +6.5. The time now is 06:42 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Member comments are owned by the poster. Copyright © 2005-2009 CrazyEngineers.com. All rights reserved.

CE - Ads
BITS PILANI

CE BITS QUARK 2010

GOA Campus QUARK 2010
Advertise on CE