iPhone开发 - 在哪里可以获取应用程序接收的所有信号的列表以及它们的含义 [英] iPhone development- where can I get a list of all signals received by apps and what they mean

查看:114
本文介绍了iPhone开发 - 在哪里可以获取应用程序接收的所有信号的列表以及它们的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在手机进行测试时,我的应用程式会在特定时刻崩溃。控制台显示此消息

My app crashes at a particular point when testing on the phone. The console shows this message

Tue Jan 27 15:47:14 unknown SpringBoard[22] <Warning>: Application <SBApplication: 0x3f26180> com.myprof.test activate:  deactivate:  exited abnormally with signal 10: Bus error

我在哪里可以找到具有所有这些信号含义的列表?
谢谢。

Where can I find a list with the meanings of all these signals? Thanks.

编辑:
有没有办法知道为什么错误发生?根据信号手册页,信号10是总线错误(这是BTW,从错误中清除),但它是什么意思,如何删除?

Is there a way of knowing why the error occurs? according to the signal man page, signal 10 is Bus error (which is BTW, clear from the error) but what does it mean and how do I remove it?

谢谢再次

推荐答案

总线错误意味着您正在尝试访问内存, CPU无法物理访问。与分段错误相反,这意味着您正在访问不属于您的内存。无论哪种方式,你可能都有一个流浪指针。

A bus error means that you're trying to access memory that the CPU can't physically access. As opposed to a segmentation fault, which means you're accessing memory that doesn't belong to you. Either way, you probably have a stray pointer.

尝试在XCode(Guard Malloc)中使用内存分配调试器。它只会在模拟器中运行,并且减慢了很多事情,但是我发现它非常有用。

Try using the memory allocation debugger in XCode (Guard Malloc). It will only run in the simulator and slows things down a lot, but I find it very useful.

这篇关于iPhone开发 - 在哪里可以获取应用程序接收的所有信号的列表以及它们的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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