On Thu, 13 Mar 2008, Francesco Saverio Giudice wrote:

Hi Francesco,

> I need to zip / unzip some files and I'm testing hbzlib but I have found a 
> problem under BCC / WinXP (not tested yet in other environments).
> If I compress simple files it creates a valid zip file, but if I compress 
> even one only exe file (about 600kb of size) the zip  is corrupted.
> Tested either with my prgs than with myzip.prg in 
> harbour/contrib/hbzlib/tests. (running: myzip test.zip myfile.exe )
> Anyone experiences this ?

I haven't but I know what sth what can be source of such problems.
Inside XHB lib we have very old ZLIB code and if you are linking
your application also with this library then mixed functions from
original ZLIB and this library may cause problems.
Please try to build myzip but eliminate from link script any
references to XHB.LIB and check if it's still wrong. For me it
works well without any problems.

BTW we will have to remove from XHB library hbchksum.c and hbcomprs.c
because it can be source for serious problems when other code will need
full ZLIB library.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to