SPDisposeCheck Tool is available now !!!

SharePoint Dispose Checker Tool is available now for download.


SPDisposeCheck is a tool to help you to check your assemblies that use the SharePoint API so that you can build better code. It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice. This tool may not show all memory leaks in your code. Further investigation is advised if you continue to experience issues.
SPDisposeCheck.exe takes the path to a managed .DLL or .EXE or the path to a directory containing many managed assemblies. It will recursively search for and analyze each managed module attempting to detect coding patterns based on the MDSN article.
Please review the MSDN article on using Deploy in SharePoint applications here
The SPDisposeCheck tool can be downloaded here.
Roger Lamb maintains a blog for the SPDisposeCheck team here.
Note: The -xml command line switch is unreliable. We recommend that you do not use this command line switch on this release.

Usage : The –XML command line switch currently has issues, so pipe the output to a text file.

SPDisposeCheck <assembly> > <OutputFileName>.txt

And finally don’t forget to read Roger Lamb’s post on the Dispose Patterns.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: