• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?


  • Subject: Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
  • From: Scott Ellsworth <email@hidden>
  • Date: Tue, 11 Jul 2006 13:23:49 -0700


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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
      • From: "Sean McBride" <email@hidden>
References: 
 >Debugging: do CFZombieLevel and objc_exception_throw() work for you? (From: Scott Ellsworth <email@hidden>)
 >Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
  • Next by Date: Data Model Design Q: Translation
  • Previous by thread: Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
  • Next by thread: Re: Debugging: do CFZombieLevel and objc_exception_throw() work for you?
  • Index(es):
    • Date
    • Thread