Microsoft KB Archive/315647

= FIX: Dockable Windows May Cause VFP to Close if Internal Name Table Has More Than 32,000 Entries =

Article ID: 315647

Article Last Modified on 1/24/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q315647



SYMPTOMS
If the internal name table contains more than 32,000 entries and you access a dockable window, Visual FoxPro (VFP) may close unexpectedly with the following error:

Fatal Error: Exception code=C0000005



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



Steps to Reproduce Behavior
 Add the line MVCOUNT=64000 to your Config.fpw file and restart Visual FoxPro. This ensures that Visual FoxPro can add enough entries to the name table to cause the error.  Create a program called &quot;Test&quot;, add the following code, and then run the program: FOR x = 1 TO 50000 varname = &quot;blah&quot; + TRANSFORM(x) PUBLIC &varname ENDFOR ACTIVATE WINDOW PROPERTIES  Make sure that the Properties window is dockable by right-clicking its title bar and selecting Dockable (if not already set). Press ALT+TAB to switch focus away from Visual FoxPro, and press ALT+TAB again to return. (This packs the name table.) Close the Properties window.

Visual FoxPro closes after reporting the error mentioned in the &quot;Symptoms&quot; section.</ol>

Additional query words: crash kbVFP700sp1fix

Keywords: kbbug kbfix kbcodesnippet KB315647

-

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

© Microsoft Corporation. All rights reserved.