public void Dispose() { if (mReceiver.IsAlive) { mReceiver.StopThread(); } if (mNSVideo != 0) { NSV.Stop(mNSVideo); NSV.Release(mNSVideo); } }