Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
GeneralRe: try/catch fails ? Pin
Christian Graus9-Jun-05 15:47
protectorChristian Graus9-Jun-05 15:47 
GeneralRe: try/catch fails ? Pin
mav.northwind9-Jun-05 20:13
mav.northwind9-Jun-05 20:13 
GeneralRe: try/catch fails ? Pin
Gary Kirkham13-Oct-05 6:54
Gary Kirkham13-Oct-05 6:54 
AnswerRe: try/catch fails ? Pin
Luis Alonso Ramos13-Oct-05 7:10
Luis Alonso Ramos13-Oct-05 7:10 
GeneralRe: try/catch fails ? Pin
Gary Kirkham13-Oct-05 8:07
Gary Kirkham13-Oct-05 8:07 
GeneralRe: try/catch fails ? Pin
Luis Alonso Ramos13-Oct-05 8:13
Luis Alonso Ramos13-Oct-05 8:13 
GeneralRe: try/catch fails ? Pin
Gary Kirkham13-Oct-05 8:17
Gary Kirkham13-Oct-05 8:17 
QuestionHow to gracefully handle program crashing when executed using Process object Pin
xdansmith9-Jun-05 13:36
xdansmith9-Jun-05 13:36 
I am executing a program on the machine using the following code:

Process p = new Process();
p.StartInfo.FileName = "applicationname.exe";
p.StartInfo.CreateNoWindow = true;
p.StartInfo.UseShellExecute = false;
p.Start();
p.WaitForExit();
p.Dispose();

If this program should crash for some reason (which it does at times), the OS will show the standard window that says the program has performed an illegal operation and must close. I realize that the real solution here would be to fix the bug in this third-party application, but in the mean-time I need to have my application give a friendly error message instead.

Is there anyway for my application to know when that application crashed and display appropriate instruction to the user rather than the OS giving the standard illegal operation message?

Any information would be greatly appreciated.

Thanks!

Daniel Smith
AnswerRe: How to gracefully handle program crashing when executed using Process object Pin
nemopeti10-Jun-05 2:03
nemopeti10-Jun-05 2:03 
GeneralRe: How to gracefully handle program crashing when executed using Process object Pin
xdansmith10-Jun-05 9:12
xdansmith10-Jun-05 9:12 
GeneralCOM interop question Pin
Christian Graus9-Jun-05 12:49
protectorChristian Graus9-Jun-05 12:49 
GeneralRe: COM interop question Pin
Dave Kreskowiak9-Jun-05 14:52
mveDave Kreskowiak9-Jun-05 14:52 
GeneralRe: COM interop question Pin
Christian Graus9-Jun-05 14:56
protectorChristian Graus9-Jun-05 14:56 
GeneralRe: COM interop question Pin
Dave Kreskowiak9-Jun-05 16:08
mveDave Kreskowiak9-Jun-05 16:08 
GeneralRe: COM interop question Pin
Christian Graus9-Jun-05 16:15
protectorChristian Graus9-Jun-05 16:15 
GeneralGC Pin
devin1239-Jun-05 12:48
devin1239-Jun-05 12:48 
GeneralRe: GC Pin
Christian Graus9-Jun-05 13:01
protectorChristian Graus9-Jun-05 13:01 
GeneralRe: GC Pin
devin1239-Jun-05 13:06
devin1239-Jun-05 13:06 
GeneralRe: GC Pin
Christian Graus9-Jun-05 13:10
protectorChristian Graus9-Jun-05 13:10 
GeneralRe: GC Pin
devin1239-Jun-05 13:19
devin1239-Jun-05 13:19 
GeneralRe: GC Pin
Dave Kreskowiak9-Jun-05 14:46
mveDave Kreskowiak9-Jun-05 14:46 
GeneralRe: GC Pin
PaleyX10-Jun-05 14:43
PaleyX10-Jun-05 14:43 
GeneralRe: GC Pin
PaleyX10-Jun-05 14:48
PaleyX10-Jun-05 14:48 
GeneralNULL Pin
devin1239-Jun-05 12:28
devin1239-Jun-05 12:28 
GeneralRe: NULL Pin
Christian Graus9-Jun-05 12:32
protectorChristian Graus9-Jun-05 12:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.