John,
>Odd that this error ends process of this PRG. Is ERROR 1116 untrapable?
I think it is one of the few untrappable ones, there's a topic over on the
W i k i about them. Once this error is thrown it probably abends the program to prevent from crashing the OS as it might if there really were too many windows currently open.