Failed Dictionary Search yields Signal 10 (SIGBUS) when all I want is a nil.
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.