BUG: ON SELE BAR and SET SYSMENU SAVE Uses 2 Memory Handles

Last reviewed: June 27, 1995
Article ID: Q114292
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, and 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, and 2.6

SYMPTOMS

Sequentially using the ON SELECTION BAR and SET SYSMENU SAVE commands uses two memory handles. If these commands are repeated enough, all memory handles may eventually be allocated, causing the following error message:

   Insufficient memory.

STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for Windows and FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The following code uses two memory handles:

   ON SELECTION BAR _mfi_new of _mfile WAIT WINDOW "Testing"
   SET SYSMENU SAVE

NOTE: ON SELECTION BAR and SET SYSMENU SAVE are used in the FOXSTART.APP application. FOXSTART.APP is normally run when FoxPro starts. For more information about FOXSTART.APP, see the FoxPro online Help topics "Configuring FoxPro" and "_STARTUP."

Steps to Reproduce Problem

Running the following code eventually uses all memory handles, causing the "Insufficient Memory" error message:

   DO WHILE .T.
      ON SELECTION BAR _mfi_new of _mfile WAIT WINDOW "Testing"
      SET SYSMENU SAVE
   ENDDO


Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60 buglist2.50
buglist2.50a buglist2.50b buglist2.60 errmsg err msg leak loses
KBCategory: kbprg kbbuglist kberrmsg
KBSubcategory: FxtoolGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.