Trying to understand the cause of a "message sent to deallocated instance" error
Trying to understand the cause of a "message sent to deallocated instance" error
- Subject: Trying to understand the cause of a "message sent to deallocated instance" error
- From: Matt Crocker <email@hidden>
- Date: Sat, 7 Mar 2009 21:24:44 +0000
Folks,
I have recently expanded the functionality of my app, and in the
process I have caused an error to occur when the app's document window
is closed or the app is quit. The error is triggered when i call
[super dealloc], and the log reports:
*** -[MyDocument respondsToSelector:]: message sent to deallocated
instance 0x15b9d0
My problem is that I don't know how to work out which part of
MyDocument is causing the error (0x15b9d0 is the address if
MyDocument), probably due to a lack of experience.
Can anyone give me any pointers of how to proceed? I've tried a few
obvious things such as removing the "release" commands in the dealloc
method, and am loathed to start removing big chunks of code elsewhere
to see what happens...
Many thanks in advance.
Matt
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden