AppDomain.UnhandledException: Removing the default handler!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Lapierre

    #1

    AppDomain.UnhandledException: Removing the default handler!


    How can I remove the default exception handler handler?
    When adding a custom handler, I can't get rid of the VS.NET unhandled
    exception dialog.

    Ex:
    AppDomain currentDomain = AppDomain.Curre ntDomain;
    currentDomain.U nhandledExcepti on += new
    UnhandledExcept ionEventHandler (MyHandler);

    MyHandler gets called AFTER the default VS.NET unhandled exception handler
    (even in Release versions).


  • Steven John Pack

    #2
    Re: AppDomain.Unhan dledException: Removing the default handler!

    Are you catching Application.Thr eadException as well???


    "Martin Lapierre" <lapierrem@cedr om-sni.com> wrote in message
    news:edmzkEegDH A.1832@TK2MSFTN GP09.phx.gbl...[color=blue]
    >
    > How can I remove the default exception handler handler?
    > When adding a custom handler, I can't get rid of the VS.NET unhandled
    > exception dialog.
    >
    > Ex:
    > AppDomain currentDomain = AppDomain.Curre ntDomain;
    > currentDomain.U nhandledExcepti on += new
    > UnhandledExcept ionEventHandler (MyHandler);
    >
    > MyHandler gets called AFTER the default VS.NET unhandled exception handler
    > (even in Release versions).
    >
    >[/color]


    Comment

    • Martin Lapierre

      #3
      Re: AppDomain.Unhan dledException: Removing the default handler!

      I don't have worker threads. I tried what you said, but that handler isn't
      called.

      I just want to get rid of the jit debugger. There should be a way of
      removing the default handler delegate from the registered events.

      "Steven John Pack" <a@b.com> wrote in message
      news:3f72e0a9$1 @news.comindico .com.au...[color=blue]
      > Are you catching Application.Thr eadException as well???
      >
      >
      > "Martin Lapierre" <lapierrem@cedr om-sni.com> wrote in message
      > news:edmzkEegDH A.1832@TK2MSFTN GP09.phx.gbl...[color=green]
      > >
      > > How can I remove the default exception handler handler?
      > > When adding a custom handler, I can't get rid of the VS.NET unhandled
      > > exception dialog.
      > >
      > > Ex:
      > > AppDomain currentDomain = AppDomain.Curre ntDomain;
      > > currentDomain.U nhandledExcepti on += new
      > > UnhandledExcept ionEventHandler (MyHandler);
      > >
      > > MyHandler gets called AFTER the default VS.NET unhandled exception[/color][/color]
      handler[color=blue][color=green]
      > > (even in Release versions).
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...