Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         _tracker.Dispose();
         // Indicate that the instance has been disposed.
         _disposed = true;
     }
 }
Exemplo n.º 2
0
        public void Init()
        {
            try
            {
                _tracker = new BlobBallTracker();
                _RegisterSettings(_tracker);
                _tracker.NewCameraImage += _tracker_NewCameraImages;
            }
            catch (NotSupportedException)
            {
                if (_tracker != null)
                {
                    _tracker.Dispose();
                }

                throw;
            }
        }