Page 1 of 3
PBZip Beta
Posted: Fri Aug 22, 2003 5:14 pm
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]
Hello
Posted: Fri Aug 22, 2003 5:43 pm
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.
Posted: Fri Aug 22, 2003 5:48 pm
by spangly
Does it work OK if you comment out the ZipClose() function?
the code is a bit experimental, it will improve with time.
re
Posted: Fri Aug 22, 2003 7:09 pm
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.
Posted: Fri Aug 22, 2003 7:33 pm
by Denis
Hi spangly,
thanks a lot for your lib.
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.
Denis
Re: re
Posted: Fri Aug 22, 2003 8:18 pm
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
Posted: Fri Aug 22, 2003 9:54 pm
by Num3
Excelent!
Works just fine here, no bugs or crashes!
Can't wait until it zip too
Keep it up...
Posted: Sat Aug 23, 2003 9:08 am
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
Denis
I found when !
Posted: Sat Aug 23, 2003 9:48 am
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.
Re: I found when !
Posted: Sat Aug 23, 2003 11:55 am
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.
Posted: Sat Aug 23, 2003 12:30 pm
by Num3
Just zipped over 350Mb into a backup file...
I tested the extraction with your code was very very fast!

Posted: Sat Aug 23, 2003 1:02 pm
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

Posted: Sat Aug 23, 2003 2:28 pm
by spangly
New version posted to my site, fixes the single file in zip problem and adds 2 new functions
ZipFindFile
ZipExtractFileName
enjoy...
Posted: Sat Aug 23, 2003 2:32 pm
by Inner
Neat, how about a list function

Posted: Sat Aug 23, 2003 2:35 pm
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)