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
Post a Comment