I have a weird problem in my Objective-C code. I have a View Controller where I call my own loadData method in "viewWillAppear". This works cool until the view becomes visible the third time.
Than the app crashes without any exceptions or other hints when I call
NSArray *storeListArray = [managedObjectContext executeFetchRequest:fetchRequest error:&error];
I checked that the managedObjectContext is not accidentally released somewhere else. But that seems not be the case. The fetchRequest is created right before the call above. I guess it crashes somewhere inside the executeFetchRequest method.
Has anybody an idea where I could look for the error? What is really bugging me is the fact that it reproducible happens on the third call.