PRB: Read-Only Resource File Causes Startup Errors

Last reviewed: April 17, 1995
Article ID: Q101156
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS

If a resource file containing a default printer driver is marked read-only, error messages will be generated on startup and the default printer driver will not be loaded.

RESOLUTION

In order for the default printer driver to be loaded, the resource file must not be marked read-only. For network users, this will require each user to have his or her own copy of the resource file.

Another workaround is not to set a default printer driver in FoxPro. To clear out the default printer driver, choose Printer Setup from the File menu, and then select the Printer Driver Setup check box. Select "<None>" and then choose the Set Default button.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. From the File menu, choose Printer Setup.

  2. In the Printer Setup dialog box, select Printer Driver Setup.

  3. Create a new printer driver, or select an existing one from the Printer Driver Setups dialog box, and set it as the default.

  4. Return to the Command window and issue a SET RESOURCE OFF command.

  5. From the System menu, choose Filer, and change the attribute of the resource file to read-only.

  6. Quit FoxPro.

  7. Restart FoxPro.

On startup, GENPD.APP will generate a series of error messages of the form "Variable G_PDxxxxxx not found. Cancel, Ignore, Suspend", and the default printer driver will not be loaded. DISPLAY STATUS will reveal that the resource file is open in select area 1. Subsequently issuing the SET RESOURCE OFF or SET RESOURCE TO command will not close the resource file -- SYS(2005) will always return the name of the original resource file.


Additional reference words: FoxDos 2.50 2.50a GENPD 2.50b 2.60
KBCategory: kbprint kbnetwork kberrmsg kbprb
KBSubcategory:


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 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.