How to suppress just-in-time debugging?

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a win app running under windows scheduler. Sometimes the just-in-time
debugger comes up requiring the user to select a debugger. Is it possible to
suppress this as it becomes inconvenient for the user?

Thanks

Regards
 
John said:
I have a win app running under windows scheduler. Sometimes the
just-in-time
debugger comes up requiring the user to select a debugger. Is it possible
to
suppress this as it becomes inconvenient for the user?

Are there bugs in your software?

;-)
 
John,
Does your app have a Try/Catch around your Main routine, as well as the
proper Global Exception Handlers?

Depending on the type of application you are creating, .NET has three
different global exception handlers.

For ASP.NET look at:
System.Web.HttpApplication.Error event
Normally placed in your Global.asax file.

For console applications look at:
System.AppDomain.UnhandledException event
Use AddHandler in your Sub Main.

For Windows Forms look at:
System.Windows.Forms.Application.ThreadException event
Use AddHandler in your Sub Main.

It can be beneficial to combine the above global handlers in your app, as
well as wrap your Sub Main in a try catch itself.

There is an article in the June 2004 MSDN Magazine that shows how to
implement the global exception handling in .NET that explains why & when you
use multiple of the above handlers...

http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx

For example: In my Windows Forms apps I would have a handler attached to the
Application.ThreadException event, plus a Try/Catch in my Main. The
Try/Catch in Main only catches exceptions if the constructor of the MainForm
raises an exception, the Application.ThreadException handler will catch all
uncaught exceptions from any form/control event handlers.

Hope this helps
Jay
 
Do you have security permissions set up properly for execution of the
application? what type of error message? is it a Security class error or
something else?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top