M
Mike Strieder
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="false" /> in the
machine.config
thx for help
Mike
using System;
namespace SimpleEX
{
class Class1
{
static void Main ( )
{
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler ( SimpleHandler);
String x = null ;
Console.WriteLine ( x.ToString ( ) ) ;
}
static void SimpleHandler ( Object Sender ,
UnhandledExceptionEventArgs Args )
{
Exception e = (Exception)Args.ExceptionObject ;
Console.WriteLine ( "Caught : " + e.Message ) ;
}
}
}
that the JIT-Debugger always start!
i put also the <system.windows.forms jitDebugging="false" /> in the
machine.config
thx for help
Mike
using System;
namespace SimpleEX
{
class Class1
{
static void Main ( )
{
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler ( SimpleHandler);
String x = null ;
Console.WriteLine ( x.ToString ( ) ) ;
}
static void SimpleHandler ( Object Sender ,
UnhandledExceptionEventArgs Args )
{
Exception e = (Exception)Args.ExceptionObject ;
Console.WriteLine ( "Caught : " + e.Message ) ;
}
}
}