• 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: Memory management with arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management with arrays


  • Subject: Re: Memory management with arrays
  • From: Adhamh Findlay <email@hidden>
  • Date: Sun, 10 Feb 2008 12:23:32 -0600

I put some useful breakpoints on http://www.cocoadev.com/index.pl?NSZombieEnabled . I found these scattered about the web and collected them onto the page.

On Feb 10, 2008, at 11:39 AM, Bill Bumgarner wrote:

On Feb 10, 2008, at 5:36 AM, Scott Andrew wrote:
True.. (late night). So basically. Put a break in bar's dealloc. See were the extra dealloc is cooming from.

Scott

There won't be an "extra dealloc" -- once dealloc'd, the object is dead. There is an extra -release coming first, but breaking on - release won't help, either as the object is dead by the time it happens.


As I said, run the app with "-NSZombieEnabled YES". This will cause a proxy to be dropped into memory in place of every dealloc'd object and said proxy will warn when messaged (because it should never be messaged).

b.bum

_______________________________________________

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

_______________________________________________

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


References: 
 >Memory management with arrays (From: Jacob Bandes-Storch <email@hidden>)
 >Re: Memory management with arrays (From: Scott Andrew <email@hidden>)
 >Re: Memory management with arrays (From: Bill Bumgarner <email@hidden>)
 >Re: Memory management with arrays (From: Scott Andrew <email@hidden>)
 >Re: Memory management with arrays (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Xcode 3.0, is it missing the Close Project menu item?
  • Next by Date: Re: Xcode 3.0, is it missing the Close Project menu item?
  • Previous by thread: Re: Memory management with arrays
  • Next by thread: NSTableView Data Binding Problem
  • Index(es):
    • Date
    • Thread