Jump to content
  • Advertisement
Sign in to follow this  
Idarion

Error when saving bytecode on x64

This topic is 1125 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.

 

Thanks

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!