I get the following error:
Corona Simulator(58075,0x7fff78ca0180) malloc: *** error for object 0x1151baaf8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
/Applications/CoronaSDK/Corona Terminal: line 9: 58075 Abort trap: 6 “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout
This happens intermitently in my application. The latest block of code I added adds the capacity to my game levels for physics bodies to move infront of and then behind various other physics bodies. The only way to simulate this however, using the 2D engine, is to change the masks. And the only way to change the masks is to destroy and then re-create the physics object.
Is the process of destroying and then remaking physics objects susceptable to creating the above error?
How can I avoid this error or debug it? I’m not suyre what malloc_error_break is.
Thanks.