Hi all, 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:
"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? #0 0x9539ae17 in objc_exception_throw () #1 0x92b1f178 in -[NSSQLConnection prepareSQLStatement:] () #2 0x92b1ea33 in -[NSSQLiteConnection prepareSQLStatement:] () #3 0x92b4fdab in -[NSSQLChannel selectRowsWithCachedStatement:] () #4 0x92b1b17b in newFetchedRowsForFetchPlan_MT () #5 0x92b4f410 in -[NSSQLCore newFetchedPKsForSourceID:andRelationship:] () #6 0x92b4eeff in -[NSSQLCore retaine dRelationshipDataWithSourceID:forRelationship:withContext:] () #7 0x92b4ec47 in -[NSFaultHandler re tainedFulfillAggregateFaultForObject:andRelationship:withContext:] () #8 0x92b25597 in -[_NSFaultingMutableSet willRead] () #9 0x92b28459 in -[_NSFaultingMutableSet countByEnumeratingWithState:objects:count:] () #11 0x003cc449 in -[MyManagedObjectSuperClass awakeFromFetch] #12 0x003cdf70 in -[MyManagedObject awakeFromFetch] #13 0x92b0b987 in _PFFaultHandlerFulfillFault () #14 0x92b38162 in -[NSSQLCore _prepareResultsFromResultSet:usingFetchPlan:] () #15 0x92b242ab in -[NSSQLCore _newRow sForFetchPlan:selectedBy:withArgument:] () #16 0x92b141b0 in -[NSSQLCore newRowsForFetchPlan:] () #17 0x92b13d10 in -[NSSQLCore objectsForFetchRequest:inContext:] () #18 0x92b13a17 in -[NSSQLCore executeRequest:withContext:] () #19 0x92b12aaa in -[NSPersistentStoreCoordinator(_NSInternalMethods) executeRequest:withContext:] () #20 0x92b1007b in -[NSManagedObjectContext executeFetchRequest:error:] () Thanks, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com