Sorry... the out of memory was not caused by the allocation, but because i did a mistake....
but my questions are still valid:
How does B4A handle the memory consumption of arrays? I often ReDIM my main array inside a SUB. Until now I had no problems with this.
B4X:
sub Globals
Private...