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

ID: Q114292

The information in this article applies to:

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

Last Reviewed: June 27, 1995