afanofosc wrote:I don't know what you are trying to report here. That your code uses more and more memory as you add elements to arrays?
Yes, but I'm only adding one element (4 bytes), and the DataspaceSize rises by the amount described in the formula above. (For example, from 49 to 50 elements, it rises by a few hundred bytes instead of the expected 4.)
The third line on the display indicates the "delta" increase in DataspaceSize.
The memory should be recycled when not in use - I know it does that normally, but for some reason it's not happening in this case. Eventually, at ~86 elements, the program gives me File Error! -1.
Commit to LEGO Mindstorms Robotics Stack Exchange: bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit