Lite-c latest version 7.06.1 demo.
Also free Lite-c.
When an ent_create's function has a huge array defined in it locally, the engine crashes.
eg.
function Big_data_ent(){
var my_data[100000]; //This will work if 10000.
var i;
for (i=0; i<100000; i++) // reset the array first before loading up.
my_data[ i ]=0; // Tried #define PRAGMA_ZERO didn't help
}
function Load_Group(){
ent_create (orbox_mdl, my.x, Big_data_ent);
}
I've been using Gamestudio since A3.9 so I'm pretty sure I've exhausted all possibilities and this is a bug.
The manual states local vars have an array size limit of 3 in c-script but there is no such limit in lite-c. OK.
What about ent_created functions local var arrays, as these must be dynamically allocated, depending on when and how many entities are created.
Regards .. Jethro.