Re: Core Data Fetch Error
Re: Core Data Fetch Error
- Subject: Re: Core Data Fetch Error
- From: Chris Hanson <email@hidden>
- Date: Fri, 10 Mar 2006 16:23:35 -0800
On Mar 10, 2006, at 2:31 PM, John Bishop wrote:
Which fails (intermittently unfortunately) with:
2006-03-10 16:08:23.035 App[2060] Can't do regex matching, reason:
Can't open
pattern U_ILLEGAL_ARGUMENT_ERROR (string Korea, pattern , case 1,
canon 0)
This looks like an exception being thrown. Put a try/catch block
around your code and log the exception in the catch block. (You can
then easily set a breakpoint on your NSLog.) Also, it would probably
be useful to log the value of searchText too.
(Just FYI, you should also either release your fetch request before
throwing an exception or you should release it in a @finally block to
ensure it gets cleaned up no matter how you exit your method.
Otherwise you'll leak a fetch request any time an error occurs.)
-- Chris
_______________________________________________
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