Memory Management in Visual FoxPro

Last reviewed: September 14, 1995
Article ID: Q136694
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SUMMARY

This article describes memory management in Visual FoxPro. Memory is allocated in a page pool and a handle pool.

MORE INFORMATION

Handle Pool

The handle pool contains memory that is used for various Visual FoxPro objects such as windows, menus, classes, objects, cursors, sessions, and so on. Unlike previous versions of FoxPro, this pool has no arbitrary limit. It is bound only by the amount of virtual memory available from the underlying operating system as set by the user using the operating system's virtual memory settings. Thus, the size and complexity of a user's form or application is limited only by available virtual memory, not available physical memory.

Page Pool

The page pool contains memory used for file caching (to perform read buffering), internal sorting, and query execution. For these purposes, it is critical that the memory be physical, not virtual. In other words, Visual FoxPro needs memory that won't be swapped to disk. While it can't guarantee this, it can try to ensure this by limiting the size of the page pool so that it will all fit in physical memory. The size of the page pool can also be set manually by using SYS(3050).

Note that MEMLIMIT is not used in Visual FoxPro. The handle pool is limited by available virtual memory, and the page pool can be dynamically resized using SYS(3050).


Additional reference words: 3.00 VFoxWin crash insufficient RAM swapfile
KBCategory: kbenv
KBSubcategory: FxenvMemory


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