Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Stop debugger dialogue in Process object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Davis - 20 Nov 2006 21:56 GMT
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
Marc Gravell - 20 Nov 2006 22:06 GMT
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
Peter Bromberg [C# MVP] - 20 Nov 2006 22:12 GMT
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
Dave Sexton - 21 Nov 2006 01:35 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.