Stop debugger dialogue in Process object

  • Thread starter Thread starter Jon Davis
  • Start date Start date
J

Jon Davis

I'm hosting a .NET console application in a .NET Windows Service using
System.Diagnostics.Process. How do I block the debugger dialogue from
appearing?

Thanks,
Jon
 
Don't let it crash?

When specifically are you seeing this dialog? Maybe some error-handling
might help...

Marc
 
Jon,
Wouldn't the first question be "Why is a debugger dialog appearing"?
Either there is an unhandled exception in your code, or you've got a
Debugger.Break() statement in there.
Peter
 
The service is agnostic to the process it is running. The objective is to be
able to host multiple user-defined console apps within the service, schedule
them, and log them, in the way we see fit. If an error occurs, we want to be
e-mailed, not break into a debugger.

It's obvious we can handle the exceptions from within the console apps, but
that's not what I was asking about. If a Process object cannot stop the
debugger from occurring, so be it, but that's what I'm trying to find out.

Thanks,
Jon
 
The service is agnostic to the process it is running. The objective is to be
able to host multiple user-defined console apps within the service, schedule
them, and log them, in the way we see fit. If an error occurs, we want to be
e-mailed, not break into a debugger.

It's obvious we can handle the exceptions from within the console apps, but
that's not what I was asking about. If a Process object cannot stop the
debugger from occurring, so be it, but that's what I'm trying to find out.

Thanks,
Jon
 
Hi Jon,

I think you'd have to host the runtime to prevent exceptions in your
service. The Process class doesn't seem to provide that ability since it
can be used to start any process, not just managed ones.
 

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