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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:48:55+00:00 2026-05-13T12:48:55+00:00

First let me say I come from a background in Flash/AS3, which I realize

  • 0

First let me say I come from a background in Flash/AS3, which I realize is not as strict about most things as iPhone/Objective-C.

I suspect my question actually applies to AS3 as well, but let me ask it as pertaining to Obj-c. Why is the error EXC_BAD_ACCESS, and others like it, so unhelpful? I realize that it normally means mismanagement of memory somewhere, but why can’t it tell you more about the problem. For instance why doesn’t it say “EXC_BAD_ACCESS, you tried to pass pointer suchAndSuch on line 123, however you’re an idiot, because you released it on line 69 so it’s not available anymore”?

I realize I can use the debugger to get more clues about where my error occurred, but many times this is only marginally helpful. For instance sometimes none of the messages in the stack/thread/whatever are even my code. Other times it is my code but on the top of the stack will be a message that has 4+ parameters, ok thanks debugger you narrowed it down to 4 possible pointers by why can’t you just tell me which one!?

I’m guessing there’s just some fundamental explanation that I missed because of the background I came from, not needing to worry about memory and such. Although there is an error that can happen a lot in AS3 development that is equally mysterious and along the same lines. “Error #1009: Cannot access a property or method of a null object reference” which almost always means a variable you were expecting to be holding something is actually null. Why doesn’t it tell me WHICH variable?!

  • 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-13T12:48:55+00:00Added an answer on May 13, 2026 at 12:48 pm

    Because Objective-C’s runtime is quite small and simple, on purpose. You are practically coding a native app that’s sitting right on the metal. The app has no idea why you got an EXC_BAD_ACCESS, all it knows is you tried to do something and the OS said no. EXC_BAD_ACCESS means you are attempting to access memory space that the OS did not give to you.

    In Flash, Java, .NET, etc there is a hefty, powerful runtime sitting there running your app for you. It has a lot more context, and knows a lot more about what is going on. So a benefit of an environment like this is much clearer error messages, usually with a full stack trace.

    Xcode can help you, look into zombifying your objects. Instead of deallocating them, they will become zombies and scream bloody murder if you try to use them again. Which helps pin down the cause.

    You may also want to look at the Technical Q&A or the Debugging Magic

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

Sidebar

Related Questions

Im starting a project with Magento. Let me first say, that i come from
First, let me say I'm not a professional programmer, but an engineer who had
First let me say that I really feel directionless on this question. I am
Let's say the first N integers divisible by 3 starting with 9. I'm sure
Let's say I have 3 point clouds: first that has 3 points {x1,y1,z1}, {x2,y2,z2},
First, let me say that I'm a complete beginner at Python. I've never learned
First of all, let me say I am very new to rails, have been
I come from a computer science. background, but I am now doing genomics. My
First off let me say I am maintaining someone else's poorly designed code so
First let me start by explaining my use case: Say there is a database

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.