Re: Selector 'release' sent to dealloced instance of class NSDeviceRGBColor ??
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