问题描述
在我的应用程序运行时的某个(一致)点,我一直得到xcode错误消息
In a certain (consistent) point when my app is running, I consistently get the xcode error message
我找不到导致错误的代码,但我可以告诉错误附近的代码(使用断点)。
I cannot find the code causing the error, but I can tell what code is near the error (using breakpoints).
在实施
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
UITableViewDataSource
委托方法。我可以确认它返回了一个有效的 UITableViewCell
,但我认为解释和发布整个方法会浪费你的时间。但是,我怀疑它可能是由快速,大量的内存分配造成的。
UITableViewDataSource
delegate method. I can confirm that it is returning a valid UITableViewCell
, but I think that explaining and posting that entire method would be a waste of your time. However, I suspect it might be caused by a rapid, massive allocation of memory.
它肯定说因内存错误终止
,而不是内存压力。
It definitely says Terminated due to memory error
, not memory pressure.
我想知道什么是消息的真正含义。另外,有没有办法调试此消息?没有生成崩溃报告。
I would like to know what is message really means. Also, is there any way to debug this message? No crash report is generated.
我正在使用 ARC 和iOS 7。
I am using ARC and iOS 7.
推荐答案
我收到此错误,无法理解错误。
I was getting this error and could not understand what was wrong.
经过一番搜索,我发现我忘了禁用zombies。
After some searching I found out that i forgot to disable zombies.
要禁用,请执行以下操作:
To disable do the following:
这篇关于是否可以调试“由于内存错误而终止”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!