Hello,
When creating or using C++ objects the application crashes in the function CallThisCallFunction.
I registered the interface like so:
engine->RegisterGlobalFunction("void RegisterGenerator(?&in)", asMETHOD(APIInterface, registerGenerator), asCALL_THISCALL_ASGLOBAL, &this);
engine->RegisterObjectType("World", 0, asOBJ_REF);
engine->RegisterObjectBehaviour("World", asBEHAVE_FACTORY, "World@ f()", asFUNCTION(WorldFactory), asCALL_CDECL);
engine->RegisterObjectBehaviour("World", asBEHAVE_ADDREF, "void f()", asMETHOD(World, addRef), asCALL_THISCALL);
engine->RegisterObjectBehaviour("World", asBEHAVE_RELEASE, "void f()", asMETHOD(World, release), asCALL_THISCALL);
engine->RegisterObjectMethod("World", "void addBlock(Block@)", asMETHOD(World, addBlock), asCALL_THISCALL);
Whenever I call RegisterGenerator or addBlock it will crash at the end of CallThisCallFunction.
But this only happens on Windows tested with MinGW and MSVC, GCC under Linux is working fine.
Kind regards