.EXE with PRINT TAB or SPC Can Hang If Compiled with BC /S (44241)
This article was previously published under Q44241
SYMPTOMS
An .EXE program compiled in Microsoft QuickBasic Version 4.50 can
hang when all of the following three conditions are met:
- The program was compiled with the BC /s option.
- The program was printed with the PRINT or PRINT# statement.
- Any combination of TAB or SPC functions was used in the PRINT or
PRINT# statement.
WORKAROUND
The following are workarounds for the problem:
- Break your program into smaller modules so that the /s switch is
not needed.
- When compiling, include the /X switch, which is normally used to
indicate the presence of ON ERROR with RESUME, RESUME NEXT, or
RESUME 0.
STATUS
Microsoft has confirmed this to be a bug in Microsoft QuickBasic Version
4.50. We are researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
This problem does not occur in QuickBasic Version 4.00 or 4.00b or with the
Microsoft Basic Compiler Version 6.00 or 6.00b.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB44241 |
|