[Bf-blender-cvs] [893677a] master: Disable writing a crash file completely on Windows.

Antony Riakiotakis noreply at git.blender.org
Mon Jun 1 18:54:29 CEST 2015


Commit: 893677a76a2cb326aa55392629c58f9069b41597
Author: Antony Riakiotakis
Date:   Mon Jun 1 18:54:03 2015 +0200
Branches: master
https://developer.blender.org/rB893677a76a2cb326aa55392629c58f9069b41597

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.

===================================================================

M	source/creator/creator.c

===================================================================

diff --git a/source/creator/creator.c b/source/creator/creator.c
index 3ad8045..d62f255 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;




More information about the Bf-blender-cvs mailing list