PBZip Beta

Developed or developing a new product in PureBasic? Tell the world about it.
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

PBZip Beta

Post by spangly »

For all those that have been wanting to use zip files from Pure basic, run over to my site, and grab the PBZip library....

http://spangly.purebasic.org/

It's early beta and can only extract files at the moment.[/url]
DominiqueB
Enthusiast
Enthusiast
Posts: 103
Joined: Fri Apr 25, 2003 4:00 pm
Location: France

Hello

Post by DominiqueB »

Sorry, the extraction completed ok but the ZipClose() seems to crash !
Under xp pro, never ended loop !

Thank's for your work.

Dominique.
Dominique

Windows 10 64bits. Pure basic 32bits
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

Post by spangly »

Does it work OK if you comment out the ZipClose() function?

the code is a bit experimental, it will improve with time.
DominiqueB
Enthusiast
Enthusiast
Posts: 103
Joined: Fri Apr 25, 2003 4:00 pm
Location: France

re

Post by DominiqueB »

Yes, all seems to be ok if i comment the ZipClose() call !
But won't it loose some ressources if not used ???

Thank's.
Dominique.
Dominique

Windows 10 64bits. Pure basic 32bits
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Post by Denis »

Hi spangly,

thanks a lot for your lib. :wink:
I tested it under Win98 SE and all update and your exemple works fine with a zip file. Correctly extracted. I will compare your extracted files with winzip extracted files and i give you the result.

Thanks again. :D


Denis
A+
Denis
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

Re: re

Post by spangly »

DominiqueB wrote:Yes, all seems to be ok if i comment the ZipClose() call !
But won't it loose some ressources if not used ???

Thank's.
Dominique.
yes it will lose some resources, I just needed to know if it was the ZipClose() function that caused the crash, does it do it for all zip files, contact me through ICQ or E-Mail and I'll try and sort the problem out
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Excelent!

Works just fine here, no bugs or crashes!

Can't wait until it zip too :)

Keep it up...
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Post by Denis »

Spangly,

i have compared extracted files with your lib with those extracted by winzip for about 10 files inside zip file, and all are the same, no problems under WIN98 SE.


Nice work :wink:


Denis
A+
Denis
DominiqueB
Enthusiast
Enthusiast
Posts: 103
Joined: Fri Apr 25, 2003 4:00 pm
Location: France

I found when !

Post by DominiqueB »

In fact after testing i feel that the prob occur only when the zip contain only one file !
I tryed with a multi-files zip and it's ok...

Hope it will help !

Dominique.
Dominique

Windows 10 64bits. Pure basic 32bits
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

Re: I found when !

Post by spangly »

DominiqueB wrote:In fact after testing i feel that the prob occur only when the zip contain only one file !
I tryed with a multi-files zip and it's ok...

Hope it will help !

Dominique.
thanks for that, I know what the problem is, it will be fixed today.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Just zipped over 350Mb into a backup file...

I tested the extraction with your code was very very fast! :lol:
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

Post by spangly »

It's a good job I didn't go with my first idea of loading the whole zip into memory before parsing it :o
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

Post by spangly »

New version posted to my site, fixes the single file in zip problem and adds 2 new functions

ZipFindFile
ZipExtractFileName

enjoy...
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Neat, how about a list function :)
spangly
User
User
Posts: 54
Joined: Mon Apr 28, 2003 8:26 pm
Contact:

Post by spangly »

how would you want a list function to work?

You can already make a list of files, using a For : Next loop and ZipGetFileName(filenumber)
Post Reply