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

Weird SymGetLineFromAddr problem using dbghelp.dll 5.1.2600.0

78 views
Skip to first unread message

plarsen

unread,
Apr 23, 2002, 6:15:20 AM4/23/02
to
I'm experiencing a strange problem with the dbghelp.dll from Windows XP.

I have some code that loads line number information for a compiled VB
module (in this case) using SymGetLineFromAddr/SymGetLineNext (- or
their 64-bit equivalents - makes no difference).

When I use the dbghelp.dll from Windows 2000 (5.0.2195.2104), everything
is fine. However, when I run the same code using the dbghelp.dll from
Windows XP (5.1.2600.0), only the first line in a routine is returned.
SymGetLineFromAddr returns success, and the line number information
returned is correct. However, the Key component of the _IMAGEHLP_LINE
argument is NULL when using the XP version whereas it is non-NULL when
using the Windows 2000 version. Subsequent calls to SymGetLineNext
return success but the same original line number is returned forever, as
it were.

Here, it doesn't matter on what operating system I run the code (2000 or
XP) - it's the dbghelp.dll being used that matters. The customer who
reported this also tells me that the code works fine for him on Windows
98 as well as Windows 2000.

Is anybody aware of known bugs in the dbghelp.dll that ships with XP?
I've searched the Microsoft knowledgebase and didn't find anything. Or
did the rules perhaps change? I've read the documentation several times
now, and have failed to spot any platform notes other than that a
dbghelp.dll greater or equal to version 5 must be used.

Thanks for any insight you can provide

- Per
mailto://pe...@turbopower.com

Raghavendra Rao

unread,
Apr 23, 2002, 4:23:15 PM4/23/02
to
Please download the latest windbg from
http://www.microsoft.com/ddk/debugging and make sure that dbghelp.dll
(4.0.18) is placed in the application directory.

4.0.18 is the latest as windbg follows different versioning system than the
OS.

Best regards,
Raghavendra Rao
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.

plarsen

unread,
Apr 24, 2002, 5:28:28 AM4/24/02
to
Raghavendra,

Thanks for responding.

Unfortunately, though slightly newer, the dbghelp.dll from that kit
(4.0.18) has the exact same problem as the XP version.

I can send you the EXE and PDB with additional testing info, if you
like.

- Per

""Raghavendra Rao"" <nospam...@microsoft.com> wrote in message
news:CVtoaSw6BHA.2112@cpmsftngxa08...

Raghavendra Rao

unread,
Apr 29, 2002, 1:53:54 PM4/29/02
to
So, you experience the problem even if you place the dbghelp.dll in the
application directory? If so, Please send me your exe and pdb and I will
take a look.

Thanks!

plarsen

unread,
Apr 30, 2002, 6:18:28 AM4/30/02
to
Yes, I do. I'll send you the files.

- Per

""Raghavendra Rao"" <nospam...@microsoft.com> wrote in message

news:uYC4bb67BHA.2200@cpmsftngxa07...

plarsen

unread,
May 1, 2002, 5:06:07 AM5/1/02
to
Your mail box is full - or doesn't accept attachments this large. I'm
trying to find a place to put the ZIP where you can grab it. I'll let
you know.

- Per

"plarsen" <n/a> wrote in message news:uRjwlBD8BHA.2540@tkmsftngp04...

0 new messages