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

  • SEARCH
  • Home
  • 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 6780283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:29:17+00:00 2026-05-26T16:29:17+00:00

In a function overridden from the immediate superclass, an exc_bad_access is being thrown when

  • 0

In a function overridden from the immediate superclass, an exc_bad_access is being thrown when the function tries to call the superclass version of itself. The execution does not make it into the superclass’ function, but instead throws the signal from objc_msgSend. The class and both parameters are as expected. The call does not fail if expired is true, nor does the superclass function fail when called elsewhere.

- (void)customizeCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath
{
    if (expired)
    {
        //do some things
    }
    else
    {
        //fails here
        [super customizeCell:cell atIndexPath:indexPath];
    }
}
  • 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-26T16:29:17+00:00Added an answer on May 26, 2026 at 4:29 pm

    Turns out there was an assignment error in the supercall. I was supposed to be assigning a new variable to a cast of a parameter, but instead assigned it be itself. This predictably crashed when called from the subclass implementation. If called directly, this actually the variable to be the parameter, the intended behaviour. Adding logging statements to the function or changing the compiler flags change this behaviour, so it seems that this was just a fluke with garbage memory.

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

Sidebar

Related Questions

How do I stop a function/procedure in a superclass from been overridden in a
I want to call a overridden method from a base class method called by
Is the following code the correct way to call a base class's overridden function
I'm trying to create an overridden operator function using both const parameters, but I
Working in a symfony model, I want to override a function and call the
Is it possible to call the base method from a prototype method in JavaScript
I have a container class (subclassed from list) where I have overridden the geattr
I need an inherited static function call to call another static function inner that
I'm trying to run the Count() function of a Linq statement in an overriden
i have the following function to override the default save function in a model

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.