• 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: ObjectAlloc and objects that should have been released
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjectAlloc and objects that should have been released


  • Subject: Re: ObjectAlloc and objects that should have been released
  • From: Peter N Lewis <email@hidden>
  • Date: Sat, 25 Apr 2009 10:07:34 +0800

On 25/04/2009, at 8:28 , Miles wrote:
I just mean that I'm adding some labels and images to the view. I have
quadruple checked that they are all being released, but I must be
overlooking something.

I doubt its your issue, but I recently had a problem like this that took me far too long to track down.


The debugging technique I used was to override retain/release/ autorelease and dealloc and have them just call NSLog and super, then set a breakpoint on each, add a backtrace "bt" debugging command and set them to auto-continue.

Eventually, after much hair pulling I tracked it down to my removeFromSuperview override neglecting to call super - ouch!

But one technique for finding this might be to make a trivial subclass of UIImage that does the above and use it for logo.

One other possibility would be - does UIImage cache images created with initWithContentsOfFile? The tehcnique above might tell you if thats what is happening, because you should see UIImage system code adding it to an array/dictiuonary/set and not releasing it later.

Enjoy,
   Peter.

--
     Run macros from your iPhone with Keyboard Maestro Control!
         or take a break with Derzle for your iPhone

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
Aragom Space War <http://www.stairways.com/iphone/aragom> Don't get killed!
Derzle <http://www.stairways.com/iphone/derzle> Enjoy a relaxing puzzle.
<http://www.stairways.com/> <http://download.stairways.com/>





_______________________________________________

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


  • Follow-Ups:
    • Re: ObjectAlloc and objects that should have been released
      • From: Miles <email@hidden>
References: 
 >ObjectAlloc and objects that should have been released (From: Miles <email@hidden>)
 >Re: ObjectAlloc and objects that should have been released (From: Peter N Lewis <email@hidden>)
 >Re: ObjectAlloc and objects that should have been released (From: Miles <email@hidden>)
 >Re: ObjectAlloc and objects that should have been released (From: Alexander Spohr <email@hidden>)
 >Re: ObjectAlloc and objects that should have been released (From: Miles <email@hidden>)

  • Prev by Date: parsing a string into words
  • Next by Date: Re: parsing a string into words
  • Previous by thread: Re: ObjectAlloc and objects that should have been released
  • Next by thread: Re: ObjectAlloc and objects that should have been released
  • Index(es):
    • Date
    • Thread