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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:39:16+00:00 2026-05-26T21:39:16+00:00

I am debugging an EXC_BAD_ACCESS in Objective-C++ and like a good SO student I

  • 0

I am debugging an EXC_BAD_ACCESS in Objective-C++ and like a good SO student I have set an Environment variable of NSZombieEnabled to YES.

I’m not getting any Zombies, though, just (gdb) in the log and then EXC_BAD_ACCESS on various (C++) lines of my code.

Question: Am I using Zombies wrong, or do they just ignore the C++ parts of my project?

Example:

if (this->squares[i][j] == 1) // <-- EXC_BAD_ACCESS on this line. The array exists and shows up in the debugger... and i and j both exist and are 0.

Stack:

Thread 1, Queue : com.apple.main-thread
#0  0x00009309 in Board::draw(float, float, float, float, float) at /Developer/of_007_iphone/apps/cwi007/iTicTacToe/src/gameplay/gameBoard.cpp:53
#1  0x0000a2f1 in SuperBoard::drawBig(float, float, float) ()
#2  0x000044b8 in testApp::draw() ()
#3  0x0020fc16 in ofAppiPhoneWindow::timerLoop() ()
#4  0x00218db9 in -[ofxiPhoneAppDelegate timerLoop] ()
#5  0x00ab1749 in __NSFireTimer ()
#6  0x01f898c3 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#7  0x01f8ae74 in __CFRunLoopDoTimer ()
#8  0x01ee72c9 in __CFRunLoopRun ()
#9  0x01ee6840 in CFRunLoopRunSpecific ()
#10 0x01ee6761 in CFRunLoopRunInMode ()
#11 0x027651c4 in GSEventRunModal ()
#12 0x02765289 in GSEventRun ()
#13 0x00d29c93 in UIApplicationMain ()
#14 0x002106e1 in ofAppiPhoneWindow::runAppViaInfiniteLoop(ofBaseApp*) ()
#15 0x002219ae in ofRunApp(ofBaseApp*) ()
#16 0x00002fd6 in main ()
  • 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-26T21:39:17+00:00Added an answer on May 26, 2026 at 9:39 pm

    Zombies are very helpful because they will flag in the debugger when you send a message to an object that has been deallocated. They only work with Objective-C code however.

    EXC_BAD_ACCESSerrors are tricky in that at the point they occur, that line of code might have nothing to do with the root cause of the error. It may offer a clue.

    That’s because the Objective-C runtime will only deallocated released objects when all the objects that reside in a particular chunk of memory have been released and are eligible for deallocation.

    See here for a great explanation and instructions on how to track down these pesky errors:

    Lou Franco’s Understanding EXC_BAD_ACCESS

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

Sidebar

Related Questions

I have been debugging the infamous EXC_BAD_ACCESS error for a few days now. NSZombieEnabled
I have what at the moment seems like an unsolvable EXC_BAD_ACCESS problem. I've tried
I have been getting EXC_BAD_ACCESS on some devices in ad hoc beta for my
Debugging with gdb, any c++ code that uses STL/boost is still a nightmare. Anyone
Debugging a PHP program, is there any add-on/plug-in for browser which I can view
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
For debugging purposes in a somewhat closed system, I have to output text to
My debugging skills are not helping me much with figuring out what I am
I could use some assistance in debugging a EXC_BAD_ACCESS error received on the [context
I am writing an Objective-C program that utilizes the garbage collector. I am getting

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.