Application.ThreadException/Enable JIT debugging

A

Armin Zingler

Hi,

I'm using Framework 1.1/VS 2003 (VB.Net).

I have this code:

Try
dim f as new form1
f.showdialog
catch
'exception handling
end try

I expect that the catch block catches exceptions during the life time of the
dialog. However, it does not. Instead, the default exception dialog of the
Framework is shown. It's the one that adivces us to enable JIT debugging in
the application.exe.config or machine.config file. Well, I've done this
already. Anway, I want my own catch block (above) handle the exception!

I tried adding an event handler to the Application.ThreadException event. It
works, that means the handler is called instead of showing the default
exception dialog. But again, that's not what I want! How can I have the
catch block handle the exceptions thrown in the try block?


Armin
 
A

Armin Zingler

Armin Zingler said:
Hi,

I'm using Framework 1.1/VS 2003 (VB.Net).

I have this code:

Try
dim f as new form1
f.showdialog
catch
'exception handling
end try

I expect that the catch block catches exceptions during the life
time of the dialog. However, it does not. Instead, the default
exception dialog of the Framework is shown. It's the one that
adivces us to enable JIT debugging in the application.exe.config or
machine.config file. Well, I've done this already. Anway, I want my
own catch block (above) handle the exception!

I tried adding an event handler to the Application.ThreadException
event. It works, that means the handler is called instead of showing
the default exception dialog. But again, that's not what I want! How
can I have the catch block handle the exceptions thrown in the try
block?

Any idea?


Armin
 

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