• 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
Failed Dictionary Search yields Signal 10 (SIGBUS) when all I want is a nil.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failed Dictionary Search yields Signal 10 (SIGBUS) when all I want is a nil.


  • Subject: Failed Dictionary Search yields Signal 10 (SIGBUS) when all I want is a nil.
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Wed, 28 Apr 2004 12:32:11 -0700

Greetings:
I do a simple search & recover in a dictionary. When a pass an
erroneous country (NSString *) key like ('burp'), then obviously I
should get a nil return. However, I also get "Signal 10 (SIGBUS)"
error.

Why?

Must I have to trap for this error as well??

BTW: the 'retain' doesn't effect the outcome.

Ric.

----------------------------------------------------------

The following is the code snippet:


locale_Array = [[theCountryDict objectForKey:theKey] retain]; //
Extracting NSArray info from the Dictionary.

if (locale_Array != nil) {
.....
} else {
....
}

Countries has exited due to signal 10 (SIGBUS).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Panel items failing to draw
  • Next by Date: Re: Enable Objective-C exception handling. [-fobjc-exceptions] causes additional warnings on pointers?
  • Previous by thread: Re: Panel items failing to draw
  • Next by thread: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Index(es):
    • Date
    • Thread