Visual C++ Developer Center > Visual C++ Forums > Visual C++ General > Watching for change...memory window?
Ask a questionAsk a question
 

AnswerWatching for change...memory window?

  • Wednesday, November 04, 2009 4:55 PMchris dryson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm trying to debug some legacy unmanaged C++ code. I've chased it to an iterator (over a vector which implements a selection list), whose owner member becomes zeroed after a call to CDocument::UpdateAllViews.

    In order to chase this sort of problem it would be useful to watch the content of the owner member as I step through other code pieces in which it is out of scope. I was hoping the memory window might provide this from the description at http://msdn.microsoft.com/en-us/library/3bw53t5c(VS.80).aspx
    But how exactly do I create/see a memory window? It doesn't appear on View (>Other Windows).

    Or, any other way to tackle this kind of problem? (in general, trying to find where in a complex calling sequence a particular variable is getting modified)

Answers

All Replies