Microsoft KB Archive/221726

= FIX: C0000005 Fatal Error Creating Index Tag =

Article ID: 221726

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 Q221726



SYMPTOMS
Creating and saving a CDX index tag in the Table Designer after creating an IDX index file causes the following error message:

In Visual FoxPro 6.0:

Fatal Error: Exception code=C0000005

In Visual FoxPro 5.x:

An application error has occurred and an application error log is being generated

VFP.exe

Exception:access violation(0xc0000005), Address:

You may also see a Dr. Watson error message in Visual FoxPro 6.0, similar to the one reported in Visual FoxPro 5.0.



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
  Create a .PRG with the following code: CREATE TABLE idxtest (col1_c C(10), col2_i I) INSERT INTO idxtest VALUES ('one',1) INSERT INTO idxtest VALUES ('two',2) INDEX ON col2_i TO my_long_index_name && create a IDX file MODI STRUCTURE  In Table Designer, select the Index tab. Type in Test for the name column and col1_c for the Expression column. Select OK to save the changes.

Note that immediately after saving the changes, Visual FoxPro generates the Fatal Error and terminates.

Keywords: kbbug kbfix kbdatabase kbvs600sp3fix KB221726

-

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

© Microsoft Corporation. All rights reserved.