Skip navigation.
 
mlRe: Crazy CFPreferences!
FROM : SEBESTYÉN Gábor
DATE : Mon Oct 18 20:07:00 2004

>Since you create the dictionary with null callbacks it doesn't retain
>objects you add to it. I'd guess that because of this dict0 may contain
>already released (ie junk) values, from the first time the data was
>saved.

I didn't create dictionaries as you might see in the code snippet I sent.
- First I get a dict with CFPreferencesCopyAppValue(ksect, kCFPreferencesCurrentApplication);
- Then I create a mutable copy CFDictionaryCreateMutableCopy(NULL, 0, dict0);
The program crashes at this point.

Maybe you're right. In that case I don't really know how to prevent this illogic crash. I simply cannot find another way to create a dict in safe way (retained) and make the other copied to it.
If you have any idea how to solve this I would appreciate.

Best regards,

Gábor

Related mailsAuthorDate
mlCrazy CFPreferences! SEBESTYÉN Gábor Oct 18, 13:24
mlRe: Crazy CFPreferences! Frederick Cheung Oct 18, 14:22
mlRe: Crazy CFPreferences! SEBESTYÉN Gábor Oct 18, 20:07
mlRe: Crazy CFPreferences! Frederick Cheung Oct 18, 20:57
mlRe: Crazy CFPreferences! SEBESTYÉN Gábor Oct 18, 21:15
mlRe: Crazy CFPreferences! [resent] SEBESTYÉN Gábor Oct 18, 22:36