ZipArchive questions & answers

The ZipArchive library adds ZIP compression functionality to your software
R
Question by R. Weiglhofer
173 views
December 4, 2015

We have an embedded real time system (Win-API compatible) with very limited memory (256) and with an different heap management. We discovered a problem with memory fragmentation. The system loses up to 4MB available memory for each newly created archive. We tried different buffer sizes without any success (SetAdvanced()). How can we avoid memory fragmentation while using the ZipArchive library?


ZipArchive uses all the available memory during closing segmented archives without throwing a bad_alloc exception. The size of the archives is up to 2GB. Why does ZipArchive reserves all memory for closing archives? How can we avoid this? Is there a set-method for limiting the memory usage? We also tried to set different commit modes without any success, the behavior is the same.

A
Answer by Alex Urbach

The developers have a big API documentation page and examples on how the program can be used in various situations. I recommend that you use the link posted below to access the pages with the information. You can check the examples to see how to implement the given ideas and solution to your business and needs.

See more questions & answers

Ask a question about ZipArchive

Alternative downloads

7-Zip
Free
rating

Pack and unpack the most common archive file formats for free.

Express Zip File Compression
rating

Create, edit, encrypt, split, manage, and convert ZIP archives.

Ashampoo ZIP Pro
rating

Powerful file compression utility.