"Did you forget to nest alloc and init?"
"Did you forget to nest alloc and init?"
- Subject: "Did you forget to nest alloc and init?"
- From: Tom Harrington <email@hidden>
- Date: Mon, 5 Dec 2005 17:13:05 -0700
I'm getting a message from gdb, in the console window, which reads:
"Did you forget to nest alloc and init?"
As far as I can tell, the answer is "no" (every +alloc call is nested
with a corresponding -init of some kind), and I'm not seeing any
behavior that suggests memory-management trouble. But the message
makes me wonder what gdb is seeing, and why it doesn't want to give me
any details about it.
The message generally appears on the first like of a "for" loop, i.e.
the standard "for(i=0; i<count; i++)", so tracking down when the
message appears is not helpful. And since the message is not all that
informative, I'm not sure what to make of it.
I'm working with a lot of managed objects, but all of them are created
with NSEntityDescription's
insertNewObjectForEntityForName:inManagedObjectContext:, so I don't
think that's related.
What is gdb trying to tell me here? The message seems clear enough,
but doesn't give me enough information to actually do anything about
it.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
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