PRB: FoxDoc Fails When Moved to a Different Directory

Last reviewed: April 30, 1996
Article ID: Q129506
The information in this article applies to:
  • Microsoft FoxPro for Windows versions 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft FoxPro for Macintosh, versions 2.5a, 2.6a

SYMPTOMS

FoxDoc fails when started with a Locate File dialog box. You will see this error message:

   FOXDOC.MSG File Cannot Be Found

Putting the new FoxDoc directory in the search path does not fix this problem.

CAUSE

As stated in the "Developer's guide" (page D15-3 in the Windows "Developer's Guide" and page 255 of the Macintosh "Developer's Guide"), all FoxDoc files must remain in the same directory as FoxPro.

WORKAROUND

Do not move the FoxDoc files to a separate directory.

STATUS

This behavior is by design.

MORE INFORMATION

When the files that comprise FoxDoc are moved to a directory different from the FoxPro directory, FoxPro fails and returns two error messages. The first error message is an Open dialog box that asks where FOXDOC.FLL can be found. After pointing FoxDoc to the location where FoxDoc resides, FoxDoc will then present a Stop dialog box with this error message:

   FOXDOC.MSG File Cannot Be Found

Steps to Reproduce Behavior

WARNING: The following steps will crash FoxPro, and you may not be able to restart FoxPro unless you turn your computer off and on (perform a cold boot).

  1. Create a new directory for the FoxDoc files. Copy the files FOXDOC.APP, FOXDOC.FLL, FOXDOC.MSG, and PROWORDS.FXD to the new directory.

  2. Start FoxPro. In the Command window, type this command:

    FOXDOC=<Drive>:\<Dirname>\FOXDOC.APP.

  3. Type in FOXDOC, and press ENTER.

  4. Select a project for FoxDoc to evaluate.

  5. FoxDoc will present a dialog box that asks you to locate FOXDOC.FLL. After you have located FOXDOC.FLL in its new directory, FoxDoc will then give you the following FoxDoc Error message:

    FOXDOC.MSG message file cannot be found.

  6. Click OK four times to cause an Application error. At this point, FoxPro causes a general protection (GP) fault and crashes.


Additional reference words: FoxWin FoxMac 2.50 2.50a 2.50b 2.60 2.60a fail
GPF
KBCategory: kbtool kbprb
KBSubcategory: FxtoolFoxdoc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.