• 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: [Leopard] Debugging GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Leopard] Debugging GC


  • Subject: Re: [Leopard] Debugging GC
  • From: Bill Bumgarner <email@hidden>
  • Date: Mon, 29 Oct 2007 08:33:51 -0700

On Oct 29, 2007, at 4:59 AM, Pierre Bernard wrote:
I am currently working on my first GC-enabled application.

Excellent!

When I start the application I get the following console output in Xcode:

HoudahSpot2(20753,0xb0103000) malloc: free_garbage: garbage ptr = 0x105e7c0, has non-zero refcount = 1
HoudahSpot2(20753,0xb0103000) malloc: free_garbage: garbage ptr = 0x10696e0, has non-zero refcount = 1


What can I do about this? How does one debug this?

This means that something somewhere had CFRetain()'d something and not CFRelease()'d it before the collector determined that the something -- the collector is not limited to Objective-C objects -- is garbage eligible for collection. It is generally harmless.


While -retain/-release/-autorelease are no-ops under GC, CFRetain() and CFRelease() are not.

In other words, this is a bug in the Apple supplied frameworks. There is a radar tracking it and it'll be fixed.

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


  • Follow-Ups:
    • Re: [Leopard] Debugging GC
      • From: John Stiles <email@hidden>
References: 
 >[Leopard] Debugging GC (From: Pierre Bernard <email@hidden>)

  • Prev by Date: Re: Trying to delete the first char of a string?
  • Next by Date: Re: Trying to delete the first char of a string?
  • Previous by thread: Re: [Leopard] Debugging GC
  • Next by thread: Re: [Leopard] Debugging GC
  • Index(es):
    • Date
    • Thread