WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Zipper

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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.5bbq
The 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:   W14134
Filename:   Memory prob zipping Large No. of Files.txt
File Created: 2001:03:01:15:01:52
Last Updated: 2001:03:01:15:01:52