Knowledge Base

BUG: Issuing PACK <table name> Causes Fatal Error

Article ID: 199006

Article Last Modified on 10/15/2002


APPLIES TO


This article was previously published under Q199006

SYMPTOMS

Issuing PACK <table name> causes the following error:

Fatal error: Exception code = C0000005.
This error only occurs in Visual FoxPro 6.0. The ability to add the table name clause was added in Visual FoxPro 5.0

RESOLUTION

Do not use the <table name> clause with the PACK command. Open the table, and then issue the PACK command without any clauses.

STATUS

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

MORE INFORMATION

The PACK command has an undocumented feature of adding the table name to the end of the command. This feature is useful if the table is closed at the time the PACK <table name> command is issued. If the table is in use, the "File is in use" error occurs.

Steps to Reproduce Behavior



  1. In the Visual FoxPro 6.0 Command window, type the following command:
          PACK HOME(2)+"\data\customer"
Note that the fatal error occurs and FoxPro quits.


Additional query words: kbDSupport kbDSE

Keywords: kbbug kbpending KB199006