FIX: ON SHUTDOWN QUIT Causes Memory Degradation in 2.5

ID: Q97463

2.50 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

- Microsoft FoxPro for Windows, version 2.5

SYMPTOMS

When the command ON SHUTDOWN QUIT is issued and FoxPro for Windows is exited by double-clicking the Control-menu box, available memory and system resources are consumed and not released 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. In Windows Program Manager, choose About Program Manager from the

   Help menu and note the amount of memory available in Windows.

2. Create a command program with the following lines of code and
   execute it:

      ON SHUTDOWN QUIT
      @ 5,5 GET Tmp1 DEFAULT "     "
      @ 6,5 GET Tmp2 DEFAULT "     "
      READ CYCLE

3. Double-click the Control-menu box to quit FoxPro. (The Control-menu
   box is the spacebar in the upper-left corner of the FoxPro window.)

4. Note the available memory again.

Each time these steps are performed, 150K or 149K is lost, and the memory is not released at any known point.

After running the program seven times and quitting as outlined above on a Gateway 486DX2/50, about 2 MB of memory was lost. After ten iterations of the steps outlined above on a Dell 486P/50, about 1344K was lost. These two computers had different memory managers: HIMEM.SYS from Windows 3.1 and 386MAX.

On both systems, Windows system resources degraded also; 5 to 8 percent of the resources was lost.

Additional reference words: FoxWin 2.50 buglist2.50 fixlist2.50a KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: FxtoolGeneral Solution Type : kbfix

Last Reviewed: September 22, 1997