diff --git a/src/BambuStudio.cpp b/src/BambuStudio.cpp index 8055930f4..c549efc07 100644 --- a/src/BambuStudio.cpp +++ b/src/BambuStudio.cpp @@ -3014,6 +3014,10 @@ extern "C" { //AddVectoredExceptionHandler(1, CBaseException::UnhandledExceptionFilter); SET_DEFULTER_HANDLER(); #endif + std::set_new_handler([]() { + int *a = nullptr; + *a = 0; + }); // Call the UTF8 main. return CLI().run(argc, argv_ptrs.data()); }