FIX: Reports Executed from Loop Cause "Insufficient Memory"

Last reviewed: October 20, 1997
Article ID: Q110969
2.5x 2.60 WINDOWS kbprg kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 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

  1. Verify that an HP laser printer driver is in use.

  2. Create a quick report named TEST.FRX (unless you have another file with the same name). When asked to save environment information, choose Yes.

  3. 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
    
    

  4. 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 reference words: FoxWin 2.50 2.50a 2.50b 2.60 buglist2.50
buglist2.50a buglist2.50b buglist2.60 fixlist2.60a loop many errmsg err msg
lj laserjet laser jet III IV
KBCategory: kbprg kbfixlist kbbuglist kberrmsg
KBSubcategory: FxtoolGeneral
Keywords : FxtoolGeneral kbbuglist kberrmsg kbfixlist kbprg
Version : 2.5x 2.60
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.