Post by Oleg StarodumovPost by Eric MargheimOK So how do I now take this info with function name + offset and get the
exact line?
1. Load the application into VC debugger (so that exactly the same build
of the DLL is loaded). Ensure that the DLL's symbols are loaded.
Loaded 'c:\windows\system32\dllhost.exe', no matching symbolic information
found.
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\shimeng.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\clbcatq.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\comres.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\ntmarta.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\samlib.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\wldap32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\nview.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\psapi.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information
found.
Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.1830_x-ww_7AE38CCF\comctl32.dll',
no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rdpsnd.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\winsta.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\netapi32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\comsvcs.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\rsaenh.dll', no matching symbolic information
found.
The thread 0x980 has exited with code 0 (0x0).
Loaded 'C:\WINDOWS\system32\odbc32.dll', no matching symbolic information
found.
Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.1830_x-ww_1B6F474A\comctl32.dll',
no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\odbcint.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\es.dll', no matching symbolic information found.
The thread 0x15C4 has exited with code 0 (0x0).
Post by Oleg Starodumov2. Look up the target function (SendSimpleMsgNoLogging) in sources.
R-click anywhere in the function's source and choose Go to Disassembly.
Nothing happens when I choose the Go to Disassembly option. I have the
Release version running in debug under dllhost.exe like I typically do to
debug components.
Post by Oleg Starodumov3. Determine the address mentioned on the call stack (add the offset
to the start address of the function, which can be found in Disassembly window).
4. In Disassembly window, R-click on that address and choose Go to Source.
Note that if the DLL was built with optimizations, source information
will not necessarily be correct (but should be close enough).
Oleg