My iOS application uses kernel data across multiple threads. I get several crash reports with the following message: "NSObjectInaccessibleException", reason: "CoreData could not execute the error for" 0x1e07a9b0 "
I understand what causes this problem is that the object was deleted, but another thread is trying to access it. I am working on a solution to the problem, but I want to add a check to the background thread to see if the object is to blame this way.
My code currently refers to myObject.myValue . Is it possible to perform some verification, for example:
if (!myObject.myValue) { return; }
... so that he leaves the method before doing anything that could cause such a crash? Or just call myObject.myValue , even if it is zero, throw such an exception?
Jason
source share