On Mar 28, 2008, at 2:36 AM, Chris Hanson <[EMAIL PROTECTED]> wrote:
Yup. And they're not allocated on the heap; they're stored in the
executable It's slightly more complicated than that -- there's also
GCC's "-fno-constant-cfstrings" option, which will cause at least
CFSTR() constants (I'm not sure whether it also covers @""
constants) to be created dynamically rather than statically.
The flag does not cover @"" strings, but there's a bug that it should.
-Ken
This is important for developers of bundles which may be unloaded,
because a pointer to a constant string in an executable that's will
become a dangling pointer if that executable is unloaded.
-- Chris
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]