• 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
CFCopyLocalizedString crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFCopyLocalizedString crash


  • Subject: CFCopyLocalizedString crash
  • From: Steve Mills <email@hidden>
  • Date: Mon, 2 Feb 2004 19:09:18 -0600

I use CFCopyLocalizedString all over the place to load strings. Works great. One beta tester said my app crashes as soon as he launches it. I tried running my app on my old G3 with 10.3.3 installed and it crashes when the pref loading code calls CFCopyLocalizedString(CFSTR("PrefsFileName"), nil); What could be wrong with that? Here's a hunk of crash.log:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 <<00000000>> 0x00000000 0 + 0
1 com.apple.CoreFoundation 0x901b4704 CFBundleCopyLocalizedString + 0x9c
2 com.ArmpitStudios.ImageChest 0x00046dd4 cPrefs::LoadPrefs() + 0xcc (cPrefs.cpp:118)


Hmm, thinking that my passing nil as the 2nd parm might be causing the crash, I changed it to "", then to "PrefsFileName". Neither make it work. If I debug on the G3, the stack looks like this when I get the bad access:

0 ??
1 CFDictionaryGetValue
2 CFBundleCopyLocalizedString
3 cPrefs::LoadPrefs()
...

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: CFCopyLocalizedString crash
      • From: Kevin Grant <email@hidden>
  • Prev by Date: Re: -fast destroys ppc_intrinsic functions
  • Next by Date: Re: Java 1.4.2 Dev Update?
  • Previous by thread: Re: -fast destroys ppc_intrinsic functions
  • Next by thread: Re: CFCopyLocalizedString crash
  • Index(es):
    • Date
    • Thread