Hi again
So continuing down the road that is circular references, I've now stumbled upon what I suspect is a awfully specific bug.
I've created this simple example to illustrate: (I'm here using your any-addon, array-addon and grid-addon)
// Dummy class.
class B {}
class A
{
any a;
grid<B> t(10, 10); // Using a dummy class here, because apparently using primitives doesn't crash the application.
A()
{
a.store(@this);
}
}
// Global array of A-handles
array<A@> arr;
void main()
{
arr.insertLast(@A());
}
(This time I haven't modified the add-on files, I promise !)
This code will cause a crash when I try to release the script engine.
If you're curious what the specific crash I get is; it's at line 708 in CScriptGrid::EnumReferences (because buffer = 0).
Adding a if(buffer == 0) return; at the begining fixes it, but that seems more like a hack to me
Thanks in advance!