Mercurial > pub > ImplabNet
diff Implab/Diagnostics/TextFileListener.cs @ 47:b181f7bcb259 interactive logger
refactoring, interactive tarce log almost complete
author | cin |
---|---|
date | Thu, 17 Apr 2014 18:49:36 +0400 |
parents | e5ec543feee3 |
children | d9d794b61bb9 |
line wrap: on
line diff
--- a/Implab/Diagnostics/TextFileListener.cs Thu Apr 17 08:49:24 2014 +0400 +++ b/Implab/Diagnostics/TextFileListener.cs Thu Apr 17 18:49:36 2014 +0400 @@ -23,6 +23,7 @@ lock (m_textWriter) { if (!IsDisposed) { + // тут гарантировано еще не освобожден m_textWriter m_textWriter.WriteLine(msg.ToString()); m_textWriter.Flush(); } @@ -33,6 +34,7 @@ protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { + // IsDisposed = true lock (m_textWriter) { Safe.Dispose(m_textWriter); }