Microsoft KB Archive/110969

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5x, 2.6

-

SYMPTOMS
When using a Hewlett-Packard (HP) laser printer driver, running multiple consecutive reports from within a program loop reduces the graphical device interface (GDI) resource space until an "Insufficient memory" error occurs. The "Printer Not Ready" error message or a general protection (GP) fault may also occur.

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro version 2.6a for Windows.

MORE INFORMATION
The GDI is the Windows system resource that executes graphics operations that create images on the system display and other devices.

To check the amount system resources available, go to Program Manager. From the Help menu, choose About Program Manager. The amount of free resources, which includes GDI resources, is listed as a percentage.

Steps to Reproduce Problem
 Verify that an HP laser printer driver is in use. Create a quick report named TEST.FRX (unless you have another file with the same name). When asked to save environment information, choose Yes.  Create a program named TEST.PRG (unless you have another file with the same name) containing the following code:       DO WHILE .T.         REPORT FORMAT test.frx ENDDO  Run TEST.PRG.

Each execution of the REPORT command reduces the GDI resource space until an "Insufficient memory" error and/or a "Printer Not Ready" error occurs.

The products included here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability. Additional query words: FoxWin 2.50 2.50a 2.50b buglist2.50 buglist2.50a buglist2.50b buglist2.60 fixlist2.60a loop many errmsg err msg lj laserjet laser jet III IV

Keywords         : kberrmsg FxtoolGeneral Version          : 2.5x 2.60 Platform         : WINDOWS Issue type       :
 * }