Burak
Burak

Reputation: 5764

Memory Warning just in the beginning of the application

I am getting continous Memory Warnings just in the beginning of the application. What is the best way to find out where am I wrong? In the Leaks instrument, I cannot see anything wrong.

enter image description here

This is the screenshot from a generation. enter image description here

Here I started to play a video. ImageIO_PNG_Data can be that? enter image description here

Upvotes: 1

Views: 137

Answers (1)

Rob
Rob

Reputation: 437632

So you should use Allocations tool using "Heapshots"/"Generations" to look at what objects have been allocated and not released. (Not everything shows up as a "leak".) It could be that your app has strong reference cycles. Or it could be that your app is simply extravagant in its use of memory (e.g. maintaining arrays of images or the like). It's impossible for us to say on the basis of the information provided.

I'd suggest watching WWDC 2012 video iOS App Performance: Memory, which describes types of memory considerations and illustrates the use of Instruments to identify memory issues.

Upvotes: 1

Related Questions