rfo | 2 Sep 2008 13:36

RE: [eiffel_software] Eiffel/Zlib Wrapping

Hello Hubert!

Would you mind sending the Eiffel code (and values, from the debugger or
even a printf) that you are giving the external?
Does the zlib documentation say anything about an initializing call that
has to precede other calls?  It's common in crypto stuff, so I was
wondering if the compression lib might have such a case.
Have you tried the same call in the same circumstance with a simple C
program?  If so, how are the values different?

     R

==================================================
Roger F. Osmond
----------------------------------------
Amalasoft Corporation
273 Harwood Avenue
Littleton, MA 01460

> -------- Original Message --------
> Subject: Re: [eiffel_software] Eiffel/Zlib Wrapping
> From: Hubert Cater <hcater@...>
> Date: Mon, September 01, 2008 9:56 pm
> To: eiffel_software@...
> Hi Roger!
> Thanks for your response and as suggested I tried to change the call to 
> deflateInit_ as well as to change to the call to appropriately call 
> deflateInit with only two arguments to no avail.
> Embarrassingly I actually have little experience with C and I am not 
> even sure where to begin looking for the correct generated C code file 
(Continue reading)

Hubert Cater | 2 Sep 2008 20:44

Re: Eiffel/Zlib Wrapping

Roger I will send you the files I put together and hopefully you can see 
the obvious error that I seem to be overlooking.  Thanks again.

For the Zlib documentation, you are correct and essentially the first 
call needs to be a call to deflatInit before any compression or calls to 
deflate() are made.

As I mentioned before the example I put together as well as the 
libraries were more or less ports of the work Uwe Sander did for the ELJ 
project which had a few of its own classes and designed to work for 
either Small Eiffel or ISE.  I essentially removed any Small Eiffel and 
ELJ library references and put it together using only EiffelStudio 
classes as well as a few from GOBO that I didn't easily find 
replacements for.

His example appeared to follow the Zlib Usage Example documentation on 
the Zlib home pages and from his notes it was apparently successful. 
One thing I did notice was that he rebuilt the Zlib.lib file as well as 
rewrote a customized version of the zlib.h file so I suspect the 
disconnect with my version and his version is somewhere in these two 
files.  I tried to use his files but they were built with lcc and I am 
currently using the MSC compiler so it was a no go.

Anyways I will send you the files shortly,
Hubert

rfo@... wrote:
> 
> 
> Hello Hubert!
(Continue reading)


Gmane