Tutorial :Debugging commands (step over/into) cause unhandled exceptions



Question:

I'm using Visual Studio 2008 on a 64-bit version of Vista. After my program stops on one of my breakpoints, I can't step over or into the current line without either an Illegal Instruction exception or an Access Violation exception being thrown by my application. If I right-click on the next line and choose "Run to here" (equivalent to "Step over"), it works fine.

Addendum: there is nothing in any watch windows.

Also, here's something I forgot to mention: if I attach to the process, everything works just fine.

Has anyone run into this problem before?


Solution:1

Mos, I was wondering have you resolved this problem (since I also have it with VS2005 and VS2008 on 64-bit Win7)?

Edit: "Uncheck Tools/Options/Debugging/Native/Enable RPC debugging" was suggested in comment, and seems to be the answer.


Solution:2

Are you getting the exceptions in your application, or Visual Studio itself?

I would start by doing Clean on the entire solution then Build again. Sometimes if your binaries get out of sync you can get weird behavior when debugging.


Solution:3

Is your application multithreaded?

In case it is:

Are you shure the Access violation is thrown by the thread that you are debuging ? Did you freeze all other threads?


Solution:4

If you have any function calls in any of the watch windows, clear them out.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »