This project is read-only.

SPSite and SPWeb not disposed


The source delivered contains a couple of un-disposed SPSite and SPWeb's. This should be fixed to save resources.
It can be easily done by searching for "new SPSite" in the solution an then placing a nice and easy "using" around all hits. I done it myself, but it would be nice if the delivered solution would already contain code following this simple best practice for sharepoint development.


vikoprte wrote Nov 17, 2010 at 9:35 AM

I agree - It would be good to modify the source code to follow best practice on disposal. You can use the SPDisposeCheck tool to validate the source code.

wrote Feb 14, 2013 at 9:39 PM