Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does SharePoint 2010 still have the complicated SPWeb.Dispose methods?

One of my gripes with SharePoint 2007 are the complicated SPWeb.Dispose rules that can either cause a big resource leak if you don't dispose what you have to, or all sorts of other weird issues if you dispose when you don't have to. Roger Lamb's Posting tries to summarize the madness. but I wonder if SharePoint 2010 improves this?

I have the Beta setup but don't really see much difference here, but was some of the stuff at least improved?

like image 232
Michael Stum Avatar asked Mar 01 '10 22:03

Michael Stum


1 Answers

Yes. You still need to carefully dispose of SPSite and SPWeb instances in SharePoint 2010. The last I checked, SPDisposeCheck had not been updated for SharePoint 2010. If it hasn't already been released, I'm certain it will be soon.

like image 112
Rob Windsor Avatar answered Oct 14 '22 23:10

Rob Windsor