Solving iPhone/iPad out of memory issues

Posted by Joonas Trussmann on Stack Overflow See other posts from Stack Overflow or by Joonas Trussmann
Published on 2010-04-16T10:41:47Z Indexed on 2010/04/16 10:53 UTC
Read the original article Hit count: 360

I have a strange issue where I'm scrolling through a paged UIScrollView which displays the pages of a PDF document (using Quartz 2D and CATiledLayer). When I page through memory allocation looks fine with it going up with a few initial pages and then keeping it steady as it obviously releases the memory kept for earlier pages. Upon hitting page x (not a certain PDF page or a certain number per se) memory usage goes from a couple of megs to 308 megs and the app crashes.

So my question is: how to best try to find what's causing this? The object alloc tool in instruments shows the memory as simply going to malloc. (in huge chunks).

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about quartz