Re: CFDictionaryCreateMutableCopy crash
Re: CFDictionaryCreateMutableCopy crash
- Subject: Re: CFDictionaryCreateMutableCopy crash
- From: "\"Gábor Sebestyén\"" <email@hidden>
- Date: Thu, 23 Sep 2004 04:57:58 -0700
>That really isn't normal. I'm guessing that if you replace
>CFDictionaryCreateMutable(NULL, 1, NULL, NULL); by
>CFDictionaryCreateMutable(NULL, 1, &kCFTypeDictionaryKeyCallBacks,
>&kCFTypeDictionaryValueCallBacks); you will avoid some memory borking
>that could be your problem.
I seem to have a quick fix (not nice but working). If I call CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication) right before getting dict0 it'll be fine and I can write as many preferences as I want :)
Best regards,
Gábor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden