Skip navigation.
 
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
FROM : Scott Ellsworth
DATE : Tue Jul 11 22:23:49 2006

On Jul 11, 2006, at 1:17 PM, Nick Zitzmann wrote:

>
> 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.


Huh - I had misunderstood <http://developer.apple.com/technotes/
tn2004/tn2124.html
>, then.  It implied to me that CFZombieLevel would 
have caught misbehaviors in CF objects, even if they were toll free 
bridged.  Of course, it contains little enough text that I was 
reading a bit more into it than strictly implied.

Doc bug filed.

Scott

Related mailsAuthorDate
mlDebugging: do CFZombieLevel and objc_exception_throw() work for you? Scott Ellsworth Jul 11, 21:55
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you? Nick Zitzmann Jul 11, 22:17
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you? Scott Ellsworth Jul 11, 22:23
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you? Chris Suter Jul 11, 23:07
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you? Sean McBride Jul 11, 23:09
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you? Sean McBride Jul 11, 23:15
mlRe: Debugging: do CFZombieLevel and objc_exception_throw() work for you? Scott Ellsworth Jul 12, 00:00