| | 1 | = CrashHandler = |
| | 2 | |
| | 3 | == Purpose == |
| | 4 | |
| | 5 | The CrashHandler was designed to combat instances of starting applications included with PBIs that silently fail. A wrapper script around each application within a PBI calls the CrashHandler in the event of the application ending with a return value of 1. |
| | 6 | |
| | 7 | == Source Files == |
| | 8 | |
| | 9 | * crashhandler.ui - The first dialog show to the user. It simply states the application encountered an error, and allows the user to dismiss the application. |
| | 10 | * crashhandler.ui.h - The code associated with the crashhandler.ui dialog. |
| | 11 | * details.ui - A simple dialog which shows data captured from both STDOUT and STDERR whilst the application was running. An option to save this data is also provided. |
| | 12 | * details.ui.h - The code associated with the details.ui dialog. |
| | 13 | * main.cpp - Handles command line arguments, and calls the crashhandler.ui dialog. |
| | 14 | |
| | 15 | == Command line arguments == |
| | 16 | |
| | 17 | CrashHandler expects 3 arguments, in the order: applicationName stdoutLog stderrLog. |
| | 18 | |
| | 19 | * applicationName is the name of the application which erred. |
| | 20 | * stdoutLog is a plain text file containing a log of the information printed to STDOUT. This is the text shown to the user on the details screen. |
| | 21 | * stderrLog is a plain text file containing a log of the information printed to STDERR. This is the text shown to the user on the details screen. |