Project5 wrote: |
Problem solved :-)
I'm not sure why Squirrel reported "the index 'receiveEffect' does not exist" when it should have reported "Push(): could not create INSTANCE copy (check registration name)" like the macro says, but better to report it so other people don't run into the same problem :-)
|
|
Good to hear you figured it out. Error propagation between Squirrel and SqPlus could be improved. One of the issues has to do with throwing exceptions in SqPlus and storing errors internally in (lower-level) Squirrel (where no exception will be thrown).
Until a cleanup/fix can be implemented, you might want to update the Wiki (I just added an FAQ section for this purpose:
http://wiki.squirrel-lang.org/default.aspx/SquirrelWiki/SqPlusFAQ.html ) and add an entry with an appropriate title and an explanation of how you worked around/understood the issue(s). I believe there are comments in the sqplus.h header and/or the testSqPlus2.cpp source file that explains possible issues with passing items by reference (which end up being copied/allocate memory) as opposed to passing their address (as a pointer).