I have a working Cocos2d-x project, developed in XCode and based on the version cocos2d-1.0.1-x-0.13.0-beta
Now I have to make it work with Marmalade (using VS Express on a Windows pc), and I'm completely new to it. I managed to set up the project and the source code compiles just fine, but when I launch the project I get a cryptic exception when a CCCallFuncO is invocated:
DEFAULT: s3eDeviceHandleException: 1 0x00000000 0x00000000
Memory exception (11) attempting to access: 00000000
S3E runtime is not handling this exception
First-chance exception at 0x00000000 in s3e_simulator_debug.exe: 0xC0000005: Access violation.
Unhandled exception at 0x00000000 in s3e_simulator_debug.exe: 0xC0000005: Access violation reading location 0x00000000.
This occurres inside the class CCActionInstant, within the method CCCallFuncO::execute, on the instruction:
(m_pSelectorTarget->*m_pCallFuncO)(m_pObject);
As far as I can tell all the involved objects are correct and sound, proof is it totally works and makes sense with the very same code inside XCode and without Marmalade.
What is the difference between these two enviroment that could cause this issue? Any of you with Marmalade experience can give me a clue about what should I look for?