Re: [Leopard] Debugging GC
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