• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to understand the cause of a "message sent to deallocated instance" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to understand the cause of a "message sent to deallocated instance" error


  • Subject: Re: Trying to understand the cause of a "message sent to deallocated instance" error
  • From: Alex Kac <email@hidden>
  • Date: Sat, 7 Mar 2009 16:04:20 -0600

Instruments. Do this:
http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/

But use the "instance 0x15b9d0" address. It works quite nicely.

On Mar 7, 2009, at 3:24 PM, Matt Crocker wrote:

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

Alex Kac - President and Founder Web Information Solutions, Inc.

"It is useless for sheep to pass a resolution in favor of vegetarianism while wolves remain of a different opinion."
-- William Randolph Inge






_______________________________________________

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


References: 
 >Trying to understand the cause of a "message sent to deallocated instance" error (From: Matt Crocker <email@hidden>)

  • Prev by Date: Re: preparing HTML email content for Mail.app like safari does
  • Next by Date: Re: Draw NSBezierPath inside a PDFPage
  • Previous by thread: Re: Trying to understand the cause of a "message sent to deallocated instance" error
  • Next by thread: Re: Trying to understand the cause of a "message sent to deallocated instance" error
  • Index(es):
    • Date
    • Thread