SharePoint Dispose Check v1.3.1 – January 2009


It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practices. This tool may not show all memory leaks in your code. Further investigation is advised if you continue to experience issues.

It is a console application that takes one parameter which is the path to assemblies to be checked. If you have the PDB symbol file available then the output can include additional source information about the error.

Usage

SPDisposeCheck <path to assemblies> -debug –xml <file>

Output is provided in the form of a list of potential problems.

-debug adds additional information.
-xml outputs the errors to an XML file instead of text

You can download the SPDisposeCheck tool here.  Roger Lamb has a blog posting for WSS 3.0 and SharePoint 2007 Dispose Patterns here.

Technorati Tags:

About wesmacdonald

Wes MacDonald is a Visual Studio ALM MVP, PSD, MCT and a Principal Consultant for LIKE 10 INC., a SharePoint Server, Visual Studio and Team Foundation Server Consulting Firm providing premium support and guidance services.

No comments yet... Be the first to leave a reply!

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: