I have an application that issues iPhone OS for "low memory".
I passed it through the tools, and I see zero leaks, and the memory usage is about 640 kb.
Application crashes when adding objects to the screen.
Here's how it works. I have a class based on UIImageView that is very simple and adds several properties to objects. This class is used for created objects.
When the user clicks the button, a new image of this class is created and added to self.view.
After 15 objects are added, the application is thrown with a warning about low memory.
Instruments do not report significant memory usage. Even after adding 15 objects, the ALL ALLOCATIONS record never goes beyond 660 kb. Each object can be one of five images 120x120 pixels in size.
If this is not a distribution of objects or leaks, what could it be? Please tell us which directions to look for in order to find a problem.
Thanks for any help.
source
share