title: Proper disposal of SharePoint objects?
body: <p>I hope there's a SharePoint expert here on SO who can help with this.</p>
  
  <p>Here's the problem. My SharePoint logs contain this line, several times:</p>
  
  <p><code>An SPRequest object was not disposed before the end of this thread.  To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it.  This object will now be disposed.  Allocation Id: {8D090AD2-5D55-42C2-9873-2D5486FE257C}  To determine where this object was allocated, create a registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings.  Then create a new DWORD named SPRequestStackTrace with the value 1 under this key.</code></p>
  
  <p>I edited the registry and added the key, but the stacktrace is nowhere to be found. It's not in the SharePoint logs or in the Event Viewer. </p>
  
  <p>I really need to find the source of these SPSite/SPWeb leaks and fix them, but I can't just start editing code that may or may not be the source of the problem. Does anyone have any suggestions?</p>