replace - Game crashes after second time same CCScene is replaced -


This is a bit easier problem but I could not understand it.

1-> The application starts (with the main menu view)

2- & gt; Start (sub-level view changed)

3- & gt; Select the first level (Level 1 Sceone has been changed. The game started.)

4-> Go back to the main menu (Menmanu is the scene of the scene)

5- & gt; Start (sub-level view has changed)

6-> Select first level

7-> Crash.

box (32842,0x3f5c9d98) malloc: * Error 0x4bed44 for object: wrong checksum for free object - object was probably modified after being free. * To set a breakpoint in malloc_error_break to debug

When I place the scenes in A to B, is there a release?

As far as I know, only Pushkenneni keeps the scene in memory.

  + (CCScene *) view {CCScene * view = [CCScene node]; HelloWorldLayer * Layer = [HelloWaldlayer node]; [Add View Build: Layer]; Return view; }   

Should be replaced when the view and layer autorelease are objects, should be released from then. (If previous scenes are released while changing the scenes.)

I have solved this problem Strange but works.

I had a class that is called subclass of CCSprite collectibles. It has crashed while changing the scene with a collection of objects. I converted it into CCNode and its functions.

Maybe it helps someone.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -