[commit] r1474 - trunk/GME/MgaUtil

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Aug 23 13:47:15 CDT 2011


Author: ksmyth
Date: Tue Aug 23 13:47:15 2011
New Revision: 1474

Log:
AbortTransaction if an interpreter forgets

Modified:
   trunk/GME/MgaUtil/MgaLauncher.cpp

Modified: trunk/GME/MgaUtil/MgaLauncher.cpp
==============================================================================
--- trunk/GME/MgaUtil/MgaLauncher.cpp	Thu Aug 11 11:53:31 2011	(r1473)
+++ trunk/GME/MgaUtil/MgaLauncher.cpp	Tue Aug 23 13:47:15 2011	(r1474)
@@ -808,8 +808,9 @@
 							} else {
 								DisplayError(_T("Interpreter returned error"), hr);
 							}
-							project->AbortTransaction();
 						}
+						// Sometimes interpreters forget to close transactions, even when returning S_OK
+						project->AbortTransaction();
 					}
 				} else {
 					try	{
@@ -865,6 +866,7 @@
 				catch(hresult_exception &e)	{
 					DisplayError(_T("Interpreter returned error"), e.hr);
 				}
+				project->AbortTransaction();
 			}				
 		}
 		component.Release();


More information about the gme-commit mailing list