re: CoreData SQL relaunch issue
re: CoreData SQL relaunch issue
- Subject: re: CoreData SQL relaunch issue
- From: Ben Trumbull <email@hidden>
- Date: Sat, 3 Nov 2007 16:54:35 -0700
When quitting and relaunching my app I get a never-ending string of
the following errors:
NSError "An error occurred while saving." Domain=NSCocoaErrorDomain
Code=134030 UserInfo={
NSUnderlyingException = error during execution of SQL string
'ROLLBACK' : library routine called out of sequence;
}
I assume it's because the SQL database hasn't had adequate time to
close before the relaunch. The problem goes away if the user waits a
bit before relaunching.
No. SQLite is an embedded database, built around a file descriptor
that the kernel will always clean up when the process terminates
(under any circumstance, including seg fault)
What happens if you add to your ~/.gdbinit file
future-break objc_exception_throw
and catch this in gdb, and run the following commands
bt
info threads
thread apply all bt
? Also, is this on Tiger or Leopard ? Do you have multiple processes
accessing the file ?
- Ben
_______________________________________________
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