A memory error may occur when you use the HP LaserJet 4000 TN PCL 5e driver in Visual FoxPro for Windows 5.0 and in Visual FoxPro for Windows 6.0

This article was previously published under Q182137
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
After loading the HP LaserJet 4000 TN PCL 5e driver as either the defaultprinter driver in Windows 95 or as the default printer driver in VisualFoxPro, the following error may occur when you try printing several largereports:
This program performed an illegal operation and will be shutdown.
When you press the Details button, the following message appears:
VFP caused a general protection fault in module KRNL386.EXE at 0001:000014f1.
This error does not seem to occur when you run Visual FoxPro on Windows NT4.0 using the Windows NT version of the HP LaserJet 4000 TN PCL 5e driver.
MORE INFORMATION

Steps to Reproduce Behavior

  1. Install the Windows 95 HP LaserJet 4000 TN PCL 5e printer driver on a computer that is running Windows 95.
  2. Set the LaserJet 4000 TN PCL 5e as the default printer for Windows. The driver can be directed to a file if you do not have an HP LaserJet 4000 printer.
  3. Create a quick report called Ztest using the Orditems table located in the \Sample\Data folder. The report should use the LaserJet 4000 TN PCL 5e driver as the default.
  4. Place the following code in a program and run the program. The code prints the Ztest report to a text file 1000 times.
          USE Home()+"\Samples\Data\Orditems.dbf"      FOR i= 1 to 1000      REPORT FORM ZTEST NOCONSOLE TO FILE Ztest.txt      DELETE FILE Ztest.txt      ENDFOR
Depending on the speed of the computer, this error may take quite some timeto appear.
crash GPF hang
Properties

Article ID: 182137 - Last Review: 02/24/2014 08:32:32 - Revision: 2.1

  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 5.0a
  • Microsoft Visual FoxPro 6.0 Professional Edition
  • kbnosurvey kbarchive kbpending kbprb KB182137
Feedback