title: C++ using exceptions
body: <p>I have a simple question</p>
  
  <p>If I have a code with try and catch, like this</p>
  
  <pre><code>try
  {
  ...
  }
  catch(exception&amp; ex)
  {
     AfxMessageBox(ex.what());
  }
  </code></pre>
  
  <p>Will this catch all the exceptions, even exceptions like bad pointer, etc? And also, if this code is there and for example, the code has a pointer, or memory problem, will it still crash? Or do I have to use</p>
  
  <pre><code>catch(...)
  </code></pre>
  
  <p>But how can I exactly pinpoint what was the reason of an enentual crash then?</p>