Revision: 236
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=236&view=rev
Author: brus07
Date: 2008-06-09 15:33:14 -0700 (Mon, 09 Jun 2008)
Log Message:
-----------
Update Log to new version
Modified Paths:
--------------
ACMServer/trunk/MediatorSolution/Library/LibraryExtention/Log.cs
Modified: ACMServer/trunk/MediatorSolution/Library/LibraryExtention/Log.cs
===================================================================
--- ACMServer/trunk/MediatorSolution/Library/LibraryExtention/Log.cs 2008-06-09 22:31:03 UTC (rev 235)
+++ ACMServer/trunk/MediatorSolution/Library/LibraryExtention/Log.cs 2008-06-09 22:33:14 UTC (rev 236)
@@ -96,8 +96,19 @@
//TODO:
throw new Exception("WriterNullException");
}
- writer.WriteLine(message);
+ lock (writer)
+ {
+ writer.WriteLine(message);
+ writer.Flush();
+ }
}
}
+ ~Log()
+ {
+ if (writer != null)
+ {
+ writer.Close();
+ }
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|