WinForms application that goes through ULS logs, parses them and detects log messages for undisposed objects.

It allows to:
  1. Scan for undisposed objects log entries and show full stack trace of undisposed SPRequest creation
  2. Exclude logs messages (to filter Microsoft dispose issues)
  3. Include only specific log messages

To prepare your environment:
  1. Enable logging full stack trace for dispose messages (see code below)
  2. Test business logic
  3. Analyze the results using the application

PowerShell code to enable logging full stack trace for undisposed objects:
System.Reflection.Assembly::LoadWithPartialName("Microsoft.SharePoint") > $null
$contentSvc = Microsoft.SharePoint.Administration.SPWebService::ContentService
$contentSvc.CollectSPRequestAllocationCallStacks = $true


Last edited May 31, 2013 at 11:17 PM by YuriLeontyev, version 1


No comments yet.