some thing wrong with memory?
        Posted  
        
            by Rocker
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Rocker
        
        
        
        Published on 2009-11-30T04:18:53Z
        Indexed on 
            2010/04/14
            3:03 UTC
        
        
        Read the original article
        Hit count: 235
        
objective-c
Hi there
I am developing a game using Cocos2D. I got some error out of sudden after few time successfully played the game. And When i debugged it gives the error called EXC_BAD_ACCESS.
here is the code.
    -(void) winGame
        {
//the debug stopped here...
            WinningScene *winner = [WinningScene node];
            [[Director sharedDirector] replaceScene:[FadeTransition transitionWithDuration:1.0 scene:winner]];
        }
    if ((touchCount > 0 && touchCount ==2) && (rangeY2 > 0.0 && rangeY2 < 20.0))
        {
        	bras++;
        	if (bras == 1)
        	{
        		//[self winGame];
        		[self runAction:[Sequence 
        						 actionOne:[DelayTime actionWithDuration:0.5]
        						 two: [CallFunc actionWithTarget:self selector:@selector(winGame)]]];
        	}
Could u guys tell me why ?
© Stack Overflow or respective owner