After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 539345 - fix found crash file on last execution
fix found crash file on last execution
Status: RESOLVED FIXED
Product: chronojump
Classification: Other
Component: chronojump
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Xavier de Blas
Xavier de Blas
Depends on:
Blocks:
 
 
Reported: 2008-06-20 18:23 UTC by Xavier de Blas
Modified: 2008-08-01 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier de Blas 2008-06-20 18:23:15 UTC
fix identify crash logs (last execution) on windows (now it's called without param:
dateTime file)
Comment 1 Xavier de Blas 2008-08-01 19:00:54 UTC
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