对象 0xb50dd20 的错误:双重释放

发布于 2024-09-30 05:36:07 字数 299 浏览 0 评论 0原文

有熟悉问题的人吗。我已阅读这篇帖子,但是我很难提供代码我不知道错误源自代码中的何处。有人有什么想法吗?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抠脚大汉 2024-10-07 05:36:07

按照调试器告诉您的操作:在 malloc_error_break 上设置断点。

运行→管理断点→​​添加符号断点。

Do as the debugger tells you: set a breakpoint on malloc_error_break.

Run → Manage Breakpoints → Add Symbolic Breakpoint.

撩发小公举 2024-10-07 05:36:07

您释放了一个与您无关的对象...
关于这个主题有很多话题。

总而言之,您必须仅释放(或自动释放)您已分配、保留或复制的对象

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文