• 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
Crashing on writing to NSLog?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crashing on writing to NSLog?


  • Subject: Crashing on writing to NSLog?
  • From: Paul Borokhov <email@hidden>
  • Date: Thu, 22 Feb 2007 13:54:59 -0800

Is it possible that I am crashing my application by writing data to the Console using NSLog? Namely, I have a try/catch block and in the catch block I write the error's description, like so:
	@try {
		...stuff...
	} @catch (NSException *exception) {
		if ([[[NSUserDefaultsController sharedUserDefaultsController] defaults] boolForKey:@"logErrors"]) {
			NSLog( @"Notifications Fetch Error");
			NSLog([[exception name] stringByAppendingString:[exception reason]]);
		}
If "logErrors" is set to TRUE, then I can generate at least one specific error that will crash the app. If it's set to FALSE, the app doesn't crash.
Is this possible, or just a red herring?
Thanks!
Paul
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Follow-Ups:
    • Re: Crashing on writing to NSLog?
      • From: mmalc crawford <email@hidden>
    • Re: Crashing on writing to NSLog?
      • From: Manfred Schwind <email@hidden>
    • Re: Crashing on writing to NSLog?
      • From: "Shawn Erickson" <email@hidden>
    • Re: Crashing on writing to NSLog?
      • From: "stephen joseph butler" <email@hidden>
  • Prev by Date: Access to value in dictionary from Interface Builder?
  • Next by Date: Re: Error using categories: 'cannot find interface section for MyClass'
  • Previous by thread: Access to value in dictionary from Interface Builder?
  • Next by thread: Re: Crashing on writing to NSLog?
  • Index(es):
    • Date
    • Thread