protected override void AfterDeactivate() { writer.CloseSavingContext(true); writer.Dispose(); writer = null; base.AfterDeactivate(); }
protected override void AfterDeactivate() { if (recording) { writer.CloseSavingContext(true); writer.Dispose(); writer = null; recording = false; } base.AfterDeactivate(); }
private void DoStopRecord() { //--------------------------------------- // Must be called on the consumer thread. //--------------------------------------- stopRecordAsked = false; if (!recording) { return; } writer.CloseSavingContext(true); writer.Dispose(); writer = null; recording = false; }