Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory management and SYS(3050)
Message
De
20/01/2009 03:37:12
 
 
À
19/01/2009 15:06:33
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01375179
Message ID:
01375373
Vues:
19
>>>In order to solve some issues I had encountered, I am using SYS(3050) to adjust the memory settings. I am saving the old settings, setting the foreground and background to 64*1024*1024, running my query, and putting the settings back. One client is getting an error when putting the settings back. It seems that the original foreground setting was -1351876608 and setting it back to this value causes an error. Why is this causing an error? Do I need to put the settings back?
>>>
>>>Thanks
>>
>>Elyse,
>>
>>An other program may have increased memory between setting it to 64*1024*1024 and back to 1351876608 (which is 1.2 GB - foxpro is taking al LOT of the computer's memory, and the higher sys(3050) the slower foxpro runs)
>>
>>If I were you I'd put this at the very beginning of the main - these are my settings - and leave sys(3050) after that
>>
>>=sys(3050,1, 64 * 1024 * 1024)
>>=sys(3050,2, 16 * 1024 * 1024)
>>
>
>The original setting was actually a NEGATIVE 1351876608. Why would this be? What does it mean?

Dunno, never seen a negative sys(3050)

Update: If your computer has more than 6 Gb memory or so and vfp interpretes the 32 bit number as a signed int, then that may be the reason
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform