| | Re: File Error - what does it exactly mean? Pavel Petrovic
|
| | (...) But I am getting it when trying to allocate an array that is larger than the amount of heap available. And it seems there is no way of checking how much space remains free, so I have no way of preventing this File Error! from happening if I (...) (17 years ago, 17-Aug-07, to lugnet.robotics.nxt)
|
| | |
| | | | Re: File Error - what does it exactly mean? John Hansen
|
| | | | (...) You've got 32k to work with for all variables of all types, including user-defined types and arrays. Every time you manipulate an array you use up more memory due to copying taking place in the VM. If you shared with me some information about (...) (17 years ago, 17-Aug-07, to lugnet.robotics.nxt)
|
| | | | |
| | | | | | Re: File Error - what does it exactly mean? Pavel Petrovic
|
| | | | (...) Well, I try to allocate all memory available for one big array and then deal with it using my own memory manager with C-like calls of malloc and free. It works fine, but I'd need to know how big this one array I can make while the program (...) (17 years ago, 17-Aug-07, to lugnet.robotics.nxt)
|
| | | | |