i want to catch all execeptions with my own handler, but the problem is,
that the JIT-Debugger always start!
i put also the <system.windows .forms jitDebugging="f alse" /> in the
machine.config
thx for help
Mike
using System;
namespace SimpleEX
{
class Class1
{
static void Main ( )
{
AppDomain.Curre ntDomain.Unhand ledException +=
new UnhandledExcept ionEventHandler ( SimpleHandler);
String x = null ;
Console.WriteLi ne ( x.ToString ( ) ) ;
}
static void SimpleHandler ( Object Sender ,
UnhandledExcept ionEventArgs Args )
{
Exception e = (Exception)Args .ExceptionObjec t ;
Console.WriteLi ne ( "Caught : " + e.Message ) ;
}
}
}
that the JIT-Debugger always start!
i put also the <system.windows .forms jitDebugging="f alse" /> in the
machine.config
thx for help
Mike
using System;
namespace SimpleEX
{
class Class1
{
static void Main ( )
{
AppDomain.Curre ntDomain.Unhand ledException +=
new UnhandledExcept ionEventHandler ( SimpleHandler);
String x = null ;
Console.WriteLi ne ( x.ToString ( ) ) ;
}
static void SimpleHandler ( Object Sender ,
UnhandledExcept ionEventArgs Args )
{
Exception e = (Exception)Args .ExceptionObjec t ;
Console.WriteLi ne ( "Caught : " + e.Message ) ;
}
}
}
Comment