I use Craig's VFPCompression a lot, it is brilliant.
Once in a while though, after adding a file to a zip, VFP 'forgets' the ZipOpen() and ZipClose() procedures.
So I get an error and my zip file is lost. The error looks like this: Nature: File 'zipclose.prg' does not exist.
I'm trying this just now - and it seems to work, but is there a better way?
The REDUCEMEMORY() function is a simple call (and may not even be necessary).
Regards
Griff
Keep [Smile]ing
Once in a while though, after adding a file to a zip, VFP 'forgets' the ZipOpen() and ZipClose() procedures.
So I get an error and my zip file is lost. The error looks like this: Nature: File 'zipclose.prg' does not exist.
I'm trying this just now - and it seems to work, but is there a better way?
Code:
** just after adding a file
REDUCEMEMORY()
SET LIBRARY TO (m.WHEREAMI+"VFPCOMPRESSION.FLL")
ZIPCLOSE()
The REDUCEMEMORY() function is a simple call (and may not even be necessary).
Code:
FUNCTION REDUCEMEMORY
PRIVATE NPROC,BB
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)
CLEAR DLLS SETPROCESSWORKINGSETSIZE
CLEAR DLLS GETCURRENTPROCESS
RETURN(.T.)
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.