Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#73 Need to have fflush() added to flac_utils_printf

closed
Josh Coalson
6
2009-01-02
2007-07-19
GLee
No

I'm writing a FLAC GUI which execs the flac.exe and captures it's output from stderr/stdout. Without the fflush(), the GUI doesn't receive the status messages in a timely manner. Thanks.

Discussion

  • Josh Coalson
    Josh Coalson
    2007-07-24

    • priority: 5 --> 6
    • assigned_to: nobody --> jcoalson
     
  • Josh Coalson
    Josh Coalson
    2007-07-26

    Logged In: YES
    user_id=78173
    Originator: NO

    are you sure that's it? flac.exe writes all messages to stderr which should be unbuffered.

     
  • GLee
    GLee
    2007-07-26

    Logged In: YES
    user_id=747357
    Originator: YES

    I am still researching the issue but all indications are that the fflush() is needed. This is under WinXP so I don't know if the same behavior exists with Linux.

    Are you familiar with Java? I can upload a short test program that demonstrates what I'm talking about. When run with flac that has the fflush(), it runs fine. Against the distributed version, the output is buffered.

     
  • GLee
    GLee
    2007-07-26

    Logged In: YES
    user_id=747357
    Originator: YES

    I am still researching the issue but all indications are that the fflush() is needed. This is under WinXP so I don't know if the same behavior exists with Linux.

    Are you familiar with Java? I can upload a short test program that demonstrates what I'm talking about. When run with flac that has the fflush(), it runs fine. Against the distributed version, the output is buffered.

     
  • Josh Coalson
    Josh Coalson
    2009-01-02

    • status: open --> closed
     
  • Josh Coalson
    Josh Coalson
    2009-01-02

    looks like this is a yet another non-standard behavior of microsoft libs. fixed in cvs