Re: Enabling NSZombieEnabled programatically
Re: Enabling NSZombieEnabled programatically
- Subject: Re: Enabling NSZombieEnabled programatically
- From: Quincey Morris <email@hidden>
- Date: Sun, 10 Jan 2010 04:29:55 -0800
On Jan 9, 2010, at 16:54, Graham Cox wrote:
> I'm getting something odd though. If I set NSZombieEnabled during app delegate -applicationDidFinishLaunching: method from my preference, a later deliberate over-release still causes a EXC_BAD_ACCESS. If I set it as an environment variable (Xcode launch arguments for my app) I get the zombie logged as expected. In either case I can see that NSZombieEnabled is YES, but directly setting it doesn't appear to work.
>
> Any idea what I'm doing wrong?
You might be able to search the list archives on this. I have a vague recollection (but didn't pay attention at the time) that this question came up about 3 months ago, and someone like b.bum chimed in about needing to set the global variable early in main () or before main () or something.
Given the behavior you're reporting, the answer is probably in that past thread.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden