Several occurrences of the error 40 and 14675 crash OpenEdge session.
Running a program several times with a temp-table as output parameter the called
program returns the error message. For example:
DEFINE TEMP-TABLE t-test NO-UNDO LIKE tableA.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO 1000.
RUN prog1.p (INPUT-OUTPUT TABLE t-test) NO-ERROR.
END.
/* prog1.p */
DEFINE TEMP-TABLE t-test NO-UNDO LIKE tableA.
DEFINE INPUT-OUTPUT PARAMETER TABLE FOR t-test.
RETURN ERROR "aaaa".
DBI file grows and eventually crash with the error:
SYSTEM ERROR: Attempt to define too many indexes for area <area number> database <db name>. (40) (14675)