SharePoint disposable objects unmystified


Recently two great articles on dealing with SharePoint 2007 disposable objects have been published. The first one called Dealing with Memory Pressure problems in MOSS/WSS by Stefan Goßner presents the memory issues in general together with a few solutions on how to deal with them.

The other article - SharePoint 2007 and WSS 3.0 Dispose Patterns by Example by Roger Lamb describe the correct way SharePoint developers are supposed to handle disposable objects in SharePoint. Roger describes not only the most common SPSite and SPWeb objects but PublishingWeb as well. Dealing with these objects is followed by many examples and various context so that you get a very clear picture of the proper usage of the Dispose() and Close() methods.

Definitely worth reading!

Technorati Tags: SharePoint 2007, SharePoint, MOSS, WSS, Best Practices, Performance

Others found also helpful: