All About SharePoint

Liedong(Ken) Zheng,SharePoint Leader at SIMPLOT

How to Use SPDisposeCheck

Posted by ken zheng on July 6, 2010

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.

You can download from CodePlex here.

here is the example show you how to dispose the patterns.

How to use it

1. Install SPDisposeCheck.msi on your development server.
2. Open a command window.
3. Type following command:
“c:\Program Files\Microsoft\SharePoint Dispose Check\SPDisposeCheck.exe” “.dll”

About these ads

One Response to “How to Use SPDisposeCheck”

  1. Asima said

    May be the below tutorial also helpful.
    http://www.fewlines4biju.com/2011/08/spdisposecheck-for-sharepoint-2010.html

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 )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 28 other followers

%d bloggers like this: