This command disables or enables the registration of the exception handler in the PMSHELL.EXE module.
Syntax.
SET SHELLEXCEPTIONHANDLER=ON|OFF
Parameters
ON
Notes:
Exception handler registration only occurs during PMSHELL.EXE initialisation. Therefore, a change to the specification of SHELLEXCEPTIONHANDLER will require the system to be rebooted.
The Shell's exception handler will attempt to clean up an application's PM resources. In addition if the application is the Desktop (or whatever is specified in RUNWORKPLACE), then it is restarted.
Under certain circumstances application traps can be pervasive. Either the default error recovery is too efficient to allow the trap to be intercepted or analysed, or the trap recurses to a more serious problem, from which it is also difficult to determine the underlying cause. SHELLEXCEPTIONHANDLER may be used under these circumstances to allow the problem to be intercepted closer to the point of occurrence.
SHELLEXCEPTIONHANDLER may be used with TRAPDUMP to force a system dump at the point of failure.
Hangs in the shell during initialisation may be the result of a re-cursive trap. SHELLEXCEPTIONHANDLER may be used to intercept this condition.
Since it if difficult to determine whether a potential shell problem involves PMSHELL.EXE or PMSHAPI.DLL then it is recommended to use SHELLEXCEPTIONHANDLER with SHAPIEXCEPTIONHANDLER.