[commit] r1601 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Oct 11 10:12:00 CDT 2011
Author: ksmyth
Date: Tue Oct 11 10:12:00 2011
New Revision: 1601
Log:
Fix crash when model cant be opened
Modified:
trunk/GME/Gme/GMEView.cpp
Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp Tue Oct 11 10:11:50 2011 (r1600)
+++ trunk/GME/Gme/GMEView.cpp Tue Oct 11 10:12:00 2011 (r1601)
@@ -1088,10 +1088,11 @@
}
}
catch(hresult_exception &e) {
+ // CrashRpt c51312b4-866b-4a9f-a18d-9928ef9905ef: Close before MessageBox
+ frame->SendMessage(WM_CLOSE);
AbortTransaction(e.hr);
AfxMessageBox(_T("Unable to open model"),MB_OK | MB_ICONSTOP);
CGMEEventLogger::LogGMEEvent(_T("CGMEView::OnInitialUpdate - Unable to open model.\r\n"));
- frame->PostMessage(WM_CLOSE);
EndWaitCursor();
return;
}
@@ -9890,7 +9891,7 @@
try {
BeginTransaction(TRANSACTION_READ_ONLY);
- bool first_value( true), res;
+ bool first_value( true), res(true);
POSITION pos = selected.GetHeadPosition();
while(pos && all_equal) {
CGuiObject *obj = selected.GetNext(pos);
More information about the gme-commit
mailing list