Reputation:
My app crash on ipod 3g and in crash reporter file the name of crash file is "low memory ..." does this crash because of low memory or this name is fake ? What should i do to solve it ?
Upvotes: 1
Views: 992
Reputation: 21999
This is definitely not a fake name, and to debug you should first use the Instruments
app provided with xcode and specifically look at the 'Allocations' and 'Leaks' instruments from the library.
Run these on your app and it will help you to identify how and where your code is leaking so much memory that it causes the OS to kill it.
There's several ways you can reduce memory usage in a basic app, here's a couple of generic ones:
alloc
Upvotes: 1
Reputation: 94763
This is not a fake name. First thing you should do is run the "leaks" performance tool on your app to see if you are leaking memory. This is most likely the problem, otherwise you are using too much memory and you need to find a way to do what you want with less memory.
Help with running the leaks program: Memory leak detection tools
Upvotes: 1