Re: managedObjectContext save:
Re: managedObjectContext save:
- Subject: Re: managedObjectContext save:
- From: Richard Salvatierra <email@hidden>
- Date: Tue, 9 Jan 2007 10:35:29 -0500
If I lock the managedObjectContext around this procedure, it appears
to fix the problem. I assume this means the context is being altered
on another thread as well?
On Jan 9, 2007, at 9:36 AM, Richard Salvatierra wrote:
I am trying to save the managedObjectContext but I regularly get a
crash. I have tried to isolate the problem but could really use
some guidance. What could be causing this?
I do a [managedObjectContext commitEditing]
I test for [ managedObjectContext hasChanges]
#0 0x90a564c7 in objc_msgSend
#1 0x00000001 in ??
#2 0x93cc41d9 in -[NSSQLCore databaseOperationForObject:]
#3 0x93cc3ea1 in -[NSSQLCore recordUpdateForObject:]
#4 0x93cc3c0d in -[NSSQLCore recordChangesInContext:]
#5 0x93cc35fa in -[NSSQLCore saveChanges:]
#6 0x93caba2e in -[NSPersistentStoreCoordinator(_NSInternalMethods)
executeRequest:withContext:]
#7 0x93cc143e in -[NSManagedObjectContext save:]
#8 0x0003d37e in -[MyApp_AppDelegate save] at MyApp_AppDelegate.m:968
-Rich
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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