PRB: FoxPro/Mac Table Operations Do Not Release MemoryLast reviewed: January 30, 1998Article ID: Q180171 |
The information in this article applies to:
SYMPTOMSUser object memory in FoxPro increases greatly and does not decrease when you issue any of the following commands on a large table:
DELETE ALL RECALL ALL INDEX ON SCAN...ENDSCAN RESOLUTIONClosing and reopening the table reduces memory usage back to its approximate original value.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONUser object memory is defined as memory used by objects that the user or programmer defines. User-defined objects include user-defined windows, menu bars, menus, variables, arrays, open tables, files opened with low-level file functions, and so on. User object memory can be checked with the SYS(1016) function. Applications on the Macintosh obtain memory from the operating system in a different way than Windows applications. On the Macintosh, the amount of memory to be allocated to a program is specified in the Get Info window under the Mac's File menu. The minimum amount of memory to be used for an application and the preferred amount can be set. However, the application must be closed to change these settings. If there is enough memory for the preferred amount to be used, the application takes this much memory from the operating system upon startup although the application may not be using all that memory. The memory is just reserved for the application. In addition to using the SYS(1016) function, the amount of memory allocated to FoxPro that is in use can be viewed from the About This Computer (or About This Macintosh, depending on the System software version) command on the Apple menu in Finder. This dialog box displays the System software version, the amount of total memory, the amount of virtual memory and the memory allocated to all running applications, including Finder itself. If Balloon Help is turned on and the mouse pointer is placed over the memory bar for an application, the balloon displays the amount of memory in use by the application. For instance, with Visual FoxPro, the balloon may display "This program is currently using 2.8 MB out of the 5.9 MB reserved for it."
Steps to Reproduce Behavior
REFERENCESFor more information on creating large tables for testing purposes, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q170128 TITLE : HOWTO: Programmatically Create Large Tables for Testing Purposes Keywords : FoxMac FxenvMemory FxprgTable VFoxMac Version : MACINTOSH:2.6a,3.0b Platform : MACINTOSH Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |