Microsoft KB Archive/221742

= FIX: C0000005 Fatal Error With Big Array Property =

Article ID: 221742

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221742



SYMPTOMS
" " In Visual FoxPro 5.x and 6.0, dimensioning a two-dimension array greater than its maximum allows value, which is 32500, causes the following or some other memory related error message:

C0000005 Fatal Error



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior
  Cut and paste the program below into a .PRG: x1 = CREATEOBJECT( "cBigArray" ) x1.aBig[1,1] = 1 x1.aBig[1000,1] = 1 x1.aBig[10000,1] = 1 x1.aBig[30000,1] = 1

DEFINE CLASS cBigArray AS Custom DIMENSION aBig[33000,2] ENDDEFINE  Save and run the .PRG.

NOTE: Visual FoxPro causes a C0000005 Fatal Error and terminates.

After the fix in Visual Studio Service Pack 3, Visual FoxPro shows this error message when the maximum allowed value is greater then 32500 on a two- dimensional array:

Too Many Variables



Keywords: kbbug kbfix kbxbase kbvs600sp1fix kbvs600sp2fix kbvs600sp3fix KB221742

-

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

© Microsoft Corporation. All rights reserved.