All pastes #2047927 Raw Edit

Something

public text v1 · immutable
#2047927 ·published 2011-04-18 20:37 UTC
rendered paste body
        private void StopCapture(bool disposing) 
        {
            if (running && control != null)
            {
                int hr = 0;

                try
                {
                    if (!disposing)
                        hr = control.StopWhenReady();
                    else
                        hr = control.Stop();
                }
                catch { }

                running = false;
            }
        }