Why isn't SymGetSymFromAddr64 working? It returns error code 126
问题 I am trying to capture a stack trace on exceptions using the following code: #include "stdafx.h" #include <process.h> #include <iostream> #include <Windows.h> #include "dbghelp.h" using namespace std; #define TRACE_MAX_FUNCTION_NAME_LENGTH 1024 void function2() { int a = 0; int b = 0; throw new exception; } void function1() { int a = 0; function2(); } void function0() { function1(); } LONG WINAPI FatalExceptionFilter(EXCEPTION_POINTERS* exception, DWORD exceptionCode) { CONTEXT *context =