Exemple #1
0
        private void CloseDevice()
        {
            if (ProcessThread != null)
            {
                ProcessThread.Abort();
                ProcessThread = null;
            }

            if (Device != null)
            {
                Device.CloseControl();
                Device = null;
            }
        }
Exemple #2
0
 public void CloseSource()
 {
     if (ProcessThread != null)
     {
         Processing = false;
         ProcessThread.Join(500);
         ProcessThread.Abort();
         ProcessThread = null;
     }
     if (SampleSource != null)
     {
         SampleSource.CloseControl();
         SampleSource = null;
     }
     CloseDemod();
 }