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 115785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:04:29+00:00 2026-05-11T03:04:29+00:00

Here’s my case: I have a table view showing contacts. Add button in the

  • 0

Here’s my case: I have a table view showing contacts. Add button in the navigation bar is used to load another view for data entry. This new view has images in table header, and each table cell has either a UITextField or a UITextView. When i press Cancel, the view is popped out and memory is released.

Here’s my issue: When i open the ‘Add’ interface, provide a value in any of the UITextField or UITextView, and press ‘Cancel’ to to go back to the parent view, i get an EXC_BAD_ACCESS error. When i trace it, the ‘Add Controller’ calls dealloc properly, but after the [super dealloc] when i press Continue, it throws this error. Just this, no trace, although i’m using NSZombieEnabled. When i run the code with Instruments, i don’t get any error 🙁

I hope i’m clear in explaining the issue. Any pointers? Thanks.

  • 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. 2026-05-11T03:04:29+00:00Added an answer on May 11, 2026 at 3:04 am

    The most common cause of this error is when you release an object and some other mechanism tries to access/release/dealloc it later.

    Whenever I get a report of an EXC_BAD_ACCESS error, my first recommendation is to step through the code to determine which line is causing it, and then to search for any explicit [object release] calls that reference that object. Comment them out one-by-one to find where you may have gone wrong (and, of course, make sure the object is properly released later).

    If the line doesn’t help you figure out which object(s) is/are causing the problem, start looking through your [object release] calls, and make sure you aren’t releasing objects too many times by accident, or releasing objects you don’t own.

    This leads to a good general guideline regarding release in Objective-C:

    If you own an object (allocate or retain it), you release it. If you don’t own it (came via convenience method or someone else allocated it), you don’t release it.

    (Via Memory Management with Objective C / Cocoa / iPhone, which also has some good tips.)

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

Sidebar

Related Questions

Here's task: We have an sql server database. which is hosted at our server.
Here's my current fiddle: http://jsfiddle.net/UjAQf/28/ I want to design the table in such a
Here's my code: delegate.h #import <UIKit/UIKit.h> @class _4_Control_FunViewController; @interface _4_Control_FunAppDelegate : NSObject <UIApplicationDelegate> {
Here is my code. My question has to do with the append function inside
Here i make 5 Tab buttons that are working proper but now i want
Here I describe my issue more simply about what kind of query I need:
here is the code : http://jsfiddle.net/yuliantoadi/hMr7h/ if you try to hover the 'test 2'
Here's the page in question: http://bit.ly/m5cyjx There's hardly any code or styling. It seems
Here's a simple, 45 line console application that reproduces the bug on my Win
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.