Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting typeinfo and address of global symbol is slow

3 views
Skip to first unread message

darkknight

unread,
Dec 7, 2005, 5:57:39 PM12/7/05
to

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

Oleg Starodumov

unread,
Dec 8, 2005, 5:00:50 AM12/8/05
to

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]

darkknight

unread,
Dec 8, 2005, 2:32:05 PM12/8/05
to


Thanks Oleg.

0 new messages