• 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
How to find autorelease bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to find autorelease bug


  • Subject: How to find autorelease bug
  • From: James Bucanek <email@hidden>
  • Date: Thu, 6 Jan 2005 22:56:45 -0700

Greetings,

I've got a basic Obj-C/NSObject question: What do I use to track down a release/autorelease bug?

My program runs just fine, until it gets to the [pool release], at which point it throws an exception.  What I'm guessing is that (somewhere) I've released something that was also autoreleased.

I tried turning on Guard Malloc.  I also tried running the program using MallocDebug and ObjectMalloc.  Neither of which seemed to be any help -- but that could because I'm not entirely clear on what they do.

Is there any straight forward technique for tracking down a double release bug?

Thanks in advance.

--
James Bucanek <mailto:email@hidden>
 _______________________________________________
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: How to find autorelease bug
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: A Question about NSFileHandle readDataOfLength:
  • Next by Date: Re: [OT] user banned from the list
  • Previous by thread: NSButton missing action invocation binding??
  • Next by thread: Re: How to find autorelease bug
  • Index(es):
    • Date
    • Thread