Printing to an HP USB printer from Visual FoxPro may cause fatal exception error (258538)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q258538

SYMPTOMS

Printing to a Hewlett Packard Universal Serial Bus (USB) port printer may cause a fatal exception error when you run Microsoft Visual FoxPro on a computer that is running Microsoft Windows 95, Windows 98 or Windows 98 SE.

MORE INFORMATION

Steps to reproduce behavior

  1. On a computer that is running one of the operating sytems that is listed in the "Symptoms" section, install two printers:
    • One parallel port printer, set as the default printer.
    • One Hewlett Packard USB printer.
  2. Copy the following code to a program file, and change "MyReport" to the name of a test report that you have created:
    lcName = ""
    lcName = GETPRINTER()
    IF !EMPTY(lcName)
      SET PRINTER TO NAME (lcName)
      REPORT FORM MyReport TO PRINTER NOCONSOLE
    ENDIF
    					
  3. Run the program.
  4. When prompted, select the USB printer.
  5. When prompted with the Printer Not Ready message, click OK. This generates a Fatal Exception Error C0000005, and quits Visual FoxPro.
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was corrected in Microsoft Visual FoxPro for Windows 7.0.

Modification Type:MajorLast Reviewed:1/27/2005
Keywords:kbCodeSnippet kbprb kbprint KB258538 kbAudDeveloper