SPDisposeCheck Developer Tool

January 31, 2009 · Posted by YvonneHarryman
2 Comments· 0 Links to this post

My very first blog was discussing best practices around disposing of SharePoint Services Objects: http://yvonneharryman.wordpress.com/2007/08/19/ . Memory leaks caused by objects not disposed can be very tricky to catch and require good code reviews. Now Microsoft is offering a tool to help you find objects that are not being disposed of. This tool can be found at: http://code.msdn.microsoft.com/SPDisposeCheck.

 

The tool is not perfect but it will do most of the grunt work for you to figure out if memory leaks are in fact in your code. One situation you might run into is a potential false positive. An additional resource I have used to help me in that situation is the following blog:

http://blogs.technet.com/stefan_gossner/archive/2008/12/05/disposing-spweb-and-spsite-objects.aspx

 

This tool is meant to be used by developers and should not be installed on production machines as I understand it there is no formal support provided.

 

 

Visual Studio 2008 extensions for SharePoint 1.3

January 12, 2009 · Posted by YvonneHarryman
1 Comment· 0 Links to this post

The Community Technology Preview release for Visual Studio 2008 extensions for SharePoint 1.3 is now publicly available on Microsoft Connect.

The CTP is available at: https://connect.microsoft.com/site/sitehome.aspx?SiteID=428

New Features in VSeWSS 1.3

  • The extensions now install on x64 bit OS. Visual Studio 2008 and SharePoint must be already installed.
  • Command Line Build option for TFS and MSBuild integration
  • Separate WSP Package and Retract commands. You can now build the WSP without deploying it
  • SPSolGen to Support Exporting from Content Management Publishing Sites
  • New Item Template for RootFiles Deployment
  • Automatically Remove conflicting existing features on development SharePoint server
  • WSP View New Feature Dialog Improvements: scope, receiver checkbox, element checkbox
  • WSP View can now be used to merge features and it blocks site features being merged into web features
  • Allow adding separate binary files such as Workflow assemblies
  • Some refactoring allowing for Web Part renaming and removing lines from feature.xml Item Removed
  • Allow selection of GAC or BIN deployment for Web Part Project not including CAS generation
  • Increase visibility of hidden features that VSeWSS creates
  • Add fast update deploy for DLL only or file only changes to solutions
  • Numerous Bug Fixes and improvements to error messages

More details can be found on the SharePoint blog at: http://blogs.msdn.com/sharepoint