I am running a Python script that launches a number of apps. I need a way to detect if the app that's launched has crashed. Some apps have internal crash handling
How can I detect the crash?
If they have internal crash handling, it's not possible to detect. The application will handle the error and exit normally. You can't even detect this if you would attach yourself as a debugger.
The reason is exception dispatching (MSDN):
except
block of a Python application, a catch
block in C# or C++ or even a general "unhandled exception handler".You're looking to become informed as part of step 3, however, the application has already stopped the process in step 2.