Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
- Subject: Re: CopyPascalStringToC generating EXC_BAD_ACCESS in new XCode project
- From: Chris Espinosa <email@hidden>
- Date: Wed, 8 Mar 2006 17:04:20 -0800
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