[*] Win32: improve reporting of critical exceptions

This commit is contained in:
Reece Wilson 2023-06-24 21:21:00 +01:00
parent 752d67c0ff
commit a7730ed8ee
2 changed files with 57 additions and 53 deletions

View File

@ -45,6 +45,8 @@ namespace Aurora::Debug
{
AuString message;
if (throwInfo)
{
if (handle != INVALID_HANDLE_VALUE)
{
try
@ -103,8 +105,12 @@ namespace Aurora::Debug
}
}
}
if (message.find("invalid sto") != AuString::npos) return message;
if (message.find("invalid sto") != AuString::npos)
{
return message;
}
try
{

View File

@ -260,8 +260,6 @@ namespace Aurora::Debug
#endif
doReportLocal = [&]()
{
if (pThrowInfo)
{
ReportSEH(handle, exception, pThrowInfo, handleNoCppObject, backtrace, [&](const AuString &str)
{
@ -275,9 +273,9 @@ namespace Aurora::Debug
}
}
});
}
};
doReportLocal();
ReportStackTrace(backtrace, "");
}
auto pThread = AuThreads::GetThread();