[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retain/Release GSArray in EOEntity

From: Richard Frith-Macdonald
Subject: Re: Retain/Release GSArray in EOEntity
Date: Fri, 14 Sep 2001 09:24:12 +0100

On Friday, September 14, 2001, at 07:41 AM, Gerrit Van Dyk wrote:


EOEntity uses GSArray to keep some data (attributeUsedForFetch).
These attributes are only set once in a GSArray using [[GSArray alloc]

You mean GCArray (in the extensions library)

initWithArray:], after this method is called the retainCount on the array is
0 and it seems like the array is then deallocated somewhere leaving the
array in an unusable state. I then added a retain to the call and the object
is now fine.

In my understanding of retain/release doing an alloc should push the
retainCount by 1. Is this a bug in GSArray or what am I doing wrong?

Your understanding is correct - perhaps there is a bug in GCArray.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]