Solved

better using the memory pane

Posted on 2013-11-22
1
225 Views
Last Modified: 2013-11-24
Hi

In the memory pane in visual studio , the address is in hex (eg:0x1F9DBDC0) .So if i enter in my pointer name, it resolves it to a hex equaivalent in address space . Is there an easy way to advance to , let's say x bytes.

I can't seem to get mypointer+x to work if that's what i put in the address text box. Here, my pointer is the name of my pointer and x is the number of bytes i want to advance.

also note that mypointer is a pointer of char, so 1 byte.

thanks
0
Comment
Question by:LuckyLucks
1 Comment
 
LVL 12

Accepted Solution

by:
trinitrotoluene earned 500 total points
ID: 39670977
works perfectly for me. See the attached jpegMemory Window
If you want to verify the values at the address just use pointers to store values in your program.

Use a debugger and step through the code to obtain the pointer value.
cross check these pointers and the corresponding stored values in the memory window.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now