Stopping IMediaControl never ends
问题 I'm using DirectShowLib-2005 for my C#/WPF project. When camera starts, I run media control: m_FilterGraph = new FilterGraph() as IFilterGraph2; /* Initializations */ IMediaControl mediaCtrl = m_FilterGraph as IMediaControl; hr = mediaCtrl.Run(); DsError.ThrowExceptionForHR(hr); Application Runs, camera works good. But sometimes (not always) when I quit the application freeze. I paused the debugger and I saw that the application is stop on the following line: if (m_FilterGraph != null) {