FIX: C0000005 Fatal Error Importing Chinese Excel 97 Worksheet (221640)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q221640

SYMPTOMS

Running Visual FoxPro 6.0 U.S. version on a Traditional Chinese Windows 95 or 98 operating system and attempting to import a Traditional Chinese Excel 5.0 or 97 worksheet with DBCS character sheet name causes Visual FoxPro to produce the following error message:
Fatal Error: Exception code=C0000005
The error message also occurs if you are running Visual FoxPro 6.0 US version on the US version of the Windows NT 4.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

MORE INFORMATION

The above error also occurs in Visual FoxPro 6.0 if the Excel worksheet has Simplify Chinese character or Korean character as the sheet name. The above error will not occur if is using the Import Wizard from Visual FoxPro 6.0.

Steps to Reproduce Behavior

  1. Create an workbook with Traditional Chinese Excel 97.
  2. Save the Excel workbook as book1.xls and type in Chinese characters for the sheet name.
  3. Run Visual FoxPro 6.0, select the File menu pad and the Import menu bar to import the Excel workbook.
  4. In the Import dialog, click the ellipses (...) button next to the From text box to select book1.xls.
  5. Then, click the Sheet drop-down.

    Immediately after clicking the drop-down, Visual FoxPro 6.0 produces the following error and then terminates:
    C0000005 Fatal Error
    The above error message also occurs if the following command is issued in the Command window:
    IMPORT FROM book1.xls TYPE XL8 SHEET <Chinese sheet-name>
    						

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbVS600sp3fix kbwizard kbXBase KB221640