Discussion:
2005 Express Edition: No symbols loaded. Why???
(too old to reply)
0***@gmail.com
2007-05-14 17:32:54 UTC
Permalink
I verified that both /Zi (compiler) and /DEBUG (linker) are included
in the command line.

However, when I run the program I receive lots of "No symbols loaded"
messages in the output windows:

"""""""""""""""""""""""""""""""""""""""""""""""""""""""
Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.

Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.

Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll',
No symbols loaded.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.

Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\WinSxS
\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-
ww_f75eb16c\msvcp80d.dll', No symbols loaded.
Loaded 'C:\WINDOWS\WinSxS
\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-
ww_f75eb16c\msvcr80d.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\comdlg32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\oleacc.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\msvcp60.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\wintrust.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols loaded.
Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""

I don't mind so much about the non-debug system DLLs (e.g. ntdll.dll,
kernel32.dll, etc.) - but why are no symbols loaded for msvcr80d.dll ?

What is missing? What I am missing?

Any help would be greatly appreciated as this got me stuck in my
efforts to debug some memory leaks (using the
{,,msvcr80d.dll}_crtBreakAlloc mthod).

Thanks!
Don
Nathan Mates
2007-05-14 17:43:24 UTC
Permalink
Post by 0***@gmail.com
I verified that both /Zi (compiler) and /DEBUG (linker) are included
in the command line.
However, when I run the program I receive lots of "No symbols loaded"
Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
[Lots more similar lines snipped.] Those DLLs you listed aren't
built as part of your app. (Well, they shouldn't be.) They're part of
Windows. Therefore, you'll need to grab the symbols for those Windows
DLLs from MS. You can get those by going to
http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx and
picking the appropriate version of Windows out of the list.

Try doing the (huge) download, and installing it, then re-running
your app.
Post by 0***@gmail.com
Any help would be greatly appreciated as this got me stuck in my
efforts to debug some memory leaks (using the
{,,msvcr80d.dll}_crtBreakAlloc mthod).
Symbols are irrelevant to memory leaks. Their origin is 99.9% of
the time in your code. Not msvcr80d or the like. Sure, go ahead and
download the MS symbol packs, as that greatly reduces spam at startup.
But, your real issue at hand is how to find memory leaks. Try something
like
http://www.codeproject.com/tools/visualleakdetector.asp .

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
0***@gmail.com
2007-05-14 18:17:31 UTC
Permalink
Nathan, thank you so much!!! You just saved me lots of time and agony.
I will sure check the VLD solution first.

BTW, >{,,msvcr80d.dll}_crtBreakAlloc method will refuse to work
without the msvcr80d symbols. That's why I needed them. But if there
is a better solution (VLD), why not use it?

Thanks,
Don
Post by Nathan Mates
Post by 0***@gmail.com
I verified that both /Zi (compiler) and /DEBUG (linker) are included
in the command line.
However, when I run the program I receive lots of "No symbols loaded"
Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
[Lots more similar lines snipped.] Those DLLs you listed aren't
built as part of your app. (Well, they shouldn't be.) They're part of
Windows. Therefore, you'll need to grab the symbols for those Windows
DLLs from MS. You can get those by going tohttp://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspxand
picking the appropriate version of Windows out of the list.
Try doing the (huge) download, and installing it, then re-running
your app.
Post by 0***@gmail.com
Any help would be greatly appreciated as this got me stuck in my
efforts to debug some memory leaks (using the
{,,msvcr80d.dll}_crtBreakAlloc mthod).
Symbols are irrelevant to memory leaks. Their origin is 99.9% of
the time in your code. Not msvcr80d or the like. Sure, go ahead and
download the MS symbol packs, as that greatly reduces spam at startup.
But, your real issue at hand is how to find memory leaks. Try something
likehttp://www.codeproject.com/tools/visualleakdetector.asp.
Nathan Mates
Mike Vance
2007-06-18 06:44:34 UTC
Permalink
Thank you, Nathan. I needed that link :-)
Post by Nathan Mates
You can get those by going to
http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx and
picking the appropriate version of Windows out of the list.
Loading...