Add SymSrv.dll check

This is often a source of missing symbols or incomprehension as to why they are not getting resolved. Having a debug log will help debugging such cases.
This commit is contained in:
Clément Grégoire
2026-03-30 22:09:14 +02:00
parent 8c5724d125
commit 79f7d99b02

View File

@@ -437,6 +437,11 @@ void DbgHelpInit()
{
SymError( "SymInitialize", GetLastError() );
}
else if( GetModuleHandleA( "SymSrv.dll" ) == NULL )
{
TracyDebug( "SymSrv.dll was not loaded, it needs to be near a matching version of DbgHelp.dll. Symbol resolution may fail as symbol servers will not be used. See https://learn.microsoft.com/en-us/windows/win32/debug/calling-the-dbghelp-library" );
}
#ifdef TRACY_DBGHELP_LOCK
DBGHELP_UNLOCK;