1
Vote

Issue opening a Zip-Container

description

Hi,
 
I don't know, if this issue is already known or fixed. I'm working on some Demo-Apps for WP7 and I can't get around a specific issue.
I have a Zip-Container, which has several files in it.
The according Sourcecode snippet is:
        IsolatedStorageFileStream isoStream = IsolatedStorageFile.GetUserStoreForApplication().OpenFile("hello.zip",FileMode.Open);
        ZipFile zipFile = new ZipFile(isoStream); //Crashes App
Executing this crashes the App in that case, that it hangs and Visual Studio starts get unstable.
The error has been seen with the latest stable version (0.86.0.518).
 
Is it already fixed in the latest source?
If yes, when to expect a new stable release?
 
Sorry for bothering,
 
Cheers, Peter

comments

Sky wrote Sep 29, 2010 at 11:08 PM

no bother at all. let me take a look.

Sky wrote Sep 30, 2010 at 12:28 AM

Ok, at closer look at your snippet, the problem is clear. ZipFile and FastZip use System.IO file system routines which are not available to SL in the browser or WP7

This is only applicable for OOB SL. I suppose I should simply remove it from the WP7 build.

In the head of the source are beta implementations of ISO versions of ZipFile and FastZip. The Phone7 sample app has simple imlementation example.

After I uninstall WP7 CTP and get RTM up and running I will publish a beta release with these features, but in the meantime, you may want to pull or download the source.

wrote Sep 30, 2010 at 12:29 AM

wrote Sep 30, 2010 at 12:30 AM

PeterNowak wrote Oct 1, 2010 at 9:31 AM

Hi,

the error is still existing in the latest sourcecode.

Using this sourcecode, the app still crashes:
        IsolatedStorageFileStream isoStream = IsolatedStorageFile.GetUserStoreForApplication().OpenFile("hello.zip",FileMode.Open);
        IsolatedZipFile zipFile = new IsolatedZipFile(isoStream);
Using the following works instead:
        IsolatedZipFile zipFile = new IsolatedZipFile("hello.zip");
Cheers, Peter

Sky wrote Oct 1, 2010 at 9:31 AM

documentation issue. as in there is no documentation specific to WP7



** Closed by Sky 29.09.2010 17:30

PeterNowak wrote Oct 1, 2010 at 9:31 AM

Not completly working. Just partially.

wrote Feb 14, 2013 at 7:55 PM