From d23d71add82891cc519a781a42a0c806ccbb4f9e Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 18 May 2005 21:59:58 +0000 Subject: [PATCH] fix crashes with E_Exit in debug mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2211 --- src/gui/sdlmain.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 29268e91..39842348 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: sdlmain.cpp,v 1.84 2005-04-21 18:51:54 qbix79 Exp $ */ +/* $Id: sdlmain.cpp,v 1.85 2005-05-18 21:59:58 qbix79 Exp $ */ #ifndef _GNU_SOURCE #define _GNU_SOURCE @@ -1132,11 +1132,13 @@ int main(int argc, char* argv[]) { control->StartUp(); /* Shutdown everything */ } catch (char * error) { - LOG_MSG("Exit to error: %s",error); + GFX_ShowMsg("Exit to error: %s",error); + fflush(NULL); if(sdl.wait_on_error) { //TODO Maybe look for some way to show message in linux? #if (C_DEBUG) - LOG_MSG("Press enter to continue"); + GFX_ShowMsg("Press enter to continue"); + fflush(NULL); fgetc(stdin); #elif defined(WIN32) Sleep(5000);