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
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 mails | Author | Date |
|---|---|---|
| SEBESTYÉN Gábor | Oct 18, 13:24 | |
| Frederick Cheung | Oct 18, 14:22 | |
| SEBESTYÉN Gábor | Oct 18, 20:07 | |
| Frederick Cheung | Oct 18, 20:57 | |
| SEBESTYÉN Gábor | Oct 18, 21:15 | |
| SEBESTYÉN Gábor | Oct 18, 22:36 |






Cocoa mail archive

