对象 0xb50dd20 的错误:双重释放
有熟悉问题的人吗。我已阅读这篇帖子,但是我很难提供代码我不知道错误源自代码中的何处。有人有什么想法吗?
Name(9369,0xa09cd500) malloc: * 对象 0xb50dd20 错误:双重释放 *在malloc_error_break中设置断点进行调试
Is anyone familiar with the problem. I have read this post however its hard for me to provide code when I don't have any idea where in the code the error originates. Any one have any ideas?
Name(9369,0xa09cd500) malloc: * error for object 0xb50dd20: double free
* set a breakpoint in malloc_error_break to debug
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
按照调试器告诉您的操作:在
malloc_error_break
上设置断点。Do as the debugger tells you: set a breakpoint on
malloc_error_break
.您释放了一个与您无关的对象...
关于这个主题有很多话题。
总而言之,您必须仅释放(或自动释放)您已分配、保留或复制的对象
You have release an object that you are not responsible...
there was many thread on this subject.
To summarized, you have to release (or autorelease) only object you have alloc, retain or copy