title: OUTDATED - Error modes for OpenCV
body: <p>I am using OpenCV 1 to do some image processing, and am confused about the cvSetErrMode function (which is part of CxCore).</p>
  
  <p>OpenCV has three error modes. </p>
  
  <ul>
  <li>Leaf:   The program is terminated after the error handler is called. </li>
  <li>Parent: The program is not terminated, but the error handler is called. </li>
  <li>Silent: Similar to Parent mode, but no error handler is called</li>
  </ul>
  
  <p>At the start of my code, I call cvSetErrMode(CV_ErrModeParent) to switch from the default 'leaf' mode to 'parent' mode so my application is not terminated with an exception/assertion pop up. 
  Unfortunately 'parent' mode doesn't seem to be working. I still get the message dialog pop up, and my application still terminates.</p>
  
  <p>If I call cvSetErrMode(CV_ErrModeSilent) then it actually goes silent, and no longer quits the application or throws up a dialog... but this also means that I dont know that an error has occurred. In this case, I think the mode is being set correctly.</p>
  
  <p>Has anyone else seem this behaviour before and might be able to recommend a solution?</p>
  
  <p>References:</p>
  
  <ul>
  <li><p><a href="http://www.ieeta.pt/~jmadeira/OpenCV/OpenCVdocs/ref/opencvref_cxcore.htm#decl_cvSetErrMode" rel="nofollow noreferrer">cvSetErrMode function reference</a></p></li>
  <li><p><a href="http://www.ieeta.pt/~jmadeira/OpenCV/OpenCVdocs/ref/opencvref_cxcore.htm#cxcore_system_error" rel="nofollow noreferrer">Open CV Error handling mode reference</a></p></li>
  </ul>