I get frequent EXC_BAD_ACCESS crashes in iOS when this line is executed:
while (sqlite3_step(statement) == SQLITE_ROW) { }
Used to provide results in my function (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath .
Any ideas? SQL etc. It looks fine and the database is updated in the background thread, after which I call the foreground thread to update the interface.
source share