protected override void Dispose(bool disposing) { try { if (IsDisposed.isFalse()) { base.Dispose(disposing); } } catch (Exception ex) { ex.log("in O2Gui dispose"); } }
protected internal override void Dispose(bool disposing) { if (false.Equals(disposing) || false.Equals(ShouldDispose)) { return; } base.Dispose(disposing); if (IsDisposed.Equals(false)) { return; } LastLog = LastException = ExceptionExtensions.NilException; }
protected internal override void Dispose(bool disposing) { if (disposing.Equals(false)) { return; } base.Dispose(ShouldDispose); if (IsDisposed.Equals(false)) { return; } m_FileInfo = null; m_Encoding = null; }
protected virtual void Dispose(bool disposing) { lock (this) { if (IsDisposed) { return; } isDisposed = true; if (sout != null && Debug) { sout.WriteLine("TNEmulator.Dispose(" + IsDisposed.ToString() + ")"); } if (disposing) { //---------------------------- // release managed resources if (currentConnection != null) { if (sout != null && Debug) { sout.WriteLine("TNEmulator.Dispose() Disposing of currentConnection"); } try { currentConnection.Disconnect(); this.currentConnection.CursorLocationChanged -= currentConnection_CursorLocationChanged; if (apiOnDisconnectDelegate != null) { currentConnection.Disconnected -= apiOnDisconnectDelegate; } currentConnection.Dispose(); } catch { if (sout != null && Debug) { sout.WriteLine("TNEmulator.Dispose() Exception during currentConnection.Dispose"); } } currentConnection = null; } Disconnected = null; if (sout != null && Debug) { sout.WriteLine("TNEmulator.Dispose() Disposing of currentScreenXML"); } DisposeOfCurrentScreenXML(); if (objectState != null) { objectState = null; } if (mConnectionConfiguration != null) { mConnectionConfiguration = null; } if (mScreenName != null) { mScreenName = null; } } //------------------------------ // release unmanaged resources } }