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?
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.
精彩评论