-[Foo class]: 消息发送到 [super dealloc] 上的释放实例 [英] -[Foo class]: message sent to deallocated instance on [super dealloc]

查看:49
本文介绍了-[Foo class]: 消息发送到 [super dealloc] 上的释放实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的班级Foo:

[...]
- (void)dealloc
{
    NSLog(@"Foo is being dealloced!");
    [_property1 release];
    [_property2 release];
    [super dealloc];
}
[...]

我在 [super dealloc] 上收到 -[Foo class]: message sent to deallocated instance.

Foo 继承自 NSObject.我还没有使用ARC.在我们继续使用 ARC 之前,必须完成这项工作.

Foo inherits from NSObject. I'm not using ARC yet. Gotta get this done before we move on to ARC.

任何可能导致这种情况的想法?

Any ideas what could cause that?

推荐答案

我刚刚遇到了同样的问题,并在停用 Zombie Objects 后解决了它.但我绝对没有关于它为什么有帮助的技术解释.

I just had the same problem, and resolved it when i deactivated Zombie Objects. But i absolutely have no technical explanation of why it helped.

这篇关于-[Foo class]: 消息发送到 [super dealloc] 上的释放实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆