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: CFM to Mach-O Conversion Crash in CodeWarrior



Is it possible that you're doing something bad (like a memory stomp) in a global object's constructor? You could be in a messed-up state before even reaching main().
Have you tried using MallocDebug at all?



Mark D. Gerl wrote:

In the, "I've pulled out all my hair" files... HELP!

Using CodeWarrior 9.6, I've managed to get a new Mach-O target to cleanly compile and link from our Carbon CFM codebase. However, during the app initialization phase (after InitCursor()), it crashes in the Carbon framework (when calling Menu Manager code). If I change the order of things, it'll crash elsewhere (e.g., on SysBeep ()). Yet, clearly, some Carbon calls work OK (InitCursor(), UseResFile(), etc.).

I've checked my target's settings against a virgin PowerPlant Mach-O target (which works as advertised), and can't find anything different that would cause the problem. I've also checked the built Mach-O app package against the working CFM one, and can't find anything missing there either. I've even tried linking against the /System/Frameworks paths, as well as the 10.3.9 and 10.4.0u SDKs, and get the same results.

And, when I try to use the Carbon.debug variant of the framework - it'll crash in early init code, rendering that pretty much useless.

Anyone have a clue?

Thanks!
Mark

_______________________________________________
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: 
 >CFM to Mach-O Conversion Crash in CodeWarrior (From: "Mark D. Gerl" <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.