From: <br...@us...> - 2008-06-10 21:29:31
|
Revision: 240 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=240&view=rev Author: brus07 Date: 2008-06-10 14:29:39 -0700 (Tue, 10 Jun 2008) Log Message: ----------- Update function, in which run Checker, and add logging in this function. Modified Paths: -------------- ACMServer/trunk/ACMServer/Checker/Checker.csproj ACMServer/trunk/ACMServer/Tester/Form1.cs Modified: ACMServer/trunk/ACMServer/Checker/Checker.csproj =================================================================== --- ACMServer/trunk/ACMServer/Checker/Checker.csproj 2008-06-10 21:24:11 UTC (rev 239) +++ ACMServer/trunk/ACMServer/Checker/Checker.csproj 2008-06-10 21:29:39 UTC (rev 240) @@ -59,4 +59,8 @@ <Target Name="AfterBuild"> </Target> --> + <PropertyGroup> + <PostBuildEvent> + </PostBuildEvent> + </PropertyGroup> </Project> \ No newline at end of file Modified: ACMServer/trunk/ACMServer/Tester/Form1.cs =================================================================== --- ACMServer/trunk/ACMServer/Tester/Form1.cs 2008-06-10 21:24:11 UTC (rev 239) +++ ACMServer/trunk/ACMServer/Tester/Form1.cs 2008-06-10 21:29:39 UTC (rev 240) @@ -52,8 +52,20 @@ } private void DataArrived(string message) { + string result = ""; textBox1.Text += "\r\n" + message; - string result = Checker.Checker.GetResult(message); + try + { + + result = Checker.Checker.GetResult(message); + } + catch (Exception ex) + { + Log log = Log.GetLog(); + log.Loging("Form1::DataArrived: Error: " + ex.Message, Log.Priority.ERR); + log.Loging("Form1::DataArrived: Error: " + ex.StackTrace, Log.Priority.ERR); + return; + } textBox1.Text += "\r\n\t-> " + result; socket.Send(result.ToString() + "$" + message); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |