G
GG
I have a console application
[MTAThread]
static void Main(string[] args)
{
//for any unhandled exceptions
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new
UnhandledExceptionEventHandler(HandlerUnhandledException);
next line is
RemotingConfiguration.Configure(filename);
this is the event
public static void HandlerUnhandledException(object sender,
UnhandledExceptionEventArgs args)
{
Exception e = (Exception) args.ExceptionObject;
Console.WriteLine("Error:"+ e.Message.ToString());
Console.WriteLine(e.Source.ToString());
}
This line RemotingConfiguration.Configure(filename);
throws an exception and getting the
Just-In-time Debugging window
It does not go to the HandlerUnhandledException
I even wrapp it in
try
RemotingConfiguration.Configure(filename);
catch
but still get the Just-In-time Debugging Window
How can I use the unhaddled event exception so
I can get rid of Just-In-time Debugging Window?
[MTAThread]
static void Main(string[] args)
{
//for any unhandled exceptions
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new
UnhandledExceptionEventHandler(HandlerUnhandledException);
next line is
RemotingConfiguration.Configure(filename);
this is the event
public static void HandlerUnhandledException(object sender,
UnhandledExceptionEventArgs args)
{
Exception e = (Exception) args.ExceptionObject;
Console.WriteLine("Error:"+ e.Message.ToString());
Console.WriteLine(e.Source.ToString());
}
This line RemotingConfiguration.Configure(filename);
throws an exception and getting the
Just-In-time Debugging window
It does not go to the HandlerUnhandledException
I even wrapp it in
try
RemotingConfiguration.Configure(filename);
catch
but still get the Just-In-time Debugging Window
How can I use the unhaddled event exception so
I can get rid of Just-In-time Debugging Window?