Using the UnhandlerExceptionEventHandler in a control hosted by IE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello all,

I want to handle the 'UnhandledException' in my application, but ir seems
not to work. My application is a control hosted by IE. In the control's
constructor, I have the following code

....
AddHandler System.Threading.Thread.GetDomain.UnhandledException, AddressOf
MyUnhandledExceptionEventHandler
....

I'm forcing a 'Division by zero' exception to test it, buy my method is
neved called. Anybody knows what am I doing wrong?

Thanks in advance,


.



Relevant Pages

  • How to handle exceptions in constructor?
    ... When exceptions occur in constructor so that the instance of the object can ... should we throw the exception to the invoker of the ... the invoker can not see whether the instance of the object has ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Exception in a constructor
    ... > If an exception occurs or is thrown in my constructor, ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Exception in a constructor
    ... If an exception occurs or is thrown in my constructor, ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DbC & Exceptions & Style
    ... exception. ... Different ways the constructor can fail ... to avoid writing code that converts GUI data into objects, ... All domain objects must now provide a default constructor. ...
    (comp.object)
  • Re: Controlled types and exception safety
    ... >> propagate an exception. ... >> For an Adjust invoked as part of an assignment operation, ... But a user-defined constructor is ... a user-defined constructor has just turned on the ...
    (comp.lang.ada)