EDN Admin
Well-known member
I have created a small dialog based C++ app for testing. I moved a class out into a separate dll project and kept it in the same solution. Basically, I just click a button and call a static method in the .dll. Everything runs correctly, and the code does what I expect it to.
The problem is when I set a breakpoint, so that I can examine values etc, I get something like
"Unhandled Exception at 0x03f8f66f in MyApp.exe. 0xC00000005 Access violation".
The symbols are loaded, which I can verify by looking at the modules window. I can set the breakpoints at either my application, or inside the function in the dll, but when the debugger breaks, as soon as I try to step, I get the above error.
I havent worked in C++ for awhile, but this one is strange. I created a very simple .exe and a simple exported class in the .dll (one static method), and used the wizard defaults.
Is there a compiler/linker setting on either the .exe or .dll project that Im not setting correctly?
Thanks,
Hedley
View the full article
The problem is when I set a breakpoint, so that I can examine values etc, I get something like
"Unhandled Exception at 0x03f8f66f in MyApp.exe. 0xC00000005 Access violation".
The symbols are loaded, which I can verify by looking at the modules window. I can set the breakpoints at either my application, or inside the function in the dll, but when the debugger breaks, as soon as I try to step, I get the above error.
I havent worked in C++ for awhile, but this one is strange. I created a very simple .exe and a simple exported class in the .dll (one static method), and used the wizard defaults.
Is there a compiler/linker setting on either the .exe or .dll project that Im not setting correctly?
Thanks,
Hedley
View the full article