Quantcast
Viewing latest article 24
Browse Latest Browse All 80

Sharepoint 2010 : Memory Leaks in your webparts - check this out : DisposeCheck

Microsoft has released a tool called the SPDisposeCheck utility that will analyze your assemblies and report on any improperly disposed Shared Point objects. The utility can be downloaded here:

http://code.msdn.microsoft.com/SPDisposeCheck

To integrate the utility into your dev environment, go to the “Tools” menu and select the “External Tools” menu item in Visual Studio. Select “Add” and configure the tools options as below. The command arg should point to the SPDisposeCheck executable. Pass the project bin directory as an argument, and set the initial directory to your solution directory. Select the “Use Output window” checkbox so that the results from the tool display in the Visual Studio output window.

Image may be NSFW.
Clik here to view.
pic

To use the tool, select a project in your solution, and then select the SPDispose Checker utility from your tools menu. The results from the tool will be displayed in the output window. If you haven't disposed objects, the results in your output window will direct you to where the problems are located in the assembly.



Viewing latest article 24
Browse Latest Browse All 80

Trending Articles