• 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
Garbage collector related crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Garbage collector related crash
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Outrunning the Garbage Collector
  • Next by Date: [iPhone] Grouped TableView baffling problem
  • Previous by thread: Re: Outrunning the Garbage Collector
  • Next by thread: Re: Garbage collector related crash
  • Index(es):
    • Date
    • Thread