From e8b3d22d76902cb9a13aa9e7b011ffee27f417fc Mon Sep 17 00:00:00 2001 From: Sherief Farouk Date: Sat, 10 Sep 2022 17:16:58 -0700 Subject: Windows exception handler allows other handlers to be called. The profiled app might install handlers to track crashes, write minidumps, etc. - this patch makes sure the app's exception handler is called when a crash happens while profiling with Tracy. --- public/client/TracyProfiler.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'public') diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index 37969d03..1e999065 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -843,8 +843,6 @@ LONG WINAPI CrashFilter( PEXCEPTION_POINTERS pExp ) GetProfiler().RequestShutdown(); while( !GetProfiler().HasShutdownFinished() ) { std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); }; - TerminateProcess( GetCurrentProcess(), 1 ); - return EXCEPTION_CONTINUE_SEARCH; } #endif -- cgit v1.2.3