• 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: NSLog preventing a crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog preventing a crash?


  • Subject: Re: NSLog preventing a crash?
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 24 Jul 2007 10:24:16 +0100

On 24 Jul 2007, at 09:45, Rob Chahin wrote:

The crash was caused by me, in my infinite wisdom, adding 'dictionaries' to my 'array' without sending -copy to them.

Presumably also without sending -retain? But if it's an NSArray, it should already be retaining your NSDictionary objects.


Especially idiotic as I do the exact same thing properly elsewhere in the code.

I guess NSLog sending -description must have fiddled with the retain count just enough to stop the crash.

Not likely. It might have moved the crash to some other later part of your code though, by adding things to an autorelease pool.


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSLog preventing a crash? (From: Rob Chahin <email@hidden>)
 >Re: NSLog preventing a crash? (From: Rob Chahin <email@hidden>)

  • Prev by Date: Re: NSLog preventing a crash?
  • Next by Date: Re: ASScriptMenuManager
  • Previous by thread: Re: NSLog preventing a crash?
  • Next by thread: Re: NSLog preventing a crash?
  • Index(es):
    • Date
    • Thread