From 2c620aa855b91a49ab94db32cfc1727cb9a6415a Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Tue, 23 May 2023 15:04:43 +0800 Subject: [PATCH] ENH: debug: set the crash dump to SetUnhandledExceptionFilter AddVectoredExceptionHandler is too heavy now Change-Id: I354a023723d16cfa5d20c282bb6d98773dcde74f (cherry picked from commit c213904026960ebbc6621aa5413ad944af13cb97) --- src/BambuStudio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BambuStudio.cpp b/src/BambuStudio.cpp index 59c5ed3d2a..dd17b64ae8 100644 --- a/src/BambuStudio.cpp +++ b/src/BambuStudio.cpp @@ -3006,7 +3006,8 @@ extern "C" { #if BBL_RELEASE_TO_PUBLIC SET_DEFULTER_HANDLER(); #else - AddVectoredExceptionHandler(1, CBaseException::UnhandledExceptionFilter); + //AddVectoredExceptionHandler(1, CBaseException::UnhandledExceptionFilter); + SET_DEFULTER_HANDLER(); #endif // Call the UTF8 main. return CLI().run(argc, argv_ptrs.data());