Error handle and just-in-time debugger

  • Thread starter Thread starter Marius Horak
  • Start date Start date
M

Marius Horak

Hello there,

In my Windows application I have:

Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(error.GlobalErrorHandler);

All was working fine until today.
Today, when error occurs in a compiled program, Windows calls
Just-in-time debugger popup window.
When running in Debug mode VS stops on error with Break/Continue dialog
box.

Any idea why ThreadException procedure does not fire?

Thanks

MH
 
Just cannot believe this s**t.

The problem started when I added in my ErrorHandler reference to
e.Exception.InnerException.StackTrace;

public void GlobalErrorHandler(object sender,
System.Threading.ThreadExceptionEventArgs e)

When I remove the reference to StackTrace the compiled program works as
it should but it still breaks when in Debug mode.

Strange s**t.

MH
 
I think I should examine my brain.
My error handler is not working as InnerException is null


MH
 
Back
Top