• 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: CoreFoundation object over-retained during finalization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreFoundation object over-retained during finalization


  • Subject: Re: CoreFoundation object over-retained during finalization
  • From: David Riggle <email@hidden>
  • Date: Sat, 12 Mar 2011 12:06:15 -0800

I've seen similar SecKeychain crashes whenever I put runtime code signing checks into my code. I suspect SecKeychain is not garbage collection safe. I've taken to doing the following to eliminate the crashes:

	[[NSGarbageCollector defaultCollector] disable];

	err = SecCodeCopySelf(...);
	err = SecCodeCopyStaticCode(...);
	err = SecRequirementCreateWithString(...);
	err = SecStaticCodeCheckValidity(...);

	CFRelease(...);
	CFRelease(...);
	CFRelease(...);

	[[NSGarbageCollector defaultCollector] enable];

You might give that a try and see if it reduces the crash reports.

Dave

_______________________________________________

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: CoreFoundation object over-retained during finalization
      • From: "email@hidden" <email@hidden>
    • Re: CoreFoundation object over-retained during finalization
      • From: Quincey Morris <email@hidden>
  • Prev by Date: setAlphaValue: and NSTextField
  • Next by Date: Re: CoreFoundation object over-retained during finalization
  • Previous by thread: Re: CoreFoundation object over-retained during finalization
  • Next by thread: Re: CoreFoundation object over-retained during finalization
  • Index(es):
    • Date
    • Thread