title: How can null reference result in SEH exception with code 0xc0000005?
body: <p>I'm writing some test code using the <a href="https://github.com/google/googletest" rel="nofollow">Google C++ Test Framework</a> and forgot to initialize a certain object <code>myObj</code>. This results in the following error.</p>
  
  <pre><code>unknown file: error: SEH exception with code 0xc0000005 thrown in the test body
  </code></pre>
  
  <p>Stepping through the corresponding code it appears that a method call of the form</p>
  
  <pre><code>myObj-&gt;method()
  </code></pre>
  
  <p>is executed, while myObj is not initialized, i.e. its value is <code>0x00000000</code>. Then somewhere deep in a third party library this error is thrown.</p>
  
  <p>How can this even happen? Why doesn't it throw a null reference exception as soon as the method is called?</p>