Memory problem zipping large number of files
Keywords: 3210: Cmd Extender: Out of memory to save result
Question:
I'm writing a utility using the WWZIP34I.DLL extender. Everything works fine until I start trying to zip a directory containing a large number of files (say >400), or restore a zip file with this many files.The backup code is:
ZipResult_STR = zZipFiles("R", BackupFileTemp_STR, "*.*", Exclusions_STR) ZipFlag_STR = StrSub(ZipResult_STR, 1, 1)The restore code is:
UnZipResult_STR = zUnZipFiles("o d", BackupFileHome_STR, "*.*", "", RestoreDIR_STR) UnZipFlag_STR = StrSub(UnZipResult_STR, 1, 1)I've also tried:
zUnZipFiles("o d", BackupFileHome_STR, "*.*", "", RestoreDIR_STR)on its own.And:
UnZipFlag_STR = StrSub( (zUnZipFiles("o d", BackupFileHome_STR, "*.*", "", RestoreDIR_STR)) ,1, 1)This is what I get:ERROR 3210: Cmd Extender: Out of memory to save result MESSAGE ZipResult_STR = zZipFiles("R", BackupFileTemp_STR, "*.*", Exclusions_STR) WinBatch 32 98B WIL Version: 2.5bbqThe third example above seems to show it is not a problem with Winbatch variables (?) but the extender itself. Do I need to do something to manage the memory?(BTW - its running on a P400/128mb/plenty HDD space)
Answer:
Download the most recently version of Winbatch and try again. In WB99A, changed memory allocation for strings to be dynamic. So you should be able to zip up as many files as you have memory for.
Article ID: W14134Filename: Memory prob zipping Large No. of Files.txt