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



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 7.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. 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.
  2. Create a program called "Test", add the following code, and then run the program:
    FOR x = 1 TO 50000
    	varname = "blah" + TRANSFORM(x)
    	PUBLIC &varname
    ENDFOR
    ACTIVATE WINDOW PROPERTIES
    					
  3. Make sure that the Properties window is dockable by right-clicking its title bar and selecting Dockable (if not already set).
  4. Press ALT+TAB to switch focus away from Visual FoxPro, and press ALT+TAB again to return. (This packs the name table.)
  5. Close the Properties window.

    Visual FoxPro closes after reporting the error mentioned in the "Symptoms" section.

Modification Type:MajorLast Reviewed:1/24/2002
Keywords:kbbug kbCodeSnippet kbDSupport KB315647