问题描述
我必须在 SIGKILL
, SIGABRT
, Signal-0
异常提出。
请通过异常处理来建议如何处理上述信号。
提前感谢
具有java和C#背景的开发人员必须在iOS中进行异常处理。苹果有一些非常好的API来解决已知的错误,但程序应该是免费的(我知道是困难的)。 Sigabrt通常发生在你释放一个对象时,SIGKILL通常发生在系统由于缺少内存而杀死你的应用程序时。所以,我建议你阅读。此外,您可以通过和。 Apple有一个类定义为。
还要提高您的接受率。
祝你好运。
I have to catch the exception when SIGKILL
, SIGABRT
, Signal-0
exceptions are raised.
Please Suggest how to handle the above Signals through Exception handling.
Can you please suggest me any sample code to do this?
Thanks in advance.
developers with java and C# background are bound to go for exception handling in iOS. Apple has some really good API's to solve the known errors but the program should be made exception free(which i know is difficult). Sigabrt usually occurs when u over release a object and SIGKILL usually occurs when the systems kills your app due to lack of memory. So, i suggest you to read the memory management guide by apple . Also, you can go through this link and this. . Apple has a class defined for exception handling - NSException.
also TRY TO IMPROVE YOUR ACCEPTANCE RATE.
Good luck.
这篇关于如何通过iPhone编程中的异常处理处理SIGKILL,SIGABRT,Signal-0异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!