如何通过iPhone编程中的异常处理处理SIGKILL,SIGABRT,Signal-0异常 [英] How to Handle SIGKILL,SIGABRT, Signal-0 exceptions through Exception Handling in iPhone programming

查看:232
本文介绍了如何通过iPhone编程中的异常处理处理SIGKILL,SIGABRT,Signal-0异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在 SIGKILL SIGABRT Signal-0 异常提出。



请通过异常处理来建议如何处理上述信号。



<你可以建议我任何示例代码来实现吗?



提前感谢

解决方案

具有java和C#背景的开发人员必须在iOS中进行异常处理。苹果有一些非常好的API来解决已知的错误,但程序应该是免费的(我知道是困难的)。 Sigabrt通常发生在你释放一个对象时,SIGKILL通常发生在系统由于缺少内存而杀死你的应用程序时。所以,我建议你阅读苹果的内存管理指南。此外,您可以通过此链接此。 。 Apple有一个类定义为异常处理 - NSException



还要提高您的接受率。



祝你好运。


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异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆