简体   繁体   English

应用程序崩溃

[英]application crashes

my application gets crashes by getting this error!!! 我的应用程序因出现此错误而崩溃!!! :( :(

objc[12723]: FREED(id): message clientID sent to freed object=0x48a23e0 objc [12723]:FREED(id):发送到已释放对象的消息clientID = 0x48a23e0

may i know the reason for this!! 我可以知道原因吗!

Thanks 谢谢

The reason is written... 原因是写...

You are calling the clientID method on an object that has been freed. 您正在对已释放的对象调用clientID方法。
Maybe you forgot to retain it at some place... 也许您忘了将它保留在某个地方...

You are sending a message to an object that has been deallocated! 您正在向已释放的对象发送消息!

I recommend that you read through the Memory Management Guide from Apple. 我建议您通读Apple的《 内存管理指南》

You're sending a message to a released object. 您正在向已发布的对象发送消息。 Check your memory management. 检查您的内存管理。

Tthere's not much information in your question for us to help you but this is what is happening : 在您的问题中,没有太多信息可以帮助我们,但这是正在发生的事情:

1) You have made an object and then released it. 1)您创建了一个对象,然后释放了它。

myObject =[MyObject alloc] init];
...
[myObject release];

2) Later on you've tried to do something like 2)稍后您尝试做类似的事情

[myObject clientID];

but it's already been released so it doesn't exist anymore. 但是它已经发布了,所以不再存在。

If you edit your question and add some more code from where the crash happens we might be able to help more. 如果您编辑问题并从崩溃发生的位置添加更多代码,我们可能会提供更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM