CatenaLogic.Windows.Presentation.WebcamPlayer.CapDevice.Release C# (CSharp) Method

Release() private method

Releases the capture device
private Release ( ) : void
return void
        private void Release()
        {
            // Stop the thread
            Worker = null;

            // Clear the event
            if (StopSignal != null)
            {
                StopSignal.Close();
                StopSignal = null;
            }

            // Clean up
            Graph = null;
            SourceObject = null;
            GrabberObject = null;
            Grabber = null;
            CapGrabber = null;
            Control = null;
        }