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

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

References: 
 >CFDictionaryCreateMutableCopy crash (From: "\"Gábor Sebestyén\"" <email@hidden>)
 >Re: CFDictionaryCreateMutableCopy crash (From: Frederick Cheung <email@hidden>)

  • Prev by Date: Re: CFDictionaryCreateMutableCopy crash
  • Next by Date: Cocoa application and regular expression
  • Previous by thread: Re: CFDictionaryCreateMutableCopy crash
  • Next by thread: Re: CFDictionaryCreateMutableCopy crash
  • Index(es):
    • Date
    • Thread