Florent Clairambault

Sharepoint : What should I Dispose ?

When you begin with Sharepoint like it did (and still do), you will ask your self: “What object should I dispose ?”. It’s quite important because Sharepoint leaks approximately 1 Mb per “IDisposable object not disposed”. If it’s a menu, it could quickly make you loose 10 Mb per loaded page. The best and complete answer is in the MSDN. But it’s a pretty long answer. The short answer is :