title: How do I diagnose a Handle leak?
body: <p>I've got a process that is hosting a WCF ServiceHost. It leaks handles like crazy according to ProcessExplorer. I've gone over the code and can't find anything obvious that's causing leaked handles. </p>
  
  <p>The closest I can come to is the listing of handles provided by ProcessExplorer, but the usefulness of that seems limited. Are there any other tools out there to help diagnose where a handle came from, like via a stack trace or something?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I've got the Windbg installed. When I use it to list handles, it's showing me that 914 handles are of type "Event" - </p>
  
  <p>If I pick a few of these, and output using <code>!handle x f</code> I get output similar to this on most:</p>
  
  <pre><code>Type           Event
  Attributes     0 
  GrantedAccess  0x1f0003
  HandleCount    2
  PointerCount   3
  Object Specific Information
      Event Type Manual Reset
      Event is Set
  </code></pre>
  
  <p>Is there a way to dig in further to determine more about the event?</p>