🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #102

Re: How to display unhandled exceptions of WinForm controls?

#102
From: Efim Mett
Date: Sun, 05 Feb 2006 12:30
32 lines
2269 bytes
"Marc Rohloff [TeamB]" <"on request"> schrieb im Newsbeitrag
news:u3m5y65wvt7b$.dlg@marcrohloff.com...
> On Sat, 4 Feb 2006 22:23:41 +0100, Efim Mett wrote:
>
> > "Marc Rohloff [TeamB]" <"on request"> schrieb im Newsbeitrag
> > Yes, but the behaviour is the same for Winforms.Timer. Why??
>
> ???
> The exceptions on the Winforms Timer worked fine for me, they were
> trapped by the exception handler.
>
OK, now I see in Debugger: it is really trapped.
But: I don't see any system reaction after re-throwing it. That's what I do:

  private static void CentralExceptionHandling (object sender,
ThreadExceptionEventArgs e)  {
  if (e.Exception is ApplicationException) {
     throw new ApplicationException(e.Exception.Message);
   }
  }

Debugger achieves the line with throw..., but if I start it without
debugger, I see nothing.
Another exception that is thrown in ExceptionProducer, is properly
propagated: you can observe it if you type anything in Textbox of it.

Ah, Marc, are you aware of other exceptions except of System.Timers.Timer
that can't be trapped?

Thanks
/Efim
Technical Details
Message-ID: <43e5ef2b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43e0a0f7$1@newsgroups.borland.com> <fw0ssgpcbnci.dlg@marcrohloff.com> <43e1fbb5$1@newsgroups.borland.com> <43e3825a$1@newsgroups.borland.com> <43e4daf7@newsgroups.borland.com> <s9xl7mqtm3lr.dlg@marcrohloff.com> <43e51a8e@newsgroups.borland.com> <u3m5y65wvt7b$.dlg@marcrohloff.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,194438d0e7a327b6
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Efim Mett" <Efim.Mett@t-online.de>
Newsgroups: borland.public.delphi.winforms.controls.using
References: <43e0a0f7$1@newsgroups.borland.com> <fw0ssgpcbnci.dlg@marcrohloff.com> <43e1fbb5$1@newsgroups.borland.com> <43e3825a$1@newsgroups.borland.com> <43e4daf7@newsgroups.borland.com> <s9xl7mqtm3lr.dlg@marcrohloff.com> <43e51a8e@newsgroups.borland.com> <u3m5y65wvt7b$.dlg@marcrohloff.com>
Subject: Re: How to display unhandled exceptions of WinForm controls?
Date: Sun, 5 Feb 2006 13:30:52 +0100
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 84.162.224.125
Message-ID: <43e5ef2b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139142443 84.162.224.125 (5 Feb 2006 04:27:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail