iTGB - game crashes when level is loaded a 2nd time
by Conor O'Kane · in iTorque 2D · 02/19/2009 (2:35 am) · 3 replies
My game is crashing with an EXC_BAD_ACCESS when I load a level, return to the menu and then reload the same level a 2nd time. The debugger shows that it's stopping on t2dImageMapDatablock::unloadSrcBitmap - but it doesn't show which image.
If I change around the images in the background tilemap - SOMETIMES the crash goes away, but not always. Also, with 2 identical levels, sometimes one of them works and the other fails.
This is incredibly frustrating and hard to decipher, as the behavior isn't consistent.
Anyone got any suggestions?
If I change around the images in the background tilemap - SOMETIMES the crash goes away, but not always. Also, with 2 identical levels, sometimes one of them works and the other fails.
This is incredibly frustrating and hard to decipher, as the behavior isn't consistent.
Anyone got any suggestions?
About the author
www.cokane.com
Conor O'Kane
cokane.com
All of my other images are set to allowUnload="1", and it isn't a problem for them!