C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




when we have to call dispose and finalize method in asp.net?


Posted Date: 20 Aug 2008      Total Responses: 2

Posted By: Y. Priya       Member Level: Silver     Points: 1


Hi,

I need to clear about when we have to call dispose and finalize method? and which method comes first?

Thanks in advance.

Regards,
Y.Priya.




Responses

Author: ANIL PANDEY    20 Aug 2008Member Level: DiamondRating:     Points: 4
hi,

When the Use of the object is over and furture u are not goign to reference that then u can use the Final or Dispose method


Genrally we write the code in the Finally Block


Try

Catch

Finally
{
CLose
Dispose

}


because we have done our task.....

So use these method at the end of the function or ur application


Regards
Anil



Author: D.Jeya kumar(JK)    20 Aug 2008Member Level: DiamondRating:     Points: 3
hi,

In finally block we can call the dispose method. finally block will be executed either error occurs or not. it will be always executed.

regards
JK




Post Reply
You must Sign In to post a response.
Next : dropdown asp.net control
Previous : Read Excel Row and upload in SQLSERVER2000 in C#
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing service

Contact Us    Privacy Policy    Terms Of Use