GNOME Bugzilla – Bug 539345
fix found crash file on last execution
Last modified: 2008-08-01 19:00:54 UTC
fix identify crash logs (last execution) on windows (now it's called without param: dateTime file)
really nice fix. Also works on vista. From the changelog: created new method to redirect standard output and standard error from chronojump.cs (without the needing of .sh or .bat params). Allows to have on linux and windows a single file with the output and error. Also on Vista fixes: 539345 fix found crash file on last execution File is closed if all works ok code is: public static void Main(string [] args) { bool timeLogPassedOk = Log.Start(args); Log.WriteLine(string.Format("Time log passed: {0}", timeLogPassedOk.ToString())); string errorFile = Log.GetFile(); StreamWriter sw = new StreamWriter(new BufferedStream(new FileStream(errorFile, FileMode.Create))); System.Console.SetOut(sw); System.Console.SetError(sw); sw.AutoFlush = true; and after exiting: System.Console.Out.Close(); Log.End(); Log.Delete(); Application.Quit(); this is for 0.7.5