[Bf-blender-cvs] [4b4b158] soc-2014-shapekey: Stopped blender closing itself in debug build crashes on Win

Grigory Revzin noreply at git.blender.org
Sun Jun 22 17:54:49 CEST 2014


Commit: 4b4b1582ebec5a97614783ce86867503adc30e85
Author: Grigory Revzin
Date:   Sun Jun 22 19:03:59 2014 +0400
https://developer.blender.org/rB4b4b1582ebec5a97614783ce86867503adc30e85

Stopped blender closing itself in debug build crashes on Win

TerminateProcess in creator.c crash handling prevented MSVC from seeing an
unhandled exception, now it won't so we can actually see where the problem
happened.

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

M	source/creator/creator.c

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

diff --git a/source/creator/creator.c b/source/creator/creator.c
index 0dad2fd..4348d81 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -627,8 +627,10 @@ static void blender_crash_handler(int signum)
 #ifndef WIN32
 	kill(getpid(), signum);
 #else
+#ifndef DEBUG
 	TerminateProcess(GetCurrentProcess(), signum);
 #endif
+#endif
 }




More information about the Bf-blender-cvs mailing list