Use boost::stacktrace instead of custom implementation in Windows SEH filter

This commit is contained in:
Julian Brost 2020-10-14 16:25:56 +02:00
parent f8b7a1511b
commit 0db59bad83

View File

@ -19,6 +19,7 @@
#include <boost/exception/errinfo_api_function.hpp>
#include <boost/exception/errinfo_errno.hpp>
#include <boost/exception/errinfo_file_name.hpp>
#include <boost/stacktrace.hpp>
#include <sstream>
#include <iostream>
#include <fstream>
@ -936,9 +937,9 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi)
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n"
<< "\n";
StackTrace trace(exi);
ofs << "Stacktrace:" << "\n";
trace.Print(ofs, 1);
ofs << "Stacktrace:\n"
<< boost::stacktrace::stacktrace()
<< "\n";
DisplayBugMessage(ofs);