Sign in to follow this  

Locating a line of code by memory address (at run time)

This topic is 3627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, I have a pretty straight forward question (I think...) I have a memory address I know is causing a program crash, and I would like the debugger to take me to that line of code during runtime. Is that possible? If so how? I am using C++ on VS2005. (I can't use the regular call stack because it is a memory corruption issue and the crash itself does not take place untill later in the game, when the overwritten data is accessed). Thanks, Ehud

Share this post


Link to post
Share on other sites
At runtime go to the disassembly window, and there's a place to enter a memory address. Put it there, and it should bring you to the disassembly for that instruction. If there's a corresponding line of code for it (and there may not be), it should show up in the window with the disassembly.

Share this post


Link to post
Share on other sites

This topic is 3627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this