My applications crashes when I try to add a layer in it with CCSprite.
Here is some code I use:
CCLayer *layerPause = [CCLayer node];
CCSprite *spriteBackgroundPause = [[CCSprite alloc] initWithFile:@"BackgroundMenu.jpg"];
[layerPause addChild:spriteBackgroundPause];
[self addChild:layerPause z:27];
Here is picture also:

You have to retain the
layerPausevariable because it seems an autoreleased object, try in this way :