【发布时间】:2019-03-19 06:28:29
【问题描述】:
当 PC 在 windows 上运行我的 .exe 文件时,它在 ucrtbase.dll 中崩溃,如下所示:
extern "C" LONG WINAPI __scrt_unhandled_exception_filter(LPEXCEPTION_POINTERS const pointers)
{
auto const exception_record = reinterpret_cast<EHExceptionRecord*>(pointers->ExceptionRecord);
if (PER_IS_MSVC_PURE_OR_NATIVE_EH(exception_record))
{
terminate(); // Crash here
}
return EXCEPTION_CONTINUE_SEARCH;
}
问题是当我的应用调用第三方库 (DLL) 的函数时发生崩溃,所以我无法控制。
目前,ucrtbase.dll有问题吗?
如何防止在我的范围内发生这种崩溃?
【问题讨论】: