Exemplo n.º 1
0
        // Stop work
        public void Stop()
        {
            videoSource.Stop();

            if (this.Running)
            {
                thread.Abort();
                WaitForStop();
            }
        }
Exemplo n.º 2
0
 public void StopProvider()
 {
     lock (this)
     {
         coreProvider.Stop();
         coreProvider.WaitForStop();
         img = null;
         provicerRuningState = false;
     }
 }
Exemplo n.º 3
0
 // -----------------------------------------------------------------------------------------------------------------------
 // Abort camera
 // -----------------------------------------------------------------------------------------------------------------------
 public void Stop()
 {
     Monitor.Enter(syncCtrl);
     try
     {
         if (vsVideoSource != null)
         {
             vsVideoSource.Stop();
         }
     }
     catch (Exception err)
     {
         logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);;
     }
     finally
     {
         Monitor.Exit(syncCtrl);
     }
 }