NSPlaceHolderString 泄漏,Instruments 没有告诉我在哪里?

发布于 2024-10-16 10:11:10 字数 847 浏览 4 评论 0原文

我最近完成了我的第一个 iPhone 应用程序,我实际上正计划提交它,并且我正在努力清除所有泄漏。然而,有一个我似乎无法找到,而且 Instruments 也没有真正帮助我。本质上,我制作了类似待办事项列表应用程序的东西(尽管这并不是很重要),每次用户删除待办事项时,仪器都会注册泄漏。

我不想进一步解释,这里有一个屏幕截图:

http://dl.dropbox.com/u/1426380/Screen%20shot%202011-02-09%20at%2021.51.09.png

所以不要告诉我泄漏的确切位置来自(就像我之前修复的泄漏一样),iInstruments 只是指向基础库中的某个位置。每次只泄漏 16B,所以这并不是真正的崩溃问题,但我只是对造成这种情况的原因感兴趣。

我很想发布一些代码,但由于我不知道泄漏源自何处,所以我不知道要发布什么。如果有人知道可能导致此问题的原因,我很乐意帮忙。

谢谢。

编辑:

这是@Moshe 要求的另一张屏幕截图。我是乐器新手,所以直到现在我才意识到正确的面板的存在!

http://dl.dropbox .com/u/1426380/Screen%20shot%202011-02-10%20at%2007.55.58.png

I've recently finished my first iPhone app that I'm actually planning to submit, and I'm trying to clear out all the leaks. However there's one that I just can't seem to track down, and Instruments isn't really helping me either. Essentially, I've made something like a to-do list app (that's not really important though) and every time a user deletes a to-do, instruments registers a leak.

Instead of me trying to explain further, here's a screenshot:

http://dl.dropbox.com/u/1426380/Screen%20shot%202011-02-09%20at%2021.51.09.png

So instead of telling my exactly where the leak is coming from (like with previous leaks I've fixed), iInstruments just points to somewhere in the foundation library. It's only leaking 16B each time, so it's not really an issue of crashing, but I'm simply interested as to what is causing this.

I would love to post some code, but since I have no idea where the leak is originating, I have no idea what to post. If someone had an insight on what might be causing this, I'd be happy to oblige.

Thanks.

EDIT:

Here's another screenshot as requested by @Moshe. I'm new to instruments so I didn't even realise that the right panel existed until now!

http://dl.dropbox.com/u/1426380/Screen%20shot%202011-02-10%20at%2007.55.58.png

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

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

发布评论

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

评论(1

吻安 2024-10-23 10:11:10

我建议运行“构建和分析”。 (在“构建”菜单中,或 + shift + A)。

如果没有返回任何内容,则可能是 Apple 框架正在泄漏。如果是这样的话,你也无能为力。

I suggest running "Build and Analyze". (In the Build Menu, or + shift + A).

If that returns nothing, it could be that an Apple framework is leaking. If that is the case, there is nothing you can do.

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