Visual FoxPro Has 3 New SYS Functions Related to MemoryLast reviewed: December 18, 1997Article ID: Q129311 |
3.00
WINDOWS
kbprg
The information in this article applies to:
SUMMARYThere are three new SYS functions in Visual FoxPro related to memory. The new functions are:
MORE INFORMATION
SYS(3050) - Set Buffer Memory SizeSYS(3050, nType, nBuffMemSize)
This function should be used in place of the MEMLIMIT command that was placed in the Config.fpw file in previous versions of FoxPro. The MEMLIMIT command is ignored in Visual FoxPro. To set the foreground or background buffer memory size to 6 and 4 million respectively, create a program and call it from the Config.fpw file. For example, add the following line to call Myprogram.prg from the Config.fpw file. Remember, only one Command= line is allowed in the Config.fpw file.
COMMAND = DO Myprogram.prgCreate a program file called Myprogram.prg in the root folder of Visual FoxPro and type the following code:
=SYS(3050,1,6000000) =SYS(3050,2,4000000)For these changes to take effect, restart Visual FoxPro. To check the validity of these settings, type the following in the Command window:
? SYS(3050,1) ? SYS(3050,2) SYS(3051) - Set Lock Retry IntervalSYS(3051, nWaitMilliseconds)
SYS(3052) - Honor REPROCESS for Index or Memo Lock AttemptsSYS(3052, nFileType, lHonorReprocess)
Using SYS(1001) and SYS(1016)SYS(1001) returns the virtual memory pool size. SYS(1016) returns the amount of memory used by defined objects. However, in order to get accurate memory statistics, you should use Window API functions.
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |