Garbage collector related crash
Garbage collector related crash
- Subject: Garbage collector related crash
- From: Chris Idou <email@hidden>
- Date: Fri, 8 May 2009 00:47:51 -0700 (PDT)
I've got an object that holds onto a CF ref:
mdref= MDItemCreate(nil, (CFStringRef)path);
[NSMakeCollectable(mdref) autorelease];
I think I'm doing the right thing in the class declaration:
@interface MetadataItem : NSObject {
__strongMDItemRefmdref;
@end
But every now and then:
CFTypeRefres = MDItemCopyAttribute(mdref, (CFStringRef)key);
this makes it crash horribly. It's got to have something to do with garbage collection, but it seems like I'm doing things right. Any thoughts?
_______________________________________________
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