Weird EXC Access on start

i’m getting a EXC bad access on the 2nd line of this code
the declaration of mainP is under the use namespace

mainP = CCSprite::spriteWithFile(“penguin_back.png”, CCRectMake(0, 0, 65.5, 83.5));
mainP~~>setPosition);
this~~>addChild(mainP);

Helpppp!

s. i’m a n00b

Mabe mainP is null. You should check it.

I’ll just use a different approach, but thanks anyway!:slight_smile: