CFString发布,为什么只在ipad上?

发布于 2024-10-07 11:29:15 字数 415 浏览 0 评论 0原文


我有同样的项目,一开始它也可以在 ipad 上运行,但现在它只能在 iphone 设备上运行,而不是 ipad 设备。这是一个兼容 iphone/ipad 的项目。

可能我编辑了一些东西,但我不知道如何编辑!

DEBUG || 中返回的错误iPad DEVICE 上的 RELEASE 模式是经典的:

*** -[CFString release]: message sent to deallocated instance 0x110500

...但在 iPhone 上,一切都可以。
我无法调试,因为它只显示汇编代码,而且我不知道问题出在哪里......

这个问题是否存在?是我的问题还是ipad的问题?
这些设备上有什么不同?

谢谢,阿尔贝托。

I have the same project, that at the beginning, it worked also on ipad, but now it works only on iphone devices, not ipad ones. It's a project iphone/ipad compatibile.

Probably i edit something but i don't know how!

The returned error in DEBUG || RELEASE mode on ipad DEVICE was the classic:

*** -[CFString release]: message sent to deallocated instance 0x110500

...but on iphone, it's all ok.

I can't able to debugging because it show me only assembly code and i don't know where is the issue...

Is this problem appened around? It's my problem or ipad issue?
What could be different on these devices?

thanks, alberto.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

谁人与我共长歌 2024-10-14 11:29:15

您可能在 iPhone 上链接旧版本的框架,在 iPad 上链接新版本的框架。如果旧版本无意中泄漏了字符串,则该泄漏很可能已在新版本的框架中修复。

无论如何,这最终意味着你没有正确管理你的记忆。任何时候您看到“消息发送到已释放实例”,都意味着您保留不足或过度释放某个对象。搜索此站点以了解如何使用 NSZombieEnabled(或 Instruments 中的 Zombies 工具)。这些答案将为您提供有关如何追踪错误来源的最佳信息。 :)

It's possible that you're linking against an older version of the frameworks on the iPhone and a newer version on the iPad. If the older version was inadvertently leaking a string, it's likely that the leak was fixed in a newer version of the framework.

At any case, it ultimately means that you're not managing your memory correctly. Any time you see "message sent to deallocated instance", it means you've under-retained or over-released an object. Search this site for how to use NSZombieEnabled (or the Zombies tool in Instruments). Those answers will give you the best information on how to track down the source of the bug. :)

随遇而安 2024-10-14 11:29:15

已解决。
这是一个愚蠢的 NSString 版本

现在已经修复了,但是这个问题只出现在ipad上! :) 不知道为什么!

谢谢。

Resolved.
It was a stupid NSString release.

Now is fixed, but this problem occurs only on ipad! :) don't know why!

thanks.

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