获取“程序接收到的信号:"SIGABRT"";在iPhone SDK中 [英] Getting "Program received signal:  “SIGABRT”" in iphone sdk

查看:47
本文介绍了获取“程序接收到的信号:"SIGABRT"";在iPhone SDK中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到此异常:

  malloc:***对象0x754cab0的错误:双重释放***在malloc_error_break中设置断点以进行调试程序接收信号:``SIGABRT''. 

我不知道为什么仅在Iphone sdk 4.0(设备和模拟器)中生成它,却不是在Iphone sdk 3.0版本(设备和模拟器)中生成.

谁能告诉我出了什么问题以便我可以更新我的应用?

解决方案

它告诉您问题是什么:完成操作后,您可能正在释放内存,这可能是通过向对象发送太多释放消息来实现的./p>

以调试模式运行,它可能会在正确的代码行立即停止.然后,追溯您对该对象的操作.

I am getting this exception:

  malloc: *** error for object 0x754cab0: double free
 *** set a breakpoint in malloc_error_break to debug
 Program received signal:  "SIGABRT".

I don't know why it was generated only in Iphone sdk 4.0 (device and simulator), but it was not generated in Iphone sdk 3.0 versions (device and simulator).

Can anyone tell me what is going wrong so that I can update my app?

解决方案

It tells you what the problem is: You are free'ing memory when it has already been done, probably by sending too many release messages to an object.

Run in debug mode and it will probably stop right away at the correct line of code. Then, trace back what you do that object.

这篇关于获取“程序接收到的信号:"SIGABRT"";在iPhone SDK中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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