Don't let it crash?
When specifically are you seeing this dialog? Maybe some error-handling
might help...
Marc
Jon Davis - 20 Nov 2006 22:22 GMT
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
> 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

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> 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
Jon Davis - 20 Nov 2006 22:22 GMT
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
> Jon,
> Wouldn't the first question be "Why is a debugger dialog appearing"?
[quoted text clipped - 8 lines]
>> 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.

Signature
Dave Sexton
> 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