Sunday, February 01, 2009

SPDisposeCheck, Check SharePoint Dispose Code


Have been working with Sharepoint API SDK code and one problem i have some time ago was Dispose Controls, this tool can help us to create a better code...

From blogs.msdn Article:
"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."

Hope this help...

No comments: