I’m creating an iPad app and I’m seeing some strange behaviour. I’m loading texture images on cube faces, each texture has size 1024x1024px.
When I work for some time over my app I’m geting memory warnings while debugging, and application crashes. The more time I work, and more debugging sessions run memory warnings are more often and in worst case memory warnings are fired every time.
When I turn off, and then turn on iPad app is working perfectly, everything is fine and there are no errors (for some period of time…).
Is it possible, that when app crashes while debugging, it doesn’t free it’s memory? And after multiple crashes iPad has so much garbage from previous leaks, that it cannot run normally?
I have finally resolved this issue 😉 it was just a memory cleaning problem in my code.
When I restarted iPad it freed some memory, but after some time it was filled again and when I was allocating a big bitmap image there was a memory warning. Then navigation controllers started to free it’s views and there were some bugs that caused memory not clean properly and finally caused application crashes.