ZipArchive questions & answers

The ZipArchive library adds ZIP compression functionality to your software
R
Question by R. Weiglhofer
233 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

A free open-source file archiver that supports a wide range of formats.

Express Zip File Compression
rating

Compress, decompress, manage, encrypt, and split your files.

Ashampoo ZIP Pro
rating

Powerful file compression utility.