Microsoft KB Archive/101156

{| = PRB: Read-Only Resource File Causes Startup Errors =
 * width="100%"|

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 "" and then choose the Set Default button.

STATUS
This behavior is by design.

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:
 * }