コード例 #1
0
 public static void FreeCamera()
 {
     lock (lockObject)
     {
         Debug.Assert(CamUseCnt == 0);
         if (s_camera != null)
         {
             s_camera.Dispose();
             s_camera = null;
         }
     }
 }
コード例 #2
0
        public OperationResult Disconnect(Session session)
        {
            if (_camera.CanSetCCDTemperature)
            {
                _camera.CoolerOn = false;
            }

            _camera.Connected = false;
            _camera.Dispose();
            _camera = null;

            session.Camera.DisconnectCamera();
            session.Cooler.SetAvailable(false);

            return(OperationResult.Ok);
        }
コード例 #3
0
 public void Dispose()
 {
     if (MyDriverType == 0)
     {
         MySSCamera.Dispose();
     }
     else
     {
         // Clean up the tracelogger and util objects
         tl.Enabled = false;
         tl.Dispose();
         tl = null;
         utilities.Dispose();
         utilities = null;
         astroUtilities.Dispose();
         astroUtilities = null;
     }
 }