Message from debugger: Terminated due to Memory Error

When I debugging an iOS on iPhone device, sometimes the app crashes with no stack track but with only this message:


Message from debugger: Terminated due to Memory Error


What is this? Xcode memory consumption statistics shows constant graph, and does not raise dramatically.

Do you have zombie objects turned on?


Another thought would be do you have any loops creating and destroying objects?

The memory won't be released until the run loop it is in is allowed to complete or you include the code in an @autoreleasepool block.

https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAutoreleasePools.html

Message from debugger: Terminated due to Memory Error
 
 
Q