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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to