BUG: System Error/Hang w/ $CHECK ON Metacommand & SUB Program (34276)
This article was previously published under Q34276
SYMPTOMS
If you use the in-line metacommand $CHECK ON (or $OPTION +C) and
are calling a SUBprogram in a Basic source file, the compiled program
can hang or give a system error (such as ID=2 or 3) at run time. If
you pass no parameters to the subprogram, the compiled program may
work on a Macintosh II but will fail on a Macintosh SE.
Microsoft has confirmed this to be a bug in the Microsoft
QuickBasic Compiler Version 1.00 for the Macintosh . (This
problem also occurs with $OPTION +C in the Microsoft Basic Compiler
Version 1.00). We are researching this problem and will post new
information as it becomes available.
The following are two workaround solutions:
- Compile with the Process Runtime Events option. $CHECK ON then
works.
- Remove the $CHECK ON in-line metacommand, and use the equivalent
Check Arrays & Overflow compiler option instead.
- This problem does not occur in the interpreter in QuickBasic or in
Versions 3.00 and earlier of the Microsoft Basic interpreter.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
kbbug KB34276 |
|