Jump to content
  • Advertisement
Sign in to follow this  
ehudros

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

This topic is 3877 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!