Application.ThreadException doesn't catch in IDE
- From: "James" <baoduraspect@xxxxxxxxxxxxxxxx>
- Date: Sat, 12 Nov 2005 21:26:17 -0600
Very strange problem that is only ocurring in one application (that is, I
can create a brand new app and not experience this problem).
I have created a handler for Application.ThreadException, in my case in C#
that simply displays the unhandled exception.
If I choose "Debug" in the VS.NET 2003 IDE, exceptions never go into the
handler so the application, of course, terminates. If I then immediately go
into the bin/Debug folder and then run the exact same .exe by
double-clicking, the handler is used. Stranger still, once the app is
running after double-clicking on it, I can attach the debugger and the
handler continues to work.
What am I missing?
James
.
- Follow-Ups:
- RE: Application.ThreadException doesn't catch in IDE
- From: "Gary Chang[MSFT]"
- Re: Application.ThreadException doesn't catch in IDE
- From: Truong Hong Thi
- RE: Application.ThreadException doesn't catch in IDE
- From: "TerryFei"
- RE: Application.ThreadException doesn't catch in IDE
- Prev by Date: Unable to start debugging
- Next by Date: Re: Unable to start debugging
- Previous by thread: Unable to start debugging
- Next by thread: RE: Application.ThreadException doesn't catch in IDE
- Index(es):
Relevant Pages
|