EnableShowException Procedure

Version 9 (152b)

 

 

Enables/disables displaying of the Exception Dialog when an exception occurs.

 

Syntax

[ bPrevSetting = ] EnableShowException ( bEnable )

The EnableShowException procedure syntax has the following parts:

 

Name

Type

Description

bPrevSetting

Bool

Previous show exception setting

bEnable

[Val] Bool

True (default) -  ATEasy will display the Exception Dialog when an abnormal exception occurs.

False - ATEasy will exit without showing the Exception Dialog.

Comments

The function only applicable for code running an ATEasy stand-alone executable (EXE) or Library (DLL). Running from the ATEasy IDE will always shows the exception dialog when an error occurs.
Use the function to prevent ATEasy run-time displaying the dialog when abnormal error occurs to allow existing your application with no message, usually for unattended computer. When such error occurs and the bEnable parameter was set to False, the executable will be closed with no error. ATEasy will still log the error to Windows Application Log the exception, so the information can be retrieved at a later time.

Example

The following example enables touch screen mode based on two options being true:

 

! disables Exception Dialog for abnormal errors

EnableShowException(False)

See Also

ATEasy Exception Dialog