Hi
I've heard that there is a speed problem with dbghelp when getting the
typeinfo and address of a global symbol that doesn't exist - it can
take 5 to 10 seconds. Is this a known issue and is there any way round
it?
TIA
One situation when it can happen is when symbols for some modules are loaded
as deferred (SYMOPT_DEFERRED_LOADS option is set). Then an attempt
to search for nonexistent symbol will cause DbgHelp to actually load symbols for
all such modules (spending time on symbol search, potentially with symbol server access).
There are two workarounds:
1) Do not use SYMOPT_DEFERRED_LOADS option
2) Limit the search only to modules whose symbols are already loaded (it is done by
setting SYMOPT_NO_UNQUALIFIED_LOADS option)
Also, of course, the time spent searching for nonexistent symbol depends on the
number of modules to search.
Regards,
Oleg
[VC++ MVP]
Thanks Oleg.