Exception Handling - throwing an exception without any handlers
<pre><code>void myterminate () 
{
   cout &lt;&lt; "terminate handler called";
}

int main (void) 
{
   set_terminate (myterminate);

   throw;  // throwing an exception. So, terminate handler should be invoked 
           // as no one is handling this exception.    
   getch();
   return 0;
}
</code></pre>

<blockquote>
  <p>But After executing this code, the output is:</p>
  
  <blockquote>
    <p>terminate handler called  +  "Debug Error!" dialog box appears.</p>
  </blockquote>
  
  <p>I am not sure why it is coming like this !!!! Please help.</p>
</blockquote>
