Application.ThreadException/Enable JIT debugging

  • Thread starter Thread starter Armin Zingler
  • Start date Start date
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
 
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
 
Back
Top