Microsoft KB Archive/258538

= Printing to an HP USB printer from Visual FoxPro may cause fatal exception error =

Article ID: 258538

Article Last Modified on 1/27/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



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.



Steps to reproduce behavior
 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.   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  Run the program. When prompted, select the USB printer.</li> When prompted with the Printer Not Ready message, click OK. This generates a Fatal Exception Error C0000005, and quits Visual FoxPro.</li></ol>

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.

<div class="status_section">

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.

Additional query words: C0000005

Keywords: kbprint kbcodesnippet kbprb KB258538

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.