• Twitter

SPDisposeCheck

Sharepoint developers always advised to dispose SPWeb and SPSite object as their unmanaged memory footprint really large and without dispose it will cause performance issues, however till now  it’s the developer responsibility to check the proper disposal is applied to the object,

 

Fortunately Microsoft announced a new console application they are working on and planned for release during the coming North American Winter, the tool simply checks your compiled assemblies and print out warning messages about the objects might need to be disposed.

 

however i’m wondering why it is not a FxCop custom rule or Code Analysis Rule, which make it easier for use and integrated with other checks.

 

more information in the sharepoint team blog