Re: iOS Core Data property getting released unexpectedly
Re: iOS Core Data property getting released unexpectedly
- Subject: Re: iOS Core Data property getting released unexpectedly
- From: Rick Mann <email@hidden>
- Date: Fri, 20 Aug 2010 22:08:36 -0700
It's only ever assigned in one place, and inspection of that code shows that the original string it's assigned from is autoreleased. Everywhere else it is referenced, it is read (passed in to -[stringWithFormat:] as one of the arguments, always with %@ as the format specifier).
I'll try Instruments.
On Aug 20, 2010, at 22:00:04, Joar Wingfors wrote:
>
> On 20 aug 2010, at 18.50, Rick Mann wrote:
>
>> I have a Core Data entity with an associated class file and a bunch of dynamic properties defined. One of them is:
>>
>> @property (nonatomic, copy) NSString* urlName;
>>
>> For some reason, every now and again when my code goes to access this property, it throws an exception for accessing a zombie. The containing object seems fine, and the other properties seem fine. NSZombieEnabled is YES.
>
>
> The strings is probably over-released from somewhere else - In other words, not a bug with your property. If you can reproduce the issue, you can use Instruments to track all calls to retain / release / autorelease, etc., allowing you to figure out where the erroneous call to release / autorelease comes from.
>
> j o a r
>
>
_______________________________________________
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