Objectmix
Tags Register Mark Forums Read

Using System.Diagnostics.Process object to execute program causes : DOTNET

This is a discussion on Using System.Diagnostics.Process object to execute program causes within the DOTNET forums in Framework and Interface Programming category; I have failed to find anything in regards to this online so I am going to try and see if someone here may know how to get around this. I am creating a manager application that executes an external program. I need to be able to monitor this program for crashes and restart it if needed. The problem: When running an application, if it generates an error window. This error window doesnt terminate the process but halts execution. Is there a way to redirect these errors somewhere else, or possibly remove them completely? They require user input, and even if ...


Object Mix > Framework and Interface Programming > DOTNET > Using System.Diagnostics.Process object to execute program causes

DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items

Reply

 

LinkBack Thread Tools
  #1  
Old 01-12-2005, 12:11 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Using System.Diagnostics.Process object to execute program causes


I have failed to find anything in regards to this online so I am going to
try and see if someone here may know how to get around this.

I am creating a manager application that executes an external program. I
need to be able to monitor this program for crashes and restart it if needed.

The problem: When running an application, if it generates an error window.
This error window doesnt terminate the process but halts execution. Is there
a way to redirect these errors somewhere else, or possibly remove them
completely? They require user input, and even if I run my program as a
windows service, it still generates an error window that requires user input
and to the CLR the process is still running and responding fine.

I have not yet found a gracefull workaround other than to enum all the
windows which doesnt necessarly work 100% of the time depending on what
window is displayed (debuggin, drwatson, std windows error, error reporting
window etc).

Any help on this matter would be much appriciated.

Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
System.Diagnostics.Process - Dispose? usenet DOTNET 2 12-04-2007 02:28 AM
System.Diagnostics.Process() hangs usenet DOTNET 5 11-13-2007 07:20 AM
Program started via System.Diagnostics.Process hangs usenet CSharp 3 09-25-2007 01:56 PM
Invoking System.Diagnostics.Process Start and changing the parent process usenet CSharp 2 08-30-2007 08:11 PM
what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions? usenet XML SOAP 1 04-17-2006 04:11 PM


All times are GMT -5. The time now is 08:37 AM.

Managed by Infnx Pvt Ltd.