Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Memory Footprint
Message
From
24/08/1999 13:25:11
 
 
To
24/08/1999 11:57:24
Chris Rahmes
Riverbend Nursery, Inc
Riner, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257117
Message ID:
00257185
Views:
15
>My company has purchased an VFP application (along with source code).
>The application consists on one main executable and an .app for each module (AR.app, AP.app, etc). My problems is that the application uses 12 MB of memory upon loading (with no forms active and no cursors populated). The main execuatable simply executes each app with a do command and the app's simply execute a menu (.mpr) program.
>Is there a way to reduce memory usage?

SYS(3050) can be used to control how much memory will be used by VFP for buffer space; there's a base minimum memory use in the 1-2MB range, and then SYS(3050,1,Memory in bytes) is used to set memory usage when a VFP app is in the foreground, and SYS(3050,2,Memory in bytes) to set the value when VFP is in the background. The docs say that VFP will set the value to 256K if no value is specified; my experience has been that setting it below about 2MB really hurts performance badly. Setting it to 2MB, should let each VFP instance tie up around 4MB of RAM while executing.

If you work with large tables, or a large number of tables, within your application, you are likely to degrade performance adjusting this value.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform