just in time debugger

  • Thread starter Thread starter jh
  • Start date Start date
J

jh

is there a way to keep a C++ .exe built in .net 1.1 from
bringing up the just in time debugger? i don't want
this. during normal running, we want the application to
just die on a crash. what happens is the just in time
comes up on the server and it just sits there with the
app in a hung state. we have another process running
that if any .exe "disappears", it restarts it. when JIT
comes up, it doesn't disappear and the server just sits
there dead. of course we need to find what is causing
this, but when running in production state, we need jit
to be disabled.

how can this be done?

thanks.
 
You can catch any exception when you attach to the
System.Windows.Forms.Application.ThreadException. By doing so you'll prevent
the debugger window to pop up. But be aware if your app is multi threaded,
you'd have to catch all exceptions of all threads.
 
Back
Top