How Can I Find Out If My Pointers Corrupt a Memory Address?

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at How Can I Find Out If My Pointers Corrupt a Memory Address?.

Problem Description
I think that one of my pointers may be corrupting memory at address 0x00408000. How can I find out what is happening there?

Check for heap corruption

To find where the memory address is modified

  1. Set a data breakpoint at 0x00408000. See Set a data change breakpoint (native C++ only).

  2. When you hit the breakpoint, use the Memory window to view memory contents starting at 0x00408000. For more information, see Memory Windows.

Debugging Native Code FAQs
Debugging Native Code

Show: