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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:21:00+00:00 2026-05-27T04:21:00+00:00

I have a cocos2d project. Everything works fine, except when I am replacing a

  • 0

I have a cocos2d project. Everything works fine, except when I am replacing a scene.
When replacing the scene, I receive the message “Message sent to deallocated instance” followed by a memory address.

The way my project is structured, most CCNodes are children of the main “Scene” which is replaced. These nodes are also stored in various arrays for iterating among similar objects etc.

I can’t imagine how I am over-releasing any of the objects, since adding to arrays should increase the reference count, as should adding to the main scene.

Should I do something about this? What happens if I ignore it? (Turn NSZombies off?) The error pops up when objects are being deallocated, so it should just mean that the object is already release right?

Any suggestions on how I can figure out what I am doing wrong?

  • 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-27T04:21:01+00:00Added an answer on May 27, 2026 at 4:21 am

    You need to fix it, as it will cause crashes once you turn NSZombies off. Somewhere in your code your memory management isn’t correct. Xcode can help you find it: run Product -> Analyze (Shift-Command-B).

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

Sidebar

Related Questions

I have a cocos2d project with some scenes (home scene, level selection scene, game
In my cocos2d project, I have two scenes. I transition between the two using
I have Integrated Cocos2d to my Windows based application. When I run my Project
I have a project containing cocos2d framework, sharekit, asi & json. I've noticed that
I have an Xcode project (for an iPhone application) that uses cocos2d. I have
I have cocos2d project with custom CCSprite subclass: MyCustomSprite.h: #import cocos2d.h @interface MyCustomSprite :
Currently I am working on a cocos2d+Box2D project so I have deal with some
I have developed a Cocos2d-X app with XCode which works perfectly when I launch
I have writing a small shooting game in cocos2d. Winning the game is to
I have written my code in following way in cocos2d. id actionTo = [CCFadeOut

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.