Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PPC -> Intel issues.



It is indeed an endian issue.  I implemented a resource flipper and everything is OK now.

Thanks everyone.

On 8/4/07, Eric Slosser < email@hidden> wrote:
Just a stab in the dark, but... what's the value of
'CSResourcesFileMapped' in your Info.plist?  If it's "true" or not
there, maybe some code is assuming it can modify the contents of a
resource?  On PPC, such resources are mapped into memory that's read-
only, and you'd get a access violation, but on Intel, you don't.  But
your changes aren't saved to disk (but you probably wouldn't want
them to be, so that's why this is such a SWAG).

Post a stack crawl or two from the crashes, that would help...


On Aug 1, 2007, at 11:34 AM, Patrick M wrote:

> I have read every scrap of information I could find on the
> migration of code from a PowerPC Mac to an Intel Mac.
>
> Endian issues have been resolved etc...  I believe I have done
> everything that needs to be done, but my Carbon DLOG resource based
> dialogs crash intermittently.
>
> The documentation says that 'some deprecated functions have byte-
> swapping issues' but that is hardly conclusive enough for me to be
> able to state this as being the problem in my case.
>
> Sometimes the dialog comes up many times before it crashes,
> sometimes it crashes the first time I try to display it (it is a
> 'Login' dialog btw). Also it crashes in a seemingly different place
> each time, although some of the more common API functions it
> crashes in are:
>
> SetDialogItemText
> SetControlValue
> ShowWindow
> ModalDialog
> DisposeDialog
>
> The stack traces for each of the crashes, say for
> SetDialogItemText, is different in each case sometimes.
>
> Is there any more definitive information on what deprecated APIs
> NEED to be updated during an Intel port of PPC code?
>
> I realize it is recommended that DLOG resources be upgraded to NIB
> files, but nowhere does it say that this is NECESSARY for Intel. Is
> it?
>
> I have some Carbon Nib GUIs and Cocoa Nib GUIs that all work fine
> without crashing, it is only the DLOG resources that crash.
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Carbon-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/carbon-dev/eric.slosser%40v-
> fx.com
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >PPC -> Intel issues. (From: "Patrick M" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.