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: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project



I notice that CopyPascalStringToC results in an Xcode build warning:

warning: 'CopyPascalStringToC' is deprecated (declared at /System/ Library/Frameworks/CoreServices.framework/Frameworks/ CarbonCore.framework/Headers/TextUtils.h:598)

I'm using GetVoiceDescription, which is not deprecated, but returns a struct with a Pascal string in it. The file Utils.h (mentioned in the diagnostic message) states that CopyPascalStringToC is available in version 10.0 and later in CoreServices.framework but deprecated in 10.4. That was short-lived.

So... what is the new function that replaces CopyPascalStringToC, p2cstrcpy, and its cousins? Or are Pascal strings finally going the way of the PPC?

Roland

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

This email sent to email@hidden
References: 
 >CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project (From: Dieter Oberkofler <email@hidden>)
 >Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project (From: Chris Espinosa <email@hidden>)
 >Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project (From: Dieter Oberkofler <email@hidden>)
 >Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project (From: Jerry <email@hidden>)
 >SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project (From: Dieter Oberkofler <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.