PRFOX: Printer Driver Causes GPF in DRIVER2.FLL
PSS ID Number: Q108670
Article last modified on 08-31-1994

2.5x 2.60

WINDOWS


--------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
--------------------------------------------------------------------

SYMPTOMS
========

FoxPro for Windows causes a general protection (GP) fault in module
DRIVER2.FLL under the following three conditions:

1. SET RESOURCE is ON.

2. The active resource file (FOXUSER.DBF/.FPT) contains a  printer driver
   setup created in FoxPro 2.0, 2.5, 2.5a, or 2.5b  for MS-DOS and the
   setup is for one of the following printers:

      Brother HL-4
      Brother HL-8
      HP DeskJet Plus
      HP LaserJet II (60 lpp)
      HP LaserJet 500/+/II
      HP LaserJet III
      Olivetti JP150
      Olivetti JP350S

3. The printer driver is activated.

STATUS
======

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a,
2.5b, and 2.6 for Windows. This problem was corrected in FoxPro version
2.6a for Windows.

MORE INFORMATION
================

FoxPro for Windows normally uses the Windows Print Manager to control
printed output. However, by using FoxPro for MS-DOS printer drivers, you
can control printed output generated by the ?/?? commands. To do this, you
must first create the printer driver in FoxPro for MS-DOS. You can then use
the SET PDSETUP TO command in FoxPro for Windows to activate the printer
driver.

When you activate such a printer driver using the following command

   SET PDSETUP TO "TESTPD"

the GP fault may occur in these situations:

 -  When you attempt to print a report using the printer driver.

    -or-

 -  When you quit FoxPro and attempt to run it again.

Additional reference words: 2.50 2.50a 2.50b 2.60 gpf buglist2.50
buglist2.50a buglist2.50b buglist2.60 fixlist2.60a fixlist2.60a
KBCategory: kbprint kbbuglist
KBSubcategory: foxuser resource

=============================================================================

Copyright Microsoft Corporation 1994.
