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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:12:20+00:00 2026-06-01T14:12:20+00:00

This may sound like a noob question, because it is. I have tried for

  • 0

This may sound like a noob question, because it is. I have tried for days to figure out what I am doing to make it crash, but I can’t figure it out.

I have various objects that use CCActions. When the objects need to be removed from screen, I call [spriteObject stopAllActions]; I then release the actions. (I retain the actions in init, as I was trying to avoid this kind of crash).

The program randomly crashes at this line in CCScheduler:

[elt->currentTimer release];

The error message is that I am sending a message to a deallocated instance. But I can’t figure out what gets deallocated when. I retain all the actions I create. I even tried running the program without ever releasing the actions, to see If that was the cause, but it still crashes.

Sometimes it crashes after 20minutes, sometimes after 2 minutes. It is pretty random.
I’m not sure what to put up because the code is pretty spread out.

Basically, I have a Sprite, which contains a “Strategy” object, which contains the CCAction that is running. At run time I create a “strategy” and pass it to the sprite which retains the strategy.

The sprites are not deallocated until the end of program execution.

Any ideas on how I can figure out what is being deallocated, where and why? I really can’t figure it out. Not sure what information to put up here. :C

  • 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-06-01T14:12:22+00:00Added an answer on June 1, 2026 at 2:12 pm

    Cocos2d is currently not thread safe, and the api’s are not expected to be called from other threads.

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

Sidebar

Related Questions

This question may sound like for beginners, however when I found that out I
I understand this may sound like an odd question.. I have a repo on
This may sound like a strange question, but hopefully there is an answer out
this may sound like a strange question from a Python noob, but here's the
This may sound like a dumb question. In my application, I have a scheduler
This may sound like a stupid question, perhaps it is. But I'm only trying
This may sound like a bit of a rhetorical question, but I ask it
This may sound like an unusual question, but I am curious as to how
This may sound like a stupid question but I'm a beginner not just to
im really new to linq-to-SQL so this may sound like a really dumb question,

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.