title: 'this' pointer changes after calling a member function
body: <p>I use Visual Studio 2012 Express to debug a 64-bit app. Let's say both 'foo' and 'bar' are some member functions of a class C. </p>
  
  <p>'foo' looks like:</p>
  
  <pre><code>void foo() {
      bar();    // change to this-&gt;bar() works!
  }
  </code></pre>
  
  <p>My program crashed because 'this' pointer is changed when it went inside 'bar'. The problem can be fixed by changing to 'this->bar()'.</p>
  
  <p>Any idea how I should debug this problem? Thanks</p>