siva
siva

Reputation: 1412

application crashes

my application gets crashes by getting this error!!! :(

objc[12723]: FREED(id): message clientID sent to freed object=0x48a23e0

may i know the reason for this!!

Thanks

Upvotes: 0

Views: 90

Answers (4)

deanWombourne
deanWombourne

Reputation: 38475

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.

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

2) Later on you've tried to do something like

[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.

Upvotes: 1

Gary
Gary

Reputation: 5732

You're sending a message to a released object. Check your memory management.

Upvotes: 1

Macmade
Macmade

Reputation: 53930

The reason is written...

You are calling the clientID method on an object that has been freed.
Maybe you forgot to retain it at some place...

Upvotes: 2

willcodejavaforfood
willcodejavaforfood

Reputation: 44053

You are sending a message to an object that has been deallocated!

I recommend that you read through the Memory Management Guide from Apple.

Upvotes: 1

Related Questions