Sharepoint 2010 - Check assemblies for memory leaks / proper disposal

Found this tool today for checking all of the SPSite, SPWeb etc. objects in your custom code to ensure that proper disposal has been used. This tool can actually review a compiled assembly so this is great for checking your own code and any 3rd party tools.

" The output from the tool will contain messages that may indicate the SPSite and SPWeb Dispose() methods guidance are not being followed in the customers source code. While these messages need expert evaluation in order to determine if the software is not performing properly, in some cases just running the tool on your custom code can lead you to simple fixes that improve the quality and performance of custom code on SharePoint. "

The tool can be downloaded here - http://archive.msdn.microsoft.com/SPDisposeCheck

Best Practices for object disposal - http://msdn.microsoft.com/en-us/library/aa973248.aspx

No comments:

Post a Comment