In an Xcode (3.1.2) Cocoa document app targeting 10.5, I read an NSString
from an XML file and store it, eventually, in a C++ struct as

NSString *fname;

This works most of the time but, sporadically, I get a BAD_ACCESS crash with
an indication that fname has become invalid.  The only explanation I have
found for this is that fname was not sufficiently retained and has been
garbage-collected.

Note: All my C++ files have a .mm extension and garbage collection is
*required*.  Thus, I have no retain/release calls at all.

Is there something more I need to do or is there some other reason why this
might be happening?

TIA.

-- 
Mike McLaughlin

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to