Re: Crash with ARC enabled on Xcode 6.1
Re: Crash with ARC enabled on Xcode 6.1
- Subject: Re: Crash with ARC enabled on Xcode 6.1
- From: "Glenn L. Austin" <email@hidden>
- Date: Fri, 24 Oct 2014 14:10:20 -0700
> On Oct 24, 2014, at 11:44 AM, Beinan Li <email@hidden> wrote:
>
> BTW, simply changing the offending dictionary syntax to using the old API
> instead of the literals didn't help.
> I really had to abandon the singleton idea for the C++ wrapper object.
Static objects -- of any kind -- can lead to hard-to-diagnose problems.
While it's not *necessarily* a bad idea to have objects allocated at launch time, it does lead to slower launch times, lack of control over initialization (and destruction) order, and often significant increases in memory usage at launch time.
--
Glenn L. Austin, Computer Wizard and Race Car Driver <><
<http://www.austinsoft.com>
_______________________________________________
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