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