I used adplus to generate a dump which I've loaded into windbg. I have
private pdb symbols correctly loaded. I can use .frame 5 to go back up the
stack and then use ? and db and dt commands to view local thread types.
But I'm stuck when trying to find a private member variable m_sqlclient.
I'm still a relative newbie here.
Many thanks,
Mark.
I've solved my own question by doing the following commands:
0:000> ? this
Evaluate expression: 1239460 = 0012e9a4
0:000> dd 12e9a4 L1
0012e9a4 0032a848
0:000> dt CSqlCommsClient 32a848
Great, I never knew I could use ? this
Wonderful! Thanks everyone. If anyone else can add to this, please do.
try `dt this.` // note the trailing dot
or `dt -r this`
What's the purpose of the trailing dot? It didnt work for me.
It does work without the dot.
And the -r switch is great!
thanks!
It tells the debugger to show the fields of a struct/class. It might not be
working because `this` is the address of a pointer.
> It does work without the dot.
> And the -r switch is great!
>
> thanks!
you're welcome
I rather like the ??@@c++(this->m_sqlclient) syntax. You can also put
other valid C++ expressions in the parenthesis which can be very
useful.
Paul