Sunday, January 5, 2014

Edit Box – Error Handling During Startup

During startup when the program is loaded into the edit box, any errors detected in the program were saved in a member variable until the cursor became valid.  A valid cursor is needed in order to generated the extra selections used to highlight the errors.  The error list changed routine was then called, which would process the saved errors and clear the saved errors list.

The mechanism was modified where any errors are ignored during startup.  When the cursor becomes valid, the errors are retrieved from the attached program unit and the extra selections are generated.  The saved error list member variable was no longer needed and was removed.  Access functions were added to the program model to obtain the error count and an error item by index.

[commit 10724e4aab]

No comments:

Post a Comment

All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)