Patrick’s Bytes

Techie for the past 30 years…

Disposing resources for SharePoint developers

Although SharePoint 3.0/ 2007 (MOSS and WSS) is built on top of ASP.NET 2.0, there are still connection to unmanaged COM+ codes inside. Whenever you programmably playing around with SharePoint APIs, remember to dispose the SharePoint object instance.

Roger Lamb’s blog post here has very details explanation on this subject even it has been mentioned again and again before.

http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx

No Responses to “Disposing resources for SharePoint developers”

RSS feed for comments on this post. TrackBack URL

Leave a Response