• 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: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??


  • Subject: Re: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??
  • From: Andy Lee <email@hidden>
  • Date: Sat, 1 Oct 2005 20:03:22 -0400

On Oct 1, 2005, at 7:31 PM, Jonathan del Strother wrote:
Selector 'release' sent to dealloced instance 0x8bb85b0 of class NSDeviceRGBColor.

This occurs in the application's normal autorelease pool.
What's particularly odd about it is that there is nowhere where I do any of my own memory management on an NSColor - I'm relying entirely on class methods returning autoreleased objects. I don't call retain, release, or autorelease on an NSColor in this program.

Are you able to pinpoint the line of code where the offending - release message is sent? (I haven't used zombie mode much -- if it throws exceptions, you could set a breakpoint using "br [NSException raise]" in the debugger and that should show you where it's happening.) If it's happening on an [x release] in your own code, it's possible that x is still pointing to a block of memory that earlier got dealloc'ed. This would suggest that you're over- releasing x. targetRGB just happened to occupy that area of memory later in the course of events.


--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??
      • From: Jonathan del Strother <email@hidden>
References: 
 >Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ?? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Reading all data before the NSTask terminates, synchronizing notifications
  • Next by Date: Re: NSTextField eating Escape [Solved]
  • Previous by thread: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??
  • Next by thread: Re: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??
  • Index(es):
    • Date
    • Thread