Hi All
To test : call it every where..
Waiting for feed back..
Thanks
Best Regards
Fafi
To test : call it every where..
Waiting for feed back..
Thanks
Best Regards
Fafi
FUNCTION MemoryFlush()
local nResult
local MemorySize := 1024*1024*1024
if nResult := SetProcess( GetCurrentProcess(), MemorySize, MemorySize*2 ) <= 0
MemorySize := 512*1024*1024
if nResult := SetProcess( GetCurrentProcess(), MemorySize, MemorySize*2 ) <= 0
MemorySize := 64*1024*1024
if nResult := SetProcess( GetCurrentProcess(), MemorySize, MemorySize*2 ) <= 0
MemorySize := 32*1024*1024
if nResult := SetProcess( GetCurrentProcess(), MemorySize, MemorySize*2 ) <= 0
nResult := SetProcess( GetCurrentProcess(), -1, -1 ) <= 0
endif
endif
endif
endif
SysRefresh()
RETURN nResult
DLL32 Function SetProcess( ;
hWnd As LONG, nMinWorkingSpace As LONG, nMaxWorkingSpace As LONG ) ;
As LONG PASCAL From "SetProcessWorkingSetSize" Lib "Kernel32.dll"
DLL32 Function GetCurrentProcess() ;
As LONG PASCAL From "GetCurrentProcess" Lib "Kernel32.dll"