title: Some exceptions are not being caught correctly in an embedded Mono runtime
body: <p>We are using the embedded Mono runtime in a C++ application. Tested on Windows x86 and Mono 2.11</p>
  
  <p>Scripts are executed by <code>mono_runtime_invoke</code>. When an unhanded exception occur in script-space it will be caught automatically : </p>
  
  <pre><code>MonoObject* exception = NULL;
  MonoObject* returnObj = mono_runtime_invoke (m_method, m_objectInstance, NULL, &amp;exception);
  </code></pre>
  
  <p>However, divide by zero exception is not caught and cause an exception in the C++ application !</p>
  
  <p>Example :</p>
  
  <pre><code>int k = 0;
  Console.WriteLine(1 / k);
  </code></pre>