[Mono-bugs] [Bug 424370] New: Debug.Autoflush Does Not Seem To Be Honoured

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 8 09:21:37 EDT 2008


           Summary: Debug.Autoflush Does Not Seem To Be Honoured
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: martin_costello at talk21.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer

To replicate, place the following code in an application that runs quite fast:

    TextWriterTraceListener debugLog = new
    Debug.AutoFlush = true;
    Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));

    // Insert code ...

    // Then finally ...

    Debug.WriteLine("Exit at " + DateTime.Now);

    // End program

and then add various Debug.WriteLine & Debug.Print calls in the code.

When the application is closed, not all of the messages printed to the console
are written into debug.log.  It appears that the application is terminated
before all of the buffered output is written to the file.

If Debug.Autoflush was operating as expected, I would expect all messages
displayed in the console to be in the output file i.e. "Exit at 8/9/2008
14:00:00 PM" as the final line in the log.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list