Single-Line DEF FN Can Cause Program to Rerun ON ERROR (63272)
This article was previously published under Q63272
SYMPTOMS
A program will incorrectly return from an error-handling routine if an
error occurs in a single-line DEF FN function. If the error occurs
during the execution of a single-line DEF FN function, when the error
handler executes a RESUME or RESUME NEXT, the program will resume on
the line after the DEF FN definition instead of on the line or line
after where the DEF FN function was invoked. This usually results in
an infinite loop that eventually causes an "Out of stack space" error
after the FN function invocations have been nested too many times.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic versions
4.00, 4.00b, and 4.50; in Microsoft Basic Compiler versions 6.00 and
6.00b (buglist6.00, buglist6.00b); and in Microsoft Basic Professional
Development System (PDS) versions 7.00 and 7.10 for MS-DOS
(buglist7.00, buglist7.10). This problem occurs in both the
QB.EXE/QBX.EXE editor environment and the BC.EXE compiler. We are
researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB63272 |
|