From 8a30efc52f8180ab8063c5528a5f750cfada931c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 12 Sep 2011 13:45:21 -0600 Subject: [PATCH] only generate crash dumps for access violations and divides-by-zero Some apps and libraries may generate recoverable SEH exceptions on Windows, in which cases we don't want to waste time and disk space generating memory dumps. --- src/windows.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/windows.cpp b/src/windows.cpp index d0839033dc..375baee201 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -974,13 +974,11 @@ handleException(LPEXCEPTION_POINTERS e) if (jump) { return EXCEPTION_CONTINUE_EXECUTION; + } else if (system->crashDumpDirectory) { + dump(e, system->crashDumpDirectory); } } - if (system->crashDumpDirectory) { - dump(e, system->crashDumpDirectory); - } - return EXCEPTION_CONTINUE_SEARCH; }