objective c - Bad Access error in Thread with a managed object in iOS -
I have a line of code that has a table in my esclaim DB:
User * user = [[allocated user] init]; ... do some processing in one thread and other stuff) // And Function But I commented all the users * except the line of users and I came to know that my error was that line I came to the end of the function call. The error is:
"Thread X: EXC_BAD_ACCESS (code = 1, address = XXXXX) Why does this happen?
You can not create with NSManagedObject example init Code> NSManagedObject is associated with a NSManagedObjectContext and should be created using: initWithEntity: insertIntoManagedObjectContext: .
Comments
Post a Comment