try/catch versus runtime error dialog

G

Guest

Hi all,

Maybe someone can help me with this:

My C++ project contains try and catch blocks. A catch-all block triggers my
custom message box with some information on the error caught. The stacktrace
is written to a log file. While stepping through my application from within
the IDE everything works fine. However, when i start my application outside
the IDE (which is an MS Outlook plugin, by the way) i receive this annoying
"Microsoft Visual C++ Runtime Library" error dialog telling me of a "Runtime
Error!". It seems that my catch block is ignored!

A google search, unfortunately, only turned up a reference to the function
set_terminate() which allows me to redirect the exception handling before,
again, this runtime dialog fires.

Is there a method (compiler switches, Macros, includes, library imports
whatever) which prevents this ugly message box to appear?

regards,

Lennart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top