Currently it is started as follows:
- Code: Select all
ProcessHandle ph = Process::launch( "foo.exe", args, 0, &outPipe, 0);
PipeInputStream istr(outPipe);
std::string s;
int c = istr.get();
while (c != -1)
{
s += (char) c; c = istr.get();
}
Graceful exit is handled easily by waiting for the output pile to end as shown above.
How can I handle when the process crashes? I need to handle this on Windows and Linux.





