From 893677a76a2cb326aa55392629c58f9069b41597 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 1 Jun 2015 18:54:03 +0200 Subject: Disable writing a crash file completely on Windows. We had some reports where users did not even read the "Not supported on release builds" message, and arguably writing a file sort of indicates that the file may include something useful. --- source/creator/creator.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index 3ad804517fc..d62f255ea0d 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -678,7 +678,11 @@ LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS *ExceptionInfo) /* If this is a stack overflow then we can't walk the stack, so just show * where the error happened */ if (EXCEPTION_STACK_OVERFLOW != ExceptionInfo->ExceptionRecord->ExceptionCode) { +#ifdef NDEBUG + TerminateProcess(GetCurrentProcess(), SIGSEGV); +#else blender_crash_handler(SIGSEGV); +#endif } return EXCEPTION_EXECUTE_HANDLER; -- cgit v1.2.3