i am launching an .exe like this
ProcessStartInfo start = new ProcessStartInfo();
start.Arguments = stuff;
start.FileName = "test.exe";
try{
using (Process proc = Process.Start(start))
{
proc.WaitForExit();
...
}
}
catch
{
...}
from a thread. The problem is that sometimes "test.exe" crashes, opening a popup window saying
"application crashed blah blah.. looking for solution on internet blah blah"
having "test.exe" to crash, is expected, but what i need is or to close the popup window in order to release the thread, or "catch" the exe crash in the first place.
the try-catch in the code does not catch the crashing exe.
Could you please help? thank you