Advertisement Jump to content
Sign in to follow this  
Rain Dog

asINVALID_CONFIGURATION

This topic is 4968 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

What are the possible causes for this? I just did a redesign of the way my app interacts with the script engine. For the most part the registration methods are exactly the same except that I changed some objects from declarable types to Global properties. When I register the engine objects, no errors occur but when I build the engine the build returns failure.

Share this post


Link to post
Share on other sites
Advertisement
After some debugging I found the issue. I had omitted an assert that would have immediately found the problem.

Share this post


Link to post
Share on other sites
Just answering your question in case somebody else is wondering:

asINVALID_CONFIGURATION is returned by Build() if any of the previous calls to one of the Register...() methods failed. It would mean that you've done something wrong when setting up the engine and you'll have to fix it and recompile the application. Using asserts to verify each of the return values from the Register...() methods is an excellent way to discover where the real problem lies. A successful call to a Register...() always returns 0 or a positive value.

Share this post


Link to post
Share on other sites
In the haste of a rewrite I added a line like this:


RegisterGlobalProperty("ClassName", (void*)&MyObject::MyProperty);

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!