Re: SQL store, GC apps, "statement is still active" exception, setReturnsObjectsAsFaults:NO
Re: SQL store, GC apps, "statement is still active" exception, setReturnsObjectsAsFaults:NO
- Subject: Re: SQL store, GC apps, "statement is still active" exception, setReturnsObjectsAsFaults:NO
- From: "Sean McBride" <email@hidden>
- Date: Mon, 1 Jun 2009 18:34:42 -0400
- Organization: Rogue Research Inc.
On 6/1/09 3:01 PM, Ben Trumbull said:
>> Now that 10.5.7 (allegedly) fixes the incompatibilities between the
>> SQL
>> store and GC apps, I have been trying to switch from XML to SQL. Most
>> problems I've fixed, but I'm getting an exception:
>
>Yes, 10.5.7 fixes all the known issues with (GC, NSDocument,
>NSSQLiteStore). The incompatibilities were in document based apps.
>Non-document GC apps worked with the NSSQLiteStore prior to 10.5.7
Glad to hear it!
>> "statement is still active"
>>
>> See backtrace below. I've search the archives of course, and see that
>> this is usually a threading problem. My app is multithreaded, but I
>> do
>> all my UI, bindings, and Core Data stuff on the main thread (barring
>> mistakes).
>>
>> Experimentation has revealed that if I change this:
>>
>> [request setReturnsObjectsAsFaults:NO];
>>
>> from NO to YES the problem goes away.
>>
>> What might I be doing wrong here? Or is this a Core Data bug?
>
>This is a known issue that is not related to GC.
But is related to SQL I'm assuming? I don't see this problem with XML.
Maybe I'm just lucky?
>On all versions of
>10.5, Core Data is less than completely thrilled by fetching
>recursively in -awakeFromFetch. This has subsequently been fixed.
OK, so I guess I'll just use setReturnsObjectsAsFaults:YES and move on.
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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