Debugging C++ Native Windows Phone 8 app

0

I am trying to figure out how to get to 0x0001556c offset of my application. This is the error that came in apphub:

"Frame    Image                            Function               Offset        
0        kernelbase                       RaiseException         0x00000036    
1        msvcr110                         _CxxThrowException     0x0000005a    
2        windowsphone8program                                    0x0001556c"

A C++ exception is being thrown, but I need to see what the assembly looks like around it to figure out what exception is thrown

The windowsphone8program is a dll file, how would I be able to navigate to the 0x0001556c offset? What tools can I use?

I've tried locating 0x0001556c in my code but it's just ?? ?? in Visual Studio.

Is it possible to debug this error?

c++
debugging
exception
c++11
exception-handling
asked on Stack Overflow Oct 29, 2013 by Grapes

1 Answer

1

I'm not sure that there are any tools that will help you here, but I could be wrong.

I think your best choice is to create a sample application that loads your DLL. Once it's loaded, acquire the address it was loaded at, offset the address by 0x0001556C, and use the functions provided by dbghelp (particularly SymFromAddr) to get the symbol matching the address.

You can retrieve the base address of the DLL either by breaking into the debugger and checking your Modules window, or by calling GetModuleHandle with your DLL's name and treating the return value as the base address.

answered on Stack Overflow Oct 29, 2013 by Collin Dauphinee

User contributions licensed under CC BY-SA 3.0