checkin of v1.50

This commit is contained in:
Chris Danford
2002-01-16 10:01:32 +00:00
parent 7f3a131195
commit 0add9e0bb3
66 changed files with 3425 additions and 1313 deletions
+22 -1
View File
@@ -393,12 +393,33 @@ void SortCStringArray( CStringArray &arrayCStrings, BOOL bSortAcsending )
VOID DisplayErrorAndDie( CString sError )
{
// Something very bad happened. Display an error dialog, then exit right away.
/*
////////////////////////
// get a stack trace
////////////////////////
AfxDumpStack( AFX_STACK_DUMP_TARGET_CLIPBOARD );
//open the clipboard
CString fromClipboard;
if( OpenClipboard(NULL) )
{
HANDLE hData = GetClipboardData( CF_TEXT );
char *buffer = (char*)GlobalLock( hData );
fromClipboard = buffer;
GlobalUnlock( hData );
CloseClipboard();
}
sError += "\n\n" + fromClipboard;
*/
RageLog( "" );
RageLog( "// Fatal Error /////////////////////////////" );
RageLog( sError );
RageLog( "////////////////////////////////////////////" );
// Something very bad happened. Display an error dialog, then exit right away.
MessageBox(
NULL, // handle of owner window
sError, // text in message box