Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Concern
Message
From
13/05/2005 23:16:03
 
 
To
13/05/2005 22:13:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01013753
Message ID:
01014160
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform