Thread: tracing pointers

  1. #1
    makimura
    Guest

    Red face tracing pointers

    this seems like a pretty fumb question but for some reason i having trouble tracing the pointers and what the pointers are reading in Visual Studio C++ using the watch window..

    im using the watch window to trace pointers in a program.. the program is a linked list set up using templates..

    i may be just typing it wrong in the watch window but can anyone help me out?

    thanks

    Makimura

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    Dereferencing pointers in the watch window is like code just *ptr.

  3. #3
    makimura
    Guest

    Unhappy but...

    when i try to to that i seem to only get the address..
    you see the pointers are from a template and are pointing at nodes in a linked list.
    i wanna see the values they are actually pointed at in the watch window.

    Makimura

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    You can look at specific memory locations using memory view. On the menu select view then debug windows and finally memory. Then put the address you want to view in the address edit box.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MergeSort with array of pointers
    By lionheart in forum C Programming
    Replies: 18
    Last Post: 08-01-2008, 10:23 AM
  2. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM