Hi,
I am looking for help in creating a custom exception handler. We build embedded applications for medical instruments. I am trying to replace the default Runtime error message that gets displayed from a packaged image. Rather than displaying a message prompt that says an error occured do you want to continue yes/no, I want to display my own prompter (with no user options to continue, exit, etc) that displays an error message and then effectively locks up the system such that the only option is to cycle power to the intrument.
I have modified the EpRuntimeStartUp reportError:resumable:startBP method to replace the System confirm: with one on my own message prompters and this seems to work. Although I do notice the mouse cursor is still active. And I am concerned about leaving other Smalltalk processes still running.
So, first, is there a better way to install a customized default exception handler for a packaged image, other than directly modifying the EpRuntimStartUp class? I was looking at setting an errorReporter somewhere but have not found how to set an errorReporter for a packaged image.
Second, what is a good way to effectively shutdown Smalltalk without doing a System exit? I still want my error message to be displayed until the intrument is powered off, but I want to lock up the system from anything else happening?
As, usual, thanks in advance for any ideas.
Andy