protected override void DoDisable() { if (sensorDevice_ != null) { sensorDevice_.Stop(); } if (cameraDevice_ != null) { cameraDevice_.Stop(); } if (cameraImageDrawer_ != null) { cameraImageDrawer_.Stop(); } if (self_ != IntPtr.Zero) { sarSmartar_SarSmartARController_sarDoDisable(self_); } if (cameraDevice_ != null) { cameraDevice_.Dispose(); cameraDevice_ = null; } base.DoDisable(); }