Microsoft KB Archive/94781

= Static Common Array Greater than 65510 Bytes May Hang Computer =

Article ID: 94781

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Visual Basic for MS-DOS
 * Microsoft BASIC Professional Development System 7.1
 * Microsoft QuickBasic 4.5 for MS-DOS

-



This article was previously published under Q94781



SYMPTOMS
Attempting to create a static Common array greater than 65510 in the interpreter environment may cause the computer to hang (stop responding). You should instead get an Out of memory error message. Compiling a program that does this results in the correct error messages.



WORKAROUND
To work around the problem, use dynamic arrays instead of static arrays by using Rem $DYNAMIC at the beginning of your program.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
 Start the interpreter environment (VBDOS.EXE, QBX.EXE, or QB.EXE).  Type the following code in the Code Window. Rem $STATIC Dim A%(1 to 32756) Common A%  Run the program.

At this point your computer will hang (stop responding).

Additional query words: VBmsdos buglist1.00 buglist4.50 buglist7.10 1.00 4.50 7.10

Keywords: KB94781

-

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

© Microsoft Corporation. All rights reserved.