Article ID: 44241
Article Last Modified on 11/21/2006
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.
MORE INFORMATION
The following program example demonstrates the problem that occurs when a program is compiled with the BC /s option:
c$ = "hello" d$ = "bye" print tab(8); c$; tab(16); d$
Additional query words: QuickBas buglist4.50
Keywords: KB44241