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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With