Microsoft KB Archive/44241

From BetaArchive Wiki
Knowledge Base


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:

  1. The program was compiled with the BC /s option.
  2. The program was printed with the PRINT or PRINT# statement.
  3. Any combination of TAB or SPC functions was used in the PRINT or PRINT# statement.


WORKAROUND

The following are workarounds for the problem:

  1. Break your program into smaller modules so that the /s switch is not needed.
  2. 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