Advertisement

Load byte code failed

Started by June 07, 2010 07:11 AM
4 comments, last by hoboaki 14 years, 5 months ago
Hi.
I found as_restore bug.

Revision
r595

Compiler
MSVC8

script code
class HogeManager{    array< Hoge >@ hogeArray;};class Hoge {};}}

When my application save and load byte code with this code, assertion failed.

Message
Assertion failed: ot, file ..\..\source\as_restore.cpp, line 1244


But when my application use this code , assertion is not failed.
class Hoge {};class HogeManager{    array< Hoge >@ hogeArray;};


Please investigate.
If I may offer my two cents, it seems to me like the one you say doesn't work has a syntax error.

The little
}}

bit you have I think would throw any compiler of any C-like language off.
Advertisement
I assume the }} was a typo.

I'll investigate this. It seems the declaration of the template instance with a class that is only declared afterwards is confusing the code in as_restore.cpp. This is obviously a bug and I'll have a look at it as quickly as possible.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Yes , "}}" is typo. Sorry...
I've fixed this in revision 598. Thanks.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I confirmed that this bug was fixed.
Thank you!

This topic is closed to new replies.

Advertisement