Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Planning Terminal services implementation
Message
 
À
19/03/2007 17:21:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01204701
Message ID:
01205890
Vues:
22
Jim,

As far as guidelines for the use of SYS(3050) i am not sure. I use it pretty heavily for citrix and terminal services though. All our apps have the ability to "override" auto memory management and specify buffer size base on a user definable setting in the local config file.

I have three property values in our main app's local config file (Using the My.vcx from sedna now for xml config file, it is great) that tell the system how to handle the memory. The properties are:
ManageMemory  = .t.  &&Boolean value, if it is false then the system does nothing, standard vfp auto memory management

ForgroundMemory  = 48  &&  Maximum memory usage when the VFP App has focus - Int value, multiplied out convert bytes to MB internally

BackgroundMemory = 48 &&  Maximum memory usage when the VFP App is not in focus - Int value, multiplied out convert bytes to MB internally
When the app loads my config object is one of the first to load. if ManageMemory is set to .t. then I issue two SYS(3050) commands for the foreground and background buffers using the saved parameters.

I internally multiply the number out to go from MB to bytes and it keeps the interface cleaner. With these settings in an external config file you can change them to fit different networks, systems, etc. etc.

Hope this helps a bit
Woodie Westbrook
I came, I saw, I compiled.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform