FROM : Nick Zitzmann
DATE : Tue Jul 11 22:17:09 2006
On Jul 11, 2006, at 1:55 PM, Scott Ellsworth wrote:
> I tried the same thing with an NSString, and with CFZombieLevel (1,
> 19, 5, and a few other values based on the tech note), and all I
> got were bad access exceptions.
>
> NSString * string = [[NSString alloc] initWithFormat:@"String %d",
> 12];
> [string release];
> [string length];
>
> Should I have expected this?
Yes. Class cluster objects toll-free bridged to CoreFoundation
structures are never zombified; even with NSZombieEnabled set they
will always be released.
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Tue Jul 11 22:17:09 2006
On Jul 11, 2006, at 1:55 PM, Scott Ellsworth wrote:
> I tried the same thing with an NSString, and with CFZombieLevel (1,
> 19, 5, and a few other values based on the tech note), and all I
> got were bad access exceptions.
>
> NSString * string = [[NSString alloc] initWithFormat:@"String %d",
> 12];
> [string release];
> [string length];
>
> Should I have expected this?
Yes. Class cluster objects toll-free bridged to CoreFoundation
structures are never zombified; even with NSZombieEnabled set they
will always be released.
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Scott Ellsworth | Jul 11, 21:55 | |
| Nick Zitzmann | Jul 11, 22:17 | |
| Scott Ellsworth | Jul 11, 22:23 | |
| Chris Suter | Jul 11, 23:07 | |
| Sean McBride | Jul 11, 23:09 | |
| Sean McBride | Jul 11, 23:15 | |
| Scott Ellsworth | Jul 12, 00:00 |






Cocoa mail archive

