Hi,
First of all thank you for this great library! I discovered it a few days ago, and I don't think I'll be able to look back!
I'm having a few issues trying to make it work in 32-bit (i386) with XCode 5 and OSX 10.9. Everything works great in 64-bit and it doesn't seem to change anything to build the library in 32 or 64 bit, a crash always happen in the same file if I try to run the application in 32-bit.
I've found a post on the forum from a few years ago that seams to be related to my problem as everything seems to happen in that same CallCDeclFunctionObjLast, but what I found in the post didn't helped and that bug seems to have been corrected since a few release anyway (that was in 2012!).
If it's relevant, I think that the function the engine is trying to execute is the constructor of an object I registered that way:
template<typename T, typename P1, typename P2>
static void constructor(P1 p1, P2 p2, T* ptr) { new (ptr) T(p1,p2); }
r = engine->RegisterObjectBehaviour(name.c_str(),
asBEHAVE_CONSTRUCT,
( "void f("+type+","+type+")" ).c_str(),
asFUNCTION((BindingHelper::constructor<ci::Vec2<T>,T,T>)),
asCALL_CDECL_OBJLAST); assert( r >= 0 );
Actually if I build the library without any debug symbols the only message I got is "error: memory read failed for 0xd04fae00" so that might have something to do with how I handle constructors (which seem to be the way to do it according to the wiki)
So basically I'm a bit lost and wanted to know if that's a known issue, if anyone experienced the same with XCode5/llvm/32bit or if I'm just doing something wrong in my script/binding code.
Any suggestions are welcome!
Thanks a lot!
Simon.