In my app i tried to create [NSData initWithContentsOfFile]. In ios4(ipod gen 3) nsdata created without error. But in ios5(ipod gen 4) application crashed. I thinks ipod 4 have 512mb of RAM while ipod 3 is 256mb, so why cannot create data.
In my app i tried to create [NSData initWithContentsOfFile]. In ios4(ipod gen 3) nsdata
Share
Just because a device has more RAM does not mean you will automatically get more RAM available in your app. iOS uses memory as efficiently as possible, and there are a number of reasons why it may crash on your iOS 5 device, for instance iOS 5 likely uses more RAM than iOS 4. Next, did you have the same amount of open/backgrounded apps running on both devices? You can also tell how much memory is free/available to your app using the Instruments. Keep an eye on that. If you run out of memory the only solution is to use less memory.