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.
No comments yet... Be the first to leave a reply!