Example #1
0
        public override void Stop()
        {
            if (worker != null)
            {
                worker.Discard();
                worker.Join();
            }

            base.Stop();
        }
Example #2
0
        public override void Dispose()
        {
            if (worker != null)
            {
                worker.Discard();
                worker.Join();
            }

            if (cell != null)
            {
                cell.OnImageCallback -= OnImageCallback;
            }

            if (imageGCHandle.IsAllocated)
            {
                imageGCHandle.Free();
            }
        }