Don't get me on the numbers, but ZLib uses by default an extra 64K to
deflate, and 32K by inflate. You can change the defalte numbers using lower
MEM_LEVEL and a lower NUM_BITS. See the ZLib docs about this.
LionScribe


"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 01:08 AM 7/28/2004, you wrote:
> >I'm trying to compress a set of text files using this library...
> >
> >I've been running into problems with files that are 32k or larger. I keep
> >getting a Z_MEM_ERROR.
> >
> >In the manual for the library it doesn't mention the fact that you can't
> >compress anything larger then 32k. Does anyone know if this is a
> >limitation? Or is it something to do with the text file.
>
> It's a ZLib memory allocation issue.  What calls are you using to compress
> your data?  Have you considered using a more stream oriented set of calls,
> rather than using a utility call that processes all the data at once?
>
> -- Ben Combee, DTS technical lead, PalmSource, Inc.
>     "Combee on Palm OS" weblog: http://palmos.combee.net/
>     Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to