Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5943865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:27:24+00:00 2026-05-22T16:27:24+00:00

When i delete cell from table view:This error is occur: Program received signal: EXC_BAD_ACCESS.

  • 0

When i delete cell from table view:This error is occur:

Program received signal:  “EXC_BAD_ACCESS”.
warning: Unable to read symbols for /Xcode3.2.5/Platforms/iPhoneOS.platform/DeviceSupport/4.3.2 (8H7)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).

Here i delete object from cell and its event from calander:

if (editingStyle == UITableViewCellEditingStyleDelete)
    {
        //Get the object to delete from the array.
        lovkid *mykids = (lovkid *)[appDelegate.actionarray1 objectAtIndex:indexPath.row];
        appDelegate.actionId = mykids.Id;

        //delete from calender
        if( [ mykids.Event isEqualToString:@"empty"])
        {
        }
        else
        {
            EKEvent* event2 = [appDelegate.eventStore eventWithIdentifier:mykids.Event];
            if (event2 != nil) 
            {  
                NSError* error = nil;
                [appDelegate.eventStore removeEvent:event2 span:EKSpanThisEvent error:&error];
            } 
        }

        //delete end
        [mykids deleteAction];
        [appDelegate.actionarray1 removeObjectAtIndex:indexPath.row];

        //Delete the object from the table.
        [localTable deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
        [localTable reloadData];
        a = 0;
    }
    else 
    {
        //NSLog(@"test");
    }

Delete from db:

deleteStmt1 = nil;
    if(deleteStmt1 == nil) 
    {
            const char *sql = "delete from actions where id = ?";
            if(sqlite3_prepare_v2(database1, sql, -1, &deleteStmt1, NULL) != SQLITE_OK)
                NSAssert1(0, @"Error while creating delete statement. '%s'", sqlite3_errmsg(database1));

    //When binding parameters, index starts from 1 and not zero.
        sqlite3_bind_int(deleteStmt1, 1,(int)appDelegate.actionId);

        if (SQLITE_DONE != sqlite3_step(deleteStmt1)) 
            NSAssert1(0, @"Error while deleting. '%s'", sqlite3_errmsg(database1));

        sqlite3_reset(deleteStmt1);
        sqlite3_finalize(deleteStmt1);
    }

What is the reason behing this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:27:25+00:00Added an answer on May 22, 2026 at 4:27 pm

    I would suggest removing the line:

        [localTable deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
    

    If you are reloading the table by reloadData, it is not necessary to remove the row that way. The table will be reloaded reflecting the new data source state.

    On the other hand, you could investigate beginUpdates and endUpdates if you are up to a smoother refresh of your table. In that case it makes sense using deleteRowsAtIndexPaths.

    I don’t know if this will solve your crash. In case it does not, I suggest you execute under the debugger so you can find out exactly which is the offending statement causing the crash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I delete a cell from my table, i am getting the following error:
I want to modify my table view cell apparence when the delete button came
Hi I have a table view, and when I delete a cell I am
delete from a A where a.ID = 132. The table A contains around 5000
I delete my java program from java project in eclipse. The extension was .java
I erroneously delete all the rows from a MS SQL 2000 table that is
Has anyone run into this before? When I choose to delete a row from
Currently, I have a table view that the user can add items and delete
Ok i have a table view that can add and delete cells. For each
Is it possible to delete a cell with swipe action on it ? Or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.