Re: NSString becoming invalid

2009-06-11 Thread Michael Ash
On Thu, Jun 11, 2009 at 9:53 AM, McLaughlin, Michael P. wrote: > 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

NSString becoming invalid

2009-06-11 Thread McLaughlin, Michael P.
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