ios - Fatal Exception: NSObjectInaccessibleException CoreData could not fulfill a fault -


some times application crashes while tries merge secondary thread moc main thread moc. crashes while merging deleted object main thread object.

this merging code in app delegate:

- (void)syncdidsave:(nsnotification *)savenotification {     if ([nsthread ismainthread]) {                 [self.managedobjectcontext                  mergechangesfromcontextdidsavenotification:savenotification];     } else {             [self performselectoronmainthread:@selector(syncdidsave:)               withobject:savenotification waituntildone:yes];     } } 

i have attached couple of screenshots show stack trace.

main thread img; http://i41.tinypic.com/30047qx.png

secondary thread: http://tinypic.com/view.php?pic=24ql27p&s=5

any or suggestions appreciated!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -