应用程序 '' 异常退出,信号 11:分段错误:11
Application '' exited abnormally with signal 11: Segmentation fault: 11
导致这种情况的问题可能是什么?
What might the problem that causes this be?
当你的程序试图访问一个不再存在的对象的内存位置时,会发生这些错误,该对象在应用程序生命周期的某个早期阶段已经拥有它的内存被释放回堆中.
These errors occur when your program tries to access the memory location of an object that no longer exists, an object which at some earlier point in the application's lifetime has had its memory released back into the heap.
如果您可以通过使用明智的注释或更好的调试器来跟踪崩溃时正在访问哪个变量,那么您可能更容易修复错误.
If you can track down which variable is being accessed at the time of the crash, through the use of judicious comments or, better still, a debugger, then you will have a potentially easier time fixing the bugs.
同时,重新阅读苹果优秀的内存管理指南,它对内存管理问题进行了更详细的讨论,超出了此评论字段的范围.
In the meantime, re-read Apple's excellent Memory Management guide, which goes into memory management issues in greater detail than can fit into this comment field.
这篇关于应用程序 '' 异常退出,信号 11:分段错误:11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!