• 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: Runs on PPC, crashes on Intel: Steve was right
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runs on PPC, crashes on Intel: Steve was right


  • Subject: Re: Runs on PPC, crashes on Intel: Steve was right
  • From: "Robert J. Lang" <email@hidden>
  • Date: Sun, 26 Feb 2006 11:51:40 -0800
  • Thread-topic: Runs on PPC, crashes on Intel: Steve was right

Although the crashing code was indeed called in main(), replacing all static
non-POD variables with delayed initialization (static vbls inside of
accessor functions) fixed the problem, so that was it. Thanks!

Robert

on 2/24/06 5:44 PM, Robert J. Lang at email@hidden wrote:

> No, this code is called within main(), so it's after static initializers.
>
> on 2/24/06 3:26 PM, Steve Checkoway at email@hidden wrote:
>
>>
>> On Feb 24, 2006, at 2:36 PM, Robert J. Lang wrote:
>>
>>>   extern stringstream dbgPreCleanupStr;
>>>   dbgPreCleanupStr.str("");
>>>
>>> which looks like a perfectly innocuous, legal call (and indeed, if
>>> I build a
>>> small test app that includes this call, it compiles and runs on
>>> Intel).
>>>
>>> (stringstream dbgPreCleanupStr is a static variable that was
>>> initialized
>>> with the default ctor elsewhere.)
>>>
>>> And, as I said, the app runs fine on PPC.
>>
>> This looks like a case where you are running into problems with
>> initializer order. Is this code being called in another ctor of a
>> static object?
>>
>> - Steve
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Runs on PPC, crashes on Intel (From: "Robert J. Lang" <email@hidden>)

  • Prev by Date: Re: 10.3 for PPC but 10.4.1 for Intel, how?
  • Next by Date: Re: 10.3 for PPC but 10.4.1 for Intel, how?
  • Previous by thread: Re: Runs on PPC, crashes on Intel
  • Next by thread: Minor but amazingly annoying bug: text coloring
  • Index(es):
    • Date
    • Thread