Unit Appex

Designer: Craig Ward, 100554.2072@compuserve.com Date: 3/1/96 Version: 1.2 Function: Writes application error messages to text-file. Fields: There are several properties that the developer can set: [1] ErrorLog - a string that stores the full path and filename of the text-file (this must be set) [2] UserName - a string that stores the application's current user name (this does not need to be set) [3] ShowExcep- this bool determines whether to show application exceptions, or not (default is true). Calling: There is only one method to call, and this must be passed the information that an exception will generate. For instance, in your application you will need to add the following line (it is probably best to add this line to the main form's unit, such as tied to the OnCreate event): Application.OnException := AppException1.WriteException; This will write the error message to the text file specified in the TextFile field, adding user and dateTime details. Try... : It is likely that there is try..except blocks within your application. If these blocks contain default handling of exceptions (for instance, you may abort or exit from a routine that attemtps to wrongly divide by zero) then your handler will execute, and the application's AppException component will be bypassed. Thanks: Special thanks to Chris Newham (100027.16@compuserve.com) for his improvements to the component.

Classes

TAppException -

Functions

Register - register component

Types

Constants

Variables


Functions


procedure Register;

register component

Types


Constants


Variables