Re: CFDictionaryCreateMutableCopy crash
Re: CFDictionaryCreateMutableCopy crash
- Subject: Re: CFDictionaryCreateMutableCopy crash
- From: "\"Gábor Sebestyén\"" <email@hidden>
- Date: Thu, 23 Sep 2004 04:09:01 -0700
>That code in itself is ok, i think you are doing something somewhere
>else that is getting cfpreferences confused. I am a little suspicious
>of how you create dict in the case that dict0 is NULL.
dict0 cannot be it's checked against NULL before CFDictionaryCreateMutableCopy called. So it is a valid object.
I did some debug printf-s, and CFShow(CFCopyTypeIDDescription(CFGetTypeID(dict0))) printed out "CFDictionary". So it is ok so far. But CFShow(dict0) is crashing.
>Are you aware hat such a dictionary will not retain values added to it (or the keys)
>? If not that could be your problem, if you are releasing values you
>add to that dictionary (inadvertently destroying them).
Hmmm .. no I'm not. I'll go and check it.
Thanks for the tip.
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