Can anyone tell me when exactly a 'too many objects' exception is thrown? I have an array of about 150 objects.
class myclass
{
hidden var a;
hidden var b;
function x() { ... }
function y() { ... }
}
class number2
{
var arr;
function initialize()
{
// initialize 150 elements of the array
arr = [ new myclass(...), new myclass(...) ... ];
}
}
If I increase it further I get 'too many objects' errors. I also get other random errors, such as 'unexpected type' errors.
The 'limit' for triggering 'too many objects' is different in the simulator and the watch (Fenix 3 HR), by about 10%. This makes it quite difficult to work with.
Has anyone else had this problem or found a way around it?