• Advertisement
Sign in to follow this  

Error when saving bytecode on x64

This topic is 966 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I try to call SaveByteCode for a script which calls a constructor such as this:

engine->RegisterObjectBehaviour("string", asBEHAVE_CONSTRUCT, "void f(int, const string& in)", asFUNCTION(TestStringConstructor), asCALL_CDECL_OBJLAST);

with asCALL_CDECL_OBJLAST and where a value type argument is passed before a reference type argument, on x64 this assertion is triggered:

offset == currOffset, file ..\..\source\as_restore.cpp, line 4244

I've attached a modified version of the asrun example that produces my problem.



Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement