I am getting an application as I selected the image from the photo library which of 696 kb at that time I am getting level 1 and level 2 warnings and application is terminated because of the crash.The Crash I got is
Program received signal: “0”. D开发者_运维问答ata Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
For this I want to handle this crash with out terminating the app and to show it with an alert.
Any Suggestion's??
Thanks to all, Monish.
Your crash is likely due to the system killing your app because it exceeded its memory quota. The message you are reporting about Data Formatters is from the debugger, and does not say much.
What you should do is define your didReceiveMemoryWarning
method and try to recover as much memory as possible when your get the warning. Take a look at this S.O. topic for some hints and of course read Apple docs about it (Memory Management section).
Also inspect your app for memory leaks and improper memory usage patterns, like over-retaining.
There is not much you can do if iOS kills your app because of excessive memory usage. Anyway, you could display an alert in didReceiveMemoryWarning, so the user is warned that the app might crash any time soon (but you will show it several times before actually crashing).
精彩评论