User (Old forums)MemberSeptember 8, 2004 at 10:09 amPost count: 23064
I am running the Xceed Zip for .NET Compact Framework 2.0 version v126.96.36.199. I am a C++ programmer trying to get into the C# realm, so please bare with me if this is a simple fix that I am just not seeing.
I was running my application when I found if I create an invalid Zip file, by just renaming a dll or another file type to a .zip, when I try to open this “invalid file” I get the following exception when the ZipArchive object is trying to reference to this invalid file:
An unhandled exception of type ‘Xceed.Zip.InvalidZipStructureException’ occurred in Xceed.Zip.dll
Additional information: The zip end header signature could not be found in the zip file.
I thought I could fix this by putting a simple try and catch around the ZipArchive, and in fact it did prevent the application from crashing a burning, but unfortunately now the OS throws an exception when I get out of my application:
An unhandled exception of type ‘System.ArgumentNullException’ occurred in Xceed.Zip.dll
On my try and catch statement I was not able to find a way to destroy the ZipArchive object. I was under the assumption garbage collection would take care of it once the object got out of scope.
Please understand that your sample file “MiniExplorer” behaves the same way. If I try to open an “invalid zip file” it will crash and burn, and if I put the try and catch it will throw the same exception after it is closed.
Could you please help me? If there is a way to destroy the ZipArchive object or another way to catch this exception that the application throws after it is done.
Please let me know.
Imported from legacy forums. Posted by bvalle (had 5174 views)User (Old forums)MemberSeptember 8, 2004 at 10:57 amPost count: 23064
Well I guess you found a bug! When an exception occurs in a ZippedFolder ctor (or its derived class ZipArchive), it causes a NullReferenceException in the Finalizer. I have filed this bug and it should be fixed within two weeks. In case you want to follow up with <mail>firstname.lastname@example.org</mail>, simply include “case 74084” in the email title.
Imported from legacy forums. Posted by Martin (had 367 views)User (Old forums)MemberSeptember 8, 2004 at 11:13 amPost count: 23064
Thank you for your prompt reply 🙂
Imported from legacy forums. Posted by bvalle (had 393 views)User (Old forums)MemberOctober 19, 2004 at 10:20 amPost count: 23064
I got the following response from support about 2 weeks ago:
The new patch packages which will include your fix should be available this Friday. Please go to the Update Center : http://www.xceedsoft.com/redirect/updates/ then to receive your fix.
I checked the latest version of the API for Zip for .Net Compact Framework, but it seems to be still on version 188.8.131.52. I tested it out on my application and I am still getting the same “An unhandled exception of type ‘System.ArgumentNullException’ occurred in Xceed.Zip.dll”
Am I doing something that is not right? I have already sent 2 e-mails to support and got no answer back. Are you guys working on this? If you are it is ok, but please just let me know.
Imported from legacy forums. Posted by bvalle (had 515 views)User (Old forums)MemberOctober 19, 2004 at 11:02 amPost count: 23064
Indeed this was a mistake on our end. You can expect to receive the .dll shortly.
Imported from legacy forums. Posted by Matt (had 660 views)User (Old forums)MemberOctober 20, 2004 at 9:40 amPost count: 23064
No problems, we are all humans after all 🙂
Just one question, not trying to be a pain or anything, but what do you mean by “shortly”? One week? Two weeks?
Imported from legacy forums. Posted by bvalle (had 5654 views)
- You must be logged in to reply to this topic.