discuss-gnustep
[Top][All Lists]
Advanced

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

Retain/Release GSArray in EOEntity


From: Gerrit Van Dyk
Subject: Retain/Release GSArray in EOEntity
Date: Fri, 14 Sep 2001 08:41:57 +0200

Hi,

EOEntity uses GSArray to keep some data (attributeUsedForFetch). 
These attributes are only set once in a GSArray using [[GSArray alloc]
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?

Regards
Gerrit van Dyk
 
-------------------------------------------------------------------------
This e-mail is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged,
proprietary to the company and protected by law. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this e-mail is strictly prohibited. Opinions, conclusions and
other information in this message that do not relate to the official
business of our company shall be understood as neither given nor endorsed by
it.



reply via email to

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