CCArray "Access violation reading location"

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.

Object created by ‘create’ method is an autorelease object, if you want to keep the object, you should invoke array->retain() after ‘create’.
And don’t forget to ‘release’ it when you don’t want to use it.

Thank you very much.