This commit is contained in:
Siana Gearz
2011-03-01 18:53:01 +01:00
4 changed files with 7 additions and 2 deletions

View File

@@ -165,6 +165,9 @@ namespace {
}
}
fprintf(stderr, "%s\n", message.c_str());
#if LL_WINDOWS
fflush(stderr); //Now using a buffer. flush is required.
#endif
if (ANSI_YES == mUseANSI) colorANSI("0"); // reset
}

View File

@@ -142,6 +142,7 @@ void LLImageJ2C::openDSO()
fprintf(stderr, "error: %d, %s\n", rv, errbuf);
apr_dso_error(j2cimpl_dso_handle, errbuf, sizeof(errbuf));
fprintf(stderr, "dso-error: %d, %s\n", rv, errbuf);
fflush(stderr);
#endif
if ( j2cimpl_dso_handle )

View File

@@ -112,7 +112,7 @@ LLDir_Win32::LLDir_Win32()
}
else
{
fprintf(stderr, "Couldn't get APP path, assuming current directory!");
LL_WARNS("AppInit") << "Couldn't get APP path, assuming current directory!\n" << LL_ENDL;
GetCurrentDirectory(MAX_PATH, w_str);
mExecutableDir = utf16str_to_utf8str(llutf16string(w_str));
// Assume it's the current directory

View File

@@ -365,7 +365,8 @@ void create_console()
h_con_handle = _open_osfhandle(l_std_handle, _O_TEXT);
fp = _fdopen( h_con_handle, "w" );
*stderr = *fp;
setvbuf( stderr, NULL, _IONBF, 0 );
setvbuf( stderr, NULL, _IOFBF, 1024 ); //Assigning a buffer improves speed a LOT, esp on vista/win7
//_IOLBF is borked.
}
LLAppViewerWin32::LLAppViewerWin32(const char* cmd_line) :