title: Clean up DirectShow Graph - DirectShow graph is not stopping
body: <p>I use DirectShowNet and when my Graph is stopped I release com objects. </p>
  
  <p>The problem is that while I try to release COM objects [ filters, interface] ,sometimes this cleanup cause directshow graph  not STOPPED.It "suspend".  </p>
  
  <p>If I do not make clen up [ release com objects] everthing is OK [ except i have memory leaks] ...</p>
  
  <p>Here is how i make clean up:</p>
  
  <pre><code>if (videoWindow != nullptr) 
  {
      Marshal::ReleaseComObject(videoWindow);
      videoWindow = nullptr;
  
  }
  
  if (mediaControl != nullptr) 
  {
      Marshal::ReleaseComObject(mediaControl);
      mediaControl = nullptr;             
  }
  
  
  if (graphBuilder != nullptr)
  {
     Marshal::ReleaseComObject(graphBuilder);
     graphBuilder = nullptr;
  
  }
  </code></pre>
  
  <p>....</p>
  
  <p>What may be wrong? Do I relase filters in a wrong way? What may cause this "unstopable graph"?</p>