[commit] r1435 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Jul 26 10:59:03 CDT 2011


Author: ksmyth
Date: Tue Jul 26 10:59:02 2011
New Revision: 1435

Log:
Use http for crashrpts. Dont hook operator new failure, since we sometimes handle it (and it will be caught as an seh anyways)

Modified:
   trunk/GME/Gme/GMEApp.cpp

Modified: trunk/GME/Gme/GMEApp.cpp
==============================================================================
--- trunk/GME/Gme/GMEApp.cpp	Tue Jul 26 10:40:24 2011	(r1434)
+++ trunk/GME/Gme/GMEApp.cpp	Tue Jul 26 10:59:02 2011	(r1435)
@@ -527,11 +527,15 @@
 	info.pszAppVersion = _T(GME_VERSION_ID);
 	info.pszEmailSubject = _T("GME CrashRpt");
 	info.pszEmailTo = _T("gme-supp at isis.vanderbilt.edu");
+	info.pszUrl = _T("http://symbols.isis.vanderbilt.edu/GME/crashrpt.php");
+	info.dwFlags = CR_INST_SEH_EXCEPTION_HANDLER | CR_INST_PURE_CALL_HANDLER | CR_INST_SECURITY_ERROR_HANDLER
+		| CR_INST_INVALID_PARAMETER_HANDLER | CR_INST_SIGABRT_HANDLER | CR_INST_SIGINT_HANDLER | CR_INST_SIGTERM_HANDLER;
+		// missing: CR_INST_NEW_OPERATOR_ERROR_HANDLER: the default std::bad_alloc is fine (sometimes we handle it)
 	if (!bNoProtect) {
 		if (crInstall(&info) != 0)
 		{
-			TCHAR buff[256];
-			crGetLastErrorMsg(buff, 256);
+			TCHAR buff[1024];
+			crGetLastErrorMsg(buff, 1024);
 			AfxMessageBox(buff);
 			return FALSE;
 		}
@@ -914,6 +918,7 @@
 						{
 							loadedConmponent.CoCreateInstance(componentName); // GetModuleHandle works for loaded DLLs only
 							hModule = ::GetModuleHandle(modulePath);
+							// FIXME: this is more efficient: hModule = LoadLibraryEx(modulePath, NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE);
 						}
 					}
 				}


More information about the gme-commit mailing list