Re: NSZombies
Re: NSZombies
- Subject: Re: NSZombies
- From: Brent Gulanowski <email@hidden>
- Date: Wed, 15 Jan 2003 12:17:45 -0500
On Tuesday, January 14, 2003, at 02:32 PM, The Amazing Llama wrote:
>
Is this stiff the case? I'm having autorelease errors with some of my
>
code that uses NSArrays of NSNumbers, and Zombies aren't breaking
>
before I get EXC_BAD_ACCESS, so I'm guessing yes.
>
>
Interestingly, if I run the program, I get a message:
>
_NSAutoreleaseFreedObject(): release of previously deallocated object
>
(0x1adb810) ignored
>
But this does not appear when I'm debugging.
>
>
If it is, how do I go about finding what in the world the object is
>
that's being messages while dead? The only thing I can think of is to
>
create a wrapper class that passes all messages to the wrapped
>
NSNumber, making sure that all other functionality still works. But
>
that doesn't sound like a heck of a lot of fun any ideas?
>
Usually extra releases of array-held objects come when the program
releases the object independently of releasing the array, which itself
releases the held objects. The autorelease which is causing the error
is probably coming from the array object.
I would take a break from coding and meditate on the design of the
program. It's unlikely you are encountering a framework bug, so I
suggest that a good high-level consideration will reveal your problem
more successfully than chasing through lines of code.
Brent Gulanowski
--
Mac game development news and discussion
http://www.idevgames.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >NSZombies (From: The Amazing Llama <email@hidden>) |