English 中文(简体)
为什么我在向非洲排雷中心迁移后完全了解记忆的泄漏?
原标题:Why is my app full of memory leaks after migrating to ARC?

在利用移民工具向阿农发委提出我的意见并解决所有未决问题之后,分配工具中的快速测试显示,相对而言,我所做的许多事情是漏掉记忆<>/strong>。

移民人数相当高,移民需要2个小时才能完成(包括检查我所做的每一项变化——所有变化都看上了罚款!)

我两次检查了所有编造旗,以确保每个档案和项目一级都真正能够做到。

此前,我曾向澳大利亚难民事务委员会迁移过,这完全是罚款。 在通过多次重复采取同样行动时,绝对不会有增长。 这是100%的无泄漏,没有放弃记忆。 它是完美的。 现在,如果明天没有,那就是一个巨大的泄漏事件。

有什么想法?

问题回答

You haven t shown any code here to highlight parts of your application that are causing objects to accumulate in memory, so it s hard to provide a specific answer to your situation. However, there are some broad suggestions that I can provide based on my experience in migrating several projects across on Mac and iOS.

, 母亲回答时,我详细描述了你仍然需要在自动参考计数下观察的若干记忆管理领域。 这里的主要关切是保留周期和核心基金会目标(或其他非目标记忆分配)。

鉴于你的申请没有积累过去重复行动记忆,而且通过澳大利亚移民委员会移民工具被明确收押,因此,与核心基金会相比,保留周期的可能性更大。 移民工具倾向于强调核心基金会的有问题的领域,在它们成为问题之前将这些地区赶上。 如何对待他们可能是骗人,但至少知道他们回去。

保持周期可以是微妙的灯泡,以跟踪情况。 寻找使用强力变量或特性而不是软弱或不安全的变量的代表们。 检查你使用区块或区级通知观察员的情况,因为它们可以提及制造这些物体的物体(特别是观察员的情况),并形成周期。 对物体的检查进一步缩小了导航等级,而这种等级使用强硬的参照点比越高。

利用仪器追踪通过莱卡和分配工具积累的具体物体。 在后一种情况下,在多次行动之间使用蒸汽,以发现在每张通行证之后制造和仍然活着的物体。 你也应当能够确定这些物体的分布地点,希望能够回头看错出什么。

The Leaks instrument has a new retain cycles detector, which can be seen by going to the lower panel and changing the "Leaks" popup to "Cycles & Roots". This doesn t catch everything, but it can help.

我现在把关于澳门和西里的多个项目移至阿法索中心,包括正在使用GC的Mac应用程序,在每一种情况下,申请都比较好。 这一过程暴露了我多年来在记忆管理中错失的ug,平均削减了我项目代码的约3%,并导致我以前收集的垃圾收集的Mac应用程序(我没有基准我的SOS,但我没有基准)。





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...