• 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: How to track down a double release?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: How to track down a double release? (From: Sascha Matzke <email@hidden>)

  • Prev by Date: Re: Restraining window movement + gridding
  • Next by Date: RE: How to track down a double release?
  • Previous by thread: Re: How to track down a double release?
  • Next by thread: RE: How to track down a double release?
  • Index(es):
    • Date
    • Thread