Goal C how to troubleshoot NSCoreDataOptimisticLockingException

How can I get rid of the _NSCoreDataOptimisticLockingException messages that I receive in the console? or debug it?

I use a background thread to update the context of the main data, and I combine the context in the main thread with the main thread object, but I get this console message and I can’t figure out where it comes from.

objc[58487]: EXCEPTIONS: catch(_NSCoreDataOptimisticLockingException)
objc[58487]: EXCEPTIONS: unwinding through frame [ip=0x2235ec7 sp=0xb08e8a10] for exception 0x3dd42950
objc[58487]: EXCEPTIONS: unwinding through frame [ip=0x22622a6 sp=0xb08e8ad0] for exception 0x3dd42950
objc[58487]: EXCEPTIONS: handling exception 0x3dd42950 at 0x226234a
objc[58487]: EXCEPTIONS: finishing handler

The first answer from @jonusx talked about using nested contexts to handle these situations, but what can be done to debug these exceptions when targeting the iOS 4 SDK? Thanks in advance.

+3
source share
1 answer

- , . ? iOS 5 . , ( ) . . , , , .

0

All Articles