Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Garbage Collection - Any Ideas?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00464933
Message ID:
00464969
Vues:
16
>I'm hoping someone knows how to force VFP to do garbage collection.
>For example, on an NT machine with task manager watching the VFP memory allocated, I type:
>
>x = space(16777184) ' VFP allocates between 20-36meg of RAM
>x = Null
>Release x ' RAM stays allocated
>
>CLOSE ALL
>CLEAR ALL ' No luck - still allocated
>
>Is there any way to force memory allocation? SYS(3050) has
>no effect on this kind of memory allocation.
>
>We have a citrix box with many VFP apps running, and if one
>user runs a VFP routine which needs RAM, the RAM is staying
>allocated to that user indefinitely, slowing the other users
>down.
>
>If anyone has any insites, I would be very thankful.
>
>TIA,
>Ed

Here's what I found:

VFP6 running idle mem usage at ~6100 k
x = space(16777184) - mem usage jumps to just under 39000 k
clear all - mem usage goes down to ~22500 k
?sys(3050,2) - mem usage goes back to ~6100 k

This happend every time. Interesting to note however that doing something like:

ln = sys(3050,2)

Did not have the same affect. Only:

?sys(3050,2)

from the command window cleared up the memory. All my testing was from the command window so I don't know if it works for within an application. Also I'm running Win2K server with all the latest updates and VFP6 sp4.

Another interesting observation was a different combination of the above commands.

x = space(16777184) - mem usage jumps to just under 39000 k
?sys(3050,2) - mem usage goes down to ~22500 k
clear all - mem usage goes back to ~6100 k

Hope this helps
Rip Ryness
International Falls, MN
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform