First up, thanks for this port. I’m porting an iphone cocos2d game over to cocos2d-x, with a main target of Android. So far I’ve been mostly using the win32 version for more rapid development, and it’s going pretty well. After adding touch support though, I’m now getting a crash in the android version only.
I haven’t quite got the hang of debugging the NDK, but I’ve used the arm-eabi-addr2line tool as well as debug prints, and have narrowed the crash down to CCTouchDispatcher::forceAddHandler.
Sometimes the top of the call stack is inside of the pArray->stl’s begin() function, and other time’s its when dereferencing the iter pointer. This happened to anyone else, or anyone got any idea what I might be doing wrong? Higher up the stack, i see it’s being called from CCLayer::onEnter(), via the registerWithTouchDispatcher() call.
Thanks in advance!