PC Review


Reply
Thread Tools Rate Thread

Application.ThreadException/Enable JIT debugging

 
 
Armin Zingler
Guest
Posts: n/a
 
      4th Oct 2008
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

 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      14th Oct 2008
"Armin Zingler" <(E-Mail Removed)> schrieb
> 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
 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      28th Oct 2008
"Armin Zingler" <(E-Mail Removed)> schrieb
> "Armin Zingler" <(E-Mail Removed)> schrieb
> > 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?


Any idea?


Armin
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.ThreadException/Enable JIT debugging Armin Zingler Microsoft VB .NET 23 4th Jan 2009 03:11 AM
Application.ThreadException Jack Jackson Microsoft Dot NET Framework Forms 0 22nd Aug 2008 07:31 PM
confused with Application.ThreadException Lloyd Dupont Microsoft Dot NET Framework Forms 3 15th Oct 2005 06:17 PM
Application.ThreadException where? Robert Scheer Microsoft VB .NET 2 5th Feb 2004 11:17 PM
Application.ThreadException Rakesh Microsoft C# .NET 12 8th Dec 2003 10:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:13 PM.