w2m
New Member
Posts: 27
|
Post by w2m on Nov 13, 2006 15:22:30 GMT -5
I am registered user of lite version. When ever I try to create a zip file a corrupted zipfile is created.
Win zip reports: Warning: the number of entries (16) in the central directory does not match the number of entries found (8) Error: Unsupported or invalid Zip file structure
How can I fix this problem? BDS 2006 - Delphi
Regards,
Bill
|
|
|
Post by Kevin on Nov 15, 2006 22:30:48 GMT -5
Are you using version 2.23 of VCLZip?
|
|
w2m
New Member
Posts: 27
|
Post by w2m on Nov 17, 2006 19:32:20 GMT -5
Yes... Version 2.23
it was originally used in Delphi 7 but I modified inc file so it would install in BDS 2006.
Thanks
Bill
|
|
w2m
New Member
Posts: 27
|
Post by w2m on Nov 18, 2006 18:10:17 GMT -5
Keven,
I did some more testing with your demos and I found the zip files were ok. I must have incorrectly created the zip file some how in the application.
Regards,
Bill
|
|
|
Post by jlbarnhart on Mar 22, 2007 9:49:18 GMT -5
Kevin,
I am getting the same error message using WinZip 9.0 when trying to add a file manually. I am using VCLZip 3.06. Was there ever a solution to this problem? It appears the header is reporting in WinZip twice the number of files actually zipped. I can unzip the files manually with Winzip or by using the VCLzip components.
Thanks, Jon
|
|
|
Post by Kevin on Mar 22, 2007 19:05:50 GMT -5
Try this...
Open up VCLZip.PAS. The following line will show up 4 times in VCLZip.PAS and you just need to comment out two of them:
tmpecrec.num_entries_this_disk := tmpecrec.num_entries_this_disk + 1;
Comment out the ones at line numbers 1156 and 1331. You should leave the ones at line 1627 and 2966.
Strangely, WinZip 11 doesn't see this as a problem.
Kevin
|
|
|
Post by magsys on Apr 4, 2007 12:52:04 GMT -5
I've had the same problem modifying files with WinZip 9 (don't see any point in buying a new release each month).
I can confirm that removing the two tmpecrec.num_entries_this_disk lines does appear to fix the problem and I can now delete files from a zip. I just hope it does not introduce any other problems!
Strongly recommend a 3.07 release in a few days, this bug has caused me a lot of problems.
Are there other similar fixes hidden in forum messages?
Angus
|
|
|
Post by magsys on Apr 4, 2007 13:26:22 GMT -5
This fix also solves a problem I had unzipping files created by VclZip on an embedded PC running it's own private OS but which uses Info-Zip code for unzipping.
Previously, the PC would only unzip the first file in the archive, after the directory fix it now does all the files.
Angus
|
|
|
Post by Kevin on Mar 22, 2008 8:19:54 GMT -5
FYI, This fix was incorporated into version 3.10 and version 4.
|
|
|
Post by mutu26 on Sept 4, 2011 12:27:30 GMT -5
I am registered user of lite version. When ever I try to create a zip file a corrupted zipfile is created. Win zip reports: Warning: the number of entries (16) in the central directory does not match the number of entries found (8) Error: Unsupported or invalid Zip file structure How can I fix this problem? BDS 2006 - Delphi Regards, Bill For repair crashed or deleted zip files you may use zip file recovery. It opens corrupted zip files for short time. Program works under all popular versions of Windows OS. The tool doesn't modify data during repairing.
|
|