Handle .NET exceptions raised during display of a .NET form
- Last Updated: March 25, 2025
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
In an ABL application, .NET exceptions
can occur when .NET user-interface components first display
or when users interact with a .NET user interface. From the
ABL viewpoint, all these exceptions occur within the context of
a .NET Show( ) method, WAIT-FOR, or PROCESS
EVENTS statement that is currently running in an ABL session.
.NET typically traps most such exceptions within the CLR, before they have a chance to reach the ABL context. In this case, you might see a .NET alert box displayed like the one in the following figure.

This alert box displays a message that tells you how you might fix a bug that is typically in code that initializes .NET forms, controls, or related objects.
To handle the display of a .NET alert box in the ABL context: