Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory Concern
Message
De
13/05/2005 23:16:03
 
 
À
13/05/2005 22:13:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01013753
Message ID:
01014160
Vues:
25
Mike,
>I have tried the Sys(3050) function but it has no effect. I have read something about VirtualAlloc and VirtualFree in MSDN. My question is how to implement it in VFP?
>
>I was wondering if it's possible to manually allocate and free up memory in VFP. What to do and how to override the default memory management of VFP8?

I doubt you can use those winapi memory functions in vfp to the effect you are after.

You can try to force windows memory "resetting" by Get/SetProcessWorkingSetsize.

Perhaps yours is a case where it actually is useful. You can try out the effect of mem purging by minimizing the apps window and watching the effects in the task manager. This action forces a swap out of the active process and a memory recalculation/purge to disk. But as soon as your app gets focus again and is un-minimized, memory is usually gobbled up again, depending on the size allocated to the process.

I'ld try it after closing my tables/cursors and a call to sys(1104). Are you following global memory or process memory ? A bit more info about your app / machine[s] / settings might be helpful.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform