Exceptions not being reported in Visio Drawing Control

M

Marx

Hello,

I have a ThreadExceptionEventHandler at the application entry point (static
void Main()).

The problem is the exceptions occuring in the Visio Drawing Control 2003
event handlers are not being handled.
e.g.

private void axDrawingControl1_MouseDownEvent(object sender,
EVisOcx_MouseDownEvent e)
{
throw new Exception("test");
}

All other exceptions are handled. Any idea why?
 
J

J Kallay

ThreadExceptionEvents are only raised when an exception occurs in a WinForms
thread. Try adding an AppDomain.UnhandledExceptionEvent handler and see if
that type of event gets raised.
 
M

Marx

That does not seem to be the problem. UnhandledExceptionEventHandler did not
work either. axDrawingControl1_MouseDownEvent is in a WinForms Thread I
believe because the component is initialized in WinForms. Thanks anyway.
 

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