When to Dispose of SPWeb and SPSite objects

Knowing when to dispose of SPWeb or SPSite objects is confusing as hell. Well, Roger Lamb has an excellent page showing patterns that can leak memory, and how to avoid them. This should be mandatory reading for SharePoint devs. (Previously mentioned here – but this is a better link)

When to Dispose of SPWeb and SPSite objects

One thought on “When to Dispose of SPWeb and SPSite objects

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.