FIX: "Insufficient Memory" Error When Running Report

Last reviewed: October 14, 1997
Article ID: Q106351
2.50 WINDOWS kbprg kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5

SYMPTOMS

When you run a report several times, the error message "Insufficient Memory" is returned from Windows.

CAUSE

This error occurs because the Report Writer uses resources from the graphical device interface (GDI) pool of the Windows operating environment and does not return these resources back to the GDI pool in Windows.

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5 for Windows. This problem was corrected in FoxPro 2.5a for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. From the Help menu in the Program Manager, choose About Program Manager and note the percentage of available system resources.

  2. Create a quick report in FoxPro for Windows using a small database.

  3. Create and run the following program using the report created in step 1:

          ******************************
    
          * A simple program to run    *
          * a report form in an event  *
          * loop.                      *
          ******************************
    
          x = .T.
          DO WHILE x
             REPORT FORM <report name>
          ENDDO
    
        NOTE: When issuing the REPORT FORM command, send the report to the
        screen (the problem will also occur when you are printing).
    
    

  4. After the error message "Insufficient memory" is returned by Windows, choose About Program Manager from the Help menu in the Program Manager and compare the current percentage of available system resources to the previous amount.


Additional reference words: FoxWin 2.50 buglist2.50
fixlist2.50a errmsg err
msg repeatedly repetitively RWriter
KBCategory: kbprg kbfixlist kbbuglist kberrmsg
KBSubcategory: FxtoolRwriter
Keywords : FxtoolRwriter kbbuglist kberrmsg kbfixlist kbprg
Version : 2.50
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 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.