[Plib-cvs] plib/src/util ulError.cxx,1.7,1.8
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-10-02 12:21:03
|
Update of /cvsroot/plib/plib/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18191 Modified Files: ulError.cxx Log Message: Improved handling of fatal erros for Windows users. Index: ulError.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ulError.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ulError.cxx 2 Sep 2002 06:05:49 -0000 1.7 +++ ulError.cxx 2 Oct 2004 12:20:43 -0000 1.8 @@ -51,7 +51,14 @@ fprintf ( stderr, "%s: %s\n", _ulSeverityText[ severity ], _ulErrorBuffer ) ; if ( severity == UL_FATAL ) + { +#ifdef WIN32 + // A Windows user that does not start the program from the command line + // will not see output to stderr + ::MessageBox(0, _ulErrorBuffer, "fatal error!:", 0); +#endif exit (1) ; + } } } |