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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:08:09+00:00 2026-05-31T16:08:09+00:00

(big) (big) Somewhere along the way into the function animationWithFrames , my vector loses

  • 0

enter image description here
(big)

enter image description here
(big)

Somewhere along the way into the function animationWithFrames, my vector loses its items.

This is actually a CCMutableArray which is a thin wrapper around std::vector.

template<class T = CCObject*>
class CCMutableArray : public CCObject
{
public:
    typedef std::vector<T>                              CCObjectArray;
    typedef typename CCObjectArray::iterator            CCMutableArrayIterator;
    typedef typename CCObjectArray::reverse_iterator    CCMutableArrayRevIterator;
public:
    // ... helper functions ...
private:
    std::vector<T> m_array;
};

What I don’t get is, when I send the variable frames into the function, the debugger accepts that it has a variable m_array with 2 items in it.

But inside the function the variables seem to enter “ghost” form.

frames contains:

m_array=[ 2 ](0x051d5078 ... )

but expanding, m_array contains

[0]().

What would cause the debugger to be inconsistent like this?

The code, by the way, does not see the items. They’ve vanished in transit. That’s the problem.

Visual Studio 2010. Worked fine in 2008. I may downgrade in order to do some work.

  • 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-31T16:08:10+00:00Added an answer on May 31, 2026 at 4:08 pm

    This turned out to be a totally stupid issue where I was apparently linking in the 2008 build of cocos2d-x into the 2010 project.

    The debugger didn’t like that very much.

    Rebuilding cocos2d-x inside 2010 make the problem go away and all was well.

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

Sidebar

Related Questions

I'm having trouble aggregating multiple arrays into one big array, I think this should
I have a big, complex MATLAB program. Somewhere within that, the number 0 is
Imagine we have N devices (say, mobile phones) with WiFi somewhere in a big
This is possibly answered somewhere already but had trouble searching for it as I
I recently had to build an app which was pretty big (just under 180mb)
I have several gigabytes of documents which I wish to store online somewhere in
I have opencv installed and working on my iphone (big thanks to this community).
I'm working on a big app (ns2) and somewhere someone put an exit(1) in
i saw this code somewhere switch(greet){ case HELLO: System.out.println(Formal Greeting); break; case HI: System.out.println(Friendly
I have a big project here where I created some build files which I

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.