• 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: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project


  • Subject: Re: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
  • From: Roland Torres <email@hidden>
  • Date: Fri, 31 Mar 2006 17:32:06 -0800

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
      • From: Steve Christensen <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>)

  • Prev by Date: Re: extern "C" and global variables
  • Next by Date: File not found
  • Previous by thread: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
  • Next by thread: Re: SOLVED: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
  • Index(es):
    • Date
    • Thread