Final exceptions are complex. Even if you first put SysUtls in your project file, your application object may already disappear, which means that your global exception handler is gone too. MadExcept may work for this though.
Another solution is to install the Try / Except block in each section of the finalization , and then handle the exceptions.
What is your goal? Do you want to suppress the exception or debug it? Debugging can be done by navigating through them using F7 , as suggested by Zartog. If you find which unit has an exception in the finalization , you can try placing it in a different order in the announcement from which it is called.
Good luck
source share