title: Received memory warning. Level=2. Data Formatters temporarily unavailable, will re-try after a 'continue'
body: <p>I am using cocos2d 0.99.4 and Xcode 4.0. so, I changed my AppDelegate in this way according to the documentation and example given in 0.99.4 version.</p>
  
  <pre><code>- (void) applicationDidFinishLaunching:(UIApplication*)application
  {
      window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      [CCDirector setDirectorType:kCCDirectorTypeDisplayLink];
      CCDirector *director = [CCDirector sharedDirector];
      [director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
      [director setAnimationInterval:1.0/60];
      [director setDisplayFPS:NO];
      EAGLView *glView = [EAGLView viewWithFrame:[window bounds]
                                 pixelFormat:kEAGLColorFormatRGBA8            
                                 depthFormat:GL_DEPTH_COMPONENT24_OES   
                      preserveBackbuffer:NO];
  
      [[CCDirector sharedDirector] setOpenGLView:glView];
  
      [window addSubview:glView];
      [window makeKeyAndVisible]; 
  
      [CCTexture2D setDefaultAlphaPixelFormat:kCCTexture2DPixelFormat_RGBA8888];
      gameLevel = [[NSUserDefaults standardUserDefaults] integerForKey:@"gameLevel"] ;
      gameLevel = 1;
  
      CCScene *scene = [CCScene node];
      CCLayer *layer = [GamewinScreen node];  
      [scene addChild :layer];
  
      [[CCDirector sharedDirector] runWithScene: scene];  
  
  }  
  </code></pre>
  
  <p>//The method test1 is also in the app Delegate class.  </p>
  
  <pre><code> -(void)test1
  {
  
      [[CCDirector sharedDirector] end];
      [[CCDirector sharedDirector] setOpenGLView:[[window subviews] objectAtIndex:0]];    
  
      CCScene *Scene = [CCScene node];
      CCLayer *Layer = [OpeningScreen node];
  
      [Scene addChild:Layer]; 
  
      [[CCDirector sharedDirector] runWithScene: Scene];
  }
  </code></pre>
  
  <p>In GameWinScreen I have a selector @selector(goToFirstScreen),</p>
  
  <pre><code>-(void)goToFirstScreen:(id)sender
  {
      [MY_DELEGATE performSelector:@selector(test1) withObject:nil afterDelay:1.0];
   }   
  </code></pre>
  
  <p>After playing the game for 50 minutes and more I am getting   </p>
  
  <pre><code>Received memory warning. Level=1  
  </code></pre>
  
  <p>for more than 10 times and then<br>
      Received memory warning. Level=2</p>
  
  <p>and the application is crashing. giving the following message  </p>
  
  <pre><code>Program received signal:  “0”.
  Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
  </code></pre>
  
  <p><a href="http://www.freeimagehosting.net/uploads/52ac11fe93.png" rel="nofollow noreferrer">alt text http://www.freeimagehosting.net/uploads/52ac11fe93.png</a></p>
  
  <p><a href="http://www.freeimagehosting.net/uploads/619333a82f.png" rel="nofollow noreferrer">alt text http://www.freeimagehosting.net/uploads/619333a82f.png</a></p>