public override void Dispose() { if (worker != null) { worker.Discard(); worker.Join(); } if (cell != null) { cell.OnImageCallback -= OnImageCallback; } if (imageGCHandle.IsAllocated) { imageGCHandle.Free(); } }
public override void Stop() { if (worker != null) { worker.Discard(); worker.Join(); } base.Stop(); }