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

Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project


  • Subject: Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
  • From: Dieter Oberkofler <email@hidden>
  • Date: Thu, 9 Mar 2006 08:30:41 +0100

Hi Chris,
Thank you for the hint. Unfortunately this did not help.
I have found out, that the error only happens when using strings that are read from a resource file. Did anything change with resources build from a .r file.
-Dieter




On Mar 9, 2006, at 2:04 AM, Chris Espinosa wrote:

On Mar 8, 2006, at 3:54 PM, Dieter Oberkofler wrote:

Hi,
Im stuck. I've created a new XCode project instead of converting an existing 2.1 one and now when my 3rd party library calls CopyPascalStringToC a EXC_BAD_ACCESS is reported.
I have checked all of the compiler and links arguments but everything is the same. In the debugger, it seems as if the library would convert the string into itself (source and destination are the same) but according to the documentation, this should be allowed.
Thank you in advance,
-Dieter

Not if the string is a constant and is stored in a non-writeable section of the dylib.


In your target, set GCC_REUSE_STRINGS = NO (that is, uncheck the "Make Strings Read-Only" checkbox in your Code Generation settings).

Chris



_______________________________________________
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: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
      • From: Jerry <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>)

  • Prev by Date: upgrading open source software
  • Next by Date: Re: XCode not warning about deprecated functions
  • Previous by thread: Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
  • Next by thread: Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
  • Index(es):
    • Date
    • Thread