Skip to content
| Marketplace
Sign in
Visual Studio>Tools>SpugDisposeCheck - VS Addin for validating Sharepoint 2007,2010 dispose objects
SpugDisposeCheck - VS Addin for validating Sharepoint 2007,2010 dispose objects

SpugDisposeCheck - VS Addin for validating Sharepoint 2007,2010 dispose objects

Scoutman MVP

|
2,931 clicks
| (0) | Free
SpugDisposeCheck - Visual Studio Addin for validating Sharepoint dispose objects AddIn that wraps the SPDisposeCheck Tool from Microsoft for SharePoint and fully integrate it with Visual Studio. Vs2008, Vs2010 and SharePoint 2007 and Sharepoint 2010
Get Started

UPDATED 2010-10-17

The Dispose() methods of SharePoint objects (SPSite and SPWeb) are one of the important things us developers have to deal with.

Many of the SharePoint methods allocate memory not released by garbage collector causing inumerous problems in our applications

Microsoft has published a MSDN whitepaper(http://msdn.microsoft.com/en-us/library/aa973248.aspx) by Mike Ammerlaan and Scott Harris, with some guidance and Roger Lamb provides continuous additional details and discussion on his MSDN SharePoint Developer blog(http://blogs.msdn.com/rogerla/default.aspx).

To solved some of this problems, Microsoft released SPDisposeCheck Tool (command line tool)

SPDisposeCheck is a tool to help us to check your assemblies that use the SharePoint API so that we can build better code.
It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice.

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.

 

In addition to that , the SharePoint Portuguese User Group wants to help out and because of it , i've developed one AddIn that wraps the SPDisposeCheck Tool from Microsoft and fully integrate it with Visual Studio.


Great stuff i think!

The addin works in Vs2008, Vs2010 and SharePoint 2007 and SharePoint 2010

You can download the Microsoft SPDisposeCheck Tool from here:http://code.msdn.microsoft.com/SPDisposeCheck

The Addin from here:http://spugpt.codeplex.com/releases/view/43092#DownloadId=158433

And a couple of examples from here http://spugpt.codeplex.com/releases/view/43092#DownloadId=115297

Also i made available a small video. You can watch it here:http://www.youtube.com/watch?v=VS4RcibZKJw
Any question feel free to ask

 

Rodrigo Pinto (Scoutman)
SharePoint Specialist, Evangelist
SharePointPt Founder (www.sharepointpt.org)
stationsolutions@gmail.com

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft