This topic applies to:
Pro and Team
Does not apply
Command or commands hidden by default.
The Memory window is available only if address-level debugging is enabled the Options dialog box, Debugging node.
The Memory window provides a view into the memory space used by your application. The Watch window, QuickWatch, Autos window, and Locals window provide a way of looking at the content of variables, which are stored at specific locations in memory, but the Memory window shows you the large-scale picture. This view can be convenient for examining large pieces of data (buffers or large strings, for example) that do not display well in the other windows. The Memory window is not limited to displaying data, however. By definition, the Memory window displays everything in the memory space, whether it is data, code, or random bits of garbage in unassigned memory.
When examining memory contents in the Memory window, you can navigate through memory using the scrollbar that is part of the window's user interface. You can either type a memory address, or use drag-and-drop. If you know the address of a data item you want to see, typing in the memory address is usually easier. You can type a pointer to an item you want to view or an expression that uses the address-of operator to take the item's address.
You can customize the Memory window to display data in various formats, including hexadecimal or decimal display. For more information, see Customizing the Memory Window Display.
The memory window is not available for Script or SQL, which are languages that do not recognize the concept of memory.
To open a Memory window
Start debugging, if you are not already in debug mode.
In the Debug menu, point to Windows, then point to Memory, then click Memory 1, Memory 2, Memory 3, or Memory 4.
The following topics describe the tasks you can perform with the Memory window: