Within a timer, this function can be running periodically to reduce memory usage vfp application.
I have already try and work with well.
Function ReduceMemory()
Declare Integer SetProcessWorkingSetSize In kernel32 As SetProcessWorkingSetSize ;
Integer hProcess , ;
Integer dwMinimumWorkingSetSize , ;
Integer dwMaximumWorkingSetSize
Declare Integer GetCurrentProcess In kernel32 As GetCurrentProcess
nProc = GetCurrentProcess()
bb = SetProcessWorkingSetSize(nProc,-1,-1)
*EOFunct ReduceMemory()
this function created by Bernard Bout
Saturday, July 19, 2008
Reduce Memory Usage in VFP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment