BUG: RESTORE WINDOW FROM Command Leaks Memory

Last reviewed: May 31, 1995
Article ID: Q124602
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a

SYMPTOMS

Using the RESTORE WINDOW FROM MEMO or RESTORE WINDOW FROM MEMO command causes an increase in memory used by objects as reported by SYS(1016).

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

To reproduce this problem, issue the following commands in the FoxPro command window. This will use the customer table that is normally in the tutorial directory.

   USE tutorial\customer IN 0
   DEFINE WINDOW one AT 0,0 SIZE 10,10
   DEFINE WINDOW two AT 2,2 SIZE 10,10
   ACTIVATE WINDOW one
   ACTIVATE WINDOW two
   SAVE WINDOW ALL TO MEMO notes
   CLEAR WINDOWS
   ?SYS(1016)     && Note this number
   RESTORE WINDOW ALL FROM MEMO notes
   CLEAR WINDOWS
   ?SYS(1016)     && Note this number.

The second number noted should be larger than the first. Repeating the following series of commands causes the amount of memory used by objects as reported by SYS(1016) to get ever larger with each iteration until out of memory:

   RESTORE WINDOW ALL FROM MEMO notes
   CLEAR WINDOWS
   ?SYS(1016)     && Note this number.


Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 2.60a buglist2.50
buglist2.50a buglist2.50b buglist2.60 buglist2.60a
KBCategory: kbprg kbbuglist
KBSubcategory:


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