Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Releasing Resources

Status
Not open for further replies.

Craig0201

Technical User
Oct 11, 2000
1,261
GB
Hi all.....

Where is the best place to release a resource? I'm streaming HTML via the WebResponse class and want to know where I should close the WebResponse. Should this be in the finalise method of my class?

Craig
 
Ignore me. Found a great example on how to use IDisposable to help me.

Craig
 
In a book unfortunately. Beginning VB.Net (Wrox). Strangely better coverage on IDisposable than Balena, I found!

Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top