Re: Runs on PPC, crashes on Intel
Re: Runs on PPC, crashes on Intel
- Subject: Re: Runs on PPC, crashes on Intel
- From: "Robert J. Lang" <email@hidden>
- Date: Fri, 24 Feb 2006 17:44:22 -0800
- Thread-topic: Runs on PPC, crashes on Intel
No, this code is called within main(), so it's after static initializers.
Robert
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