Re: How to track down a double release?
Re: How to track down a double release?
- Subject: Re: How to track down a double release?
- From: Ambroise Confetti <email@hidden>
- Date: Fri, 17 Oct 2003 00:28:29 +0200
Le jeudi, 16 oct 2003, ` 16:39 Europe/Paris, Sascha Matzke a icrit :
Quoting Brant Sears <email@hidden>:
I have a situation (totally repeatable) where my app blows up when
an autorelease pool gets cycled. It is a multi-threaded app (I don't
know that it matters.)
Try setting NSZombieEnable=YES as environment variable.
You can also set it directly as a global variable in your code (see
NSDebug.h).
(BTW, it is NSZombieEnable*d*...)
It is a good practice to always have NSZombieEnabled set in your
development builds. Just add "-DDEVELOPMENT" to "OTHER_CFLAGS" in your
development build style, then you can put something like that in your
code (as early as possible):
#ifdef DEVELOPMENT
NSZombieEnabled = YES;
#endif
(You have to #import "NSDebug.h".)
Ambroise
http://www.cellulo.info/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.