title: Catching c++ "Access Violation Writing Exception"?
body: <p>In my c++ code, I have a block of code that gives me an "Access Violation Writing Location ..." Exception when user input is invalid..</p>
  
  <p>I tried to catch this exception in my try/catch block to display error message when the exception occurs.. but for some reason it is not catching the error.</p>
  
  <pre><code>try {
      // ... some code that causes Access Violation Writing Location Exception
  }
  catch (...) {
      std::cout &lt;&lt; "invalid user input" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>I did this, but when the exception occurs, the console does not display my error message, but says there is an </p>
  
  <pre><code>Unhandled exception at 0x0F0B0E9A (msvcr110d.dll) in Example.exe : Access violation writing location
  </code></pre>
  
  <p>So it seems like my try/catch block is not catching the exception...</p>
  
  <p>I set break points to make sure that the exception is occuring within the try block.. and I'm 100% that's the case..</p>
  
  <p>Why is "catch (...)" not catching the Access Violation exception?</p>