Revision 1072.
After loading scripts from source and releasing engine it gives this errors:
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.
[34:249] Script message: : Error : GC cannot free an object of type '_builtin_objecttype_'. Make sure all types that can form circular references have the GC behaviours : 0, 0.[/quote]
This is from ReportUndestroyedObjects().
Loading from bytecode don't give this errors.
I thought your setting [color=#1C2837][size=2]asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT[color=#1C2837][size=2] may have been what is different, but no, even when setting the same configurations I still cannot reproduce the problem.
I'm definitely not discarding that this is a bug in AngelScript, especially since you say you don't have the problem when loading from precompiled bytecode, but without being able to reproduce it myself it is very hard to imagine where the problem may be.