From: Nobuyoshi Nakada Date: 2009-02-16T00:11:43+09:00 Subject: [ruby-core:22150] Re: [Bug #1162] Build Assertion Failure with VC+++ - Incorrect flushing of stdout/stderr Hi, At Sun, 15 Feb 2009 16:24:24 +0900, Charlie Savage wrote in [ruby-core:22134]: > As Microsoft's documentation states (see link above), it is > incorrect to pass stdout or stderr to FlushFileBuffers. > Therefore FlushFileBuffers fails and retval is set to 6 via > the call to GetLastError. From > http://msdn.microsoft.com/en-us/library/ms681382(VS.85).aspx: Yes, it's a reasonable and expected behavior. > So the assertion fails. Bad error message I agree, but still a bug in Ruby. It's not a bug, the file descriptor is not invalid, nor closed. Just a false positive assertion, e.g., a bug of msvcrt. -- Nobu Nakada