title: Catch a Memory Access Violation in C++
body: <p>In C++, is there a standard way (or any other way, for that matter) to catch an exception triggered by a memory access violation?</p>
  
  <p>For example, if something went wrong and the program tried to access something that it wasn't supposed to, how would you get an error message to appear saying "Memory Access Violation!" instead of just terminating the process and not showing the user any information about the crash?</p>
  
  <p>I'm programming a game for Windows using MinGW, if that helps any.</p>