Here's an article about when you need to dispose of SharePoint objects and when you absolutely shouldn't.
Quick caution I just found out about: never dispose an object from SPContext.
http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx
Here's the MSDN white page on it, but the first article is a bit easier to read
http://msdn.microsoft.com/en-us/library/aa973248.aspx
No comments:
Post a Comment