Hello,
I made this
.h
...
protected:
CCArray *array;
...
.cpp
...
bool HelloWorld::init()
{
...
array= CCArray::create(2);
array->addObject(obj1);
array->addObject(obj2);
...
}
void HelloWorld::ccTouchesBegan(CCSet* touches, CCEvent* event)
{
CCLog("%i", array->count());
}
...
and got this:
0xC0000005: Access violation reading location “0xfeeefeee”.
on
CCArray.cpp
unsigned int CCArray::count()
{
return data->num;
}
Please, help.