Microsoft KB Archive/79046

= Using PAINT Tiling Starting with Null Byte Can Hang Basic =

Article ID: 79046

Article Last Modified on 11/21/2006



This article was previously published under Q79046



SYMPTOMS
The Basic PAINT statement may cause the computer to hang when used in conjunction with a tiling string that begins with a CHR$(0) or a null character. This can occur in any screen mode in the QB.EXE or QBX.EXE environment or in the compiled versions of the program.



STATUS
Microsoft has confirmed this to be a bug in Microsoft QuickBasic version 4.5 (buglist4.50) for MS-DOS, and in Microsoft Basic Professional Development System (PDS) versions 7.0 and 7.1 (buglist7.00, buglist7.10) for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The problem occurs when the PAINT statement is used with a tiling string that begins with a CHR$(0) and a line is drawn at a specific point on the screen. The position at which the line is drawn will make a difference as to whether this problem occurs or not.

The following code fragment recreates this problem and will hang your machine: SCREEN 12 LINE (2, 190)-(317, 190) c$ = CHR$(0) PAINT (100, 100), c$

Additional query words: QuickBas BasicCom 4.50 7.00 7.10 lock crash b_quickbas buglist7.00 buglist7.10

Keywords: KB79046

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.