title: The operation could not be performed because the filter is in the wrong state GetCurrentBuffer
body: <p>The operation could not be performed because the filter is in the wrong state</p>
  
  <p>I am getting this error when attemting to run   hr = m_pGrabber->GetCurrentBuffer(&amp;cbBuffer, NULL);.</p>
  
  <p>Strange part is - it initially worked when I stopped the graph, now it fails on running or stopped graph.
  So - what state it should be in??</p>
  
  <p>The sample grabber code in MSDN I copied does not say if the graph should be stopped or running to get the buffer size - but the way it is presented the graph is running. I assume the graph should be running to fill the buffer, but I am not getting pass the sizing the buffer.</p>
  
  <p>The graph is OK, all filters are conncted and renders as required, in may app and in GraphEdit. </p>
  
  <p>I am trying to save the captured still frame into bitmap file so I need the capured data in the buffer.  </p>