This project is read-only.

dotnetzip zipping large files in Unity

Feb 6, 2015 at 11:04 AM
Edited Feb 6, 2015 at 11:49 AM

I'm using dotnetzip in my Unity3d Project for zipping/unzipping files. I am using a code similar to below to zip some part zip files. If the files are small everything works as expected. But if these files are large(each one around 100mb) then the Unity app(exe) crashes (stop responding). I don't get any errors. But I think it's due to memory issues because it works if the files are small.
Can you please tell me how to fix this issue.
String[] filenames = { "ReadMe.txt", "c:\data\", "c:\data\", "c:\data\"};
using (ZipFile zip = new ZipFile())
{ zip.AddFiles(filenames);
zip.Save(""); }
Update - Today I tested this with the Task Manager opened, and the app becomes not responding due to CPU usage goes to 100%. Not actually due to memory as I guessed. Please let me know how to overcome this issue.