Re: CoreFoundation object over-retained during finalization
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