To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 851
  File Error - what does it exactly mean?
 
Hello, I have an NBC program which compiles fine and the previous versions of it were working as expected. After some minor modifications, the program is interrupted in the middle with a message "File Error!" shown on the LCD for a short momemnt and (...) (17 years ago, 5-Aug-07, to lugnet.robotics.nxt)
 
  Re: File Error - what does it exactly mean?
 
(...) I have to answer myself after analyzing the reason. The error occured when trying to access elements of array outside of the initialized range. Glad to have resolved it. (17 years ago, 5-Aug-07, to lugnet.robotics.nxt)
 
  Re: File Error - what does it exactly mean?
 
(...) I would guess that 99% of the time that you get a File Error abend in an NXT program it is because of trying to access an element beyond the end of the array. I'm glad you were able to figure the problem out quickly. It would be nice if the (...) (17 years ago, 5-Aug-07, to lugnet.robotics.nxt)
 
  Re: File Error - what does it exactly mean?
 
(...) 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?
 
(...) 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?
 
(...) 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)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR