开发者

Maximum size of zipped file to unzip in iphone sdk?

开发者 https://www.devze.com 2023-01-07 02:58 出处:网络
I have one zip file that i want unzip .the size of this file is70 MB. but application is crash when i unzip file. its run fine for 40 MB file.

I have one zip file that i want unzip .the size of this file is 70 MB. but application is crash when i unzip file. its run fine for 40 MB file. wh开发者_开发百科at i can do to unzip 70 MB file ?


Is the application crashing due to running out of memory, or are you unzipping the file on your main thread - with the larger zip file taking longer, thus blocking your app for too long? The OS will terminate your app if it doesn't respond within 5 seconds.

Most unzip libraries will buffer the zip output in small sections and write to disk many times, so shouldn't take up too much in way of RAM.

If you haven't done so already, I would perform the unzipping on a secondary thread and see if that helps at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消