General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only