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 / 854
853  |  855
Subject: 
Re: File Error - what does it exactly mean?
Newsgroups: 
lugnet.robotics.nxt
Date: 
Sun, 5 Aug 2007 06:12:37 GMT
Viewed: 
23699 times
  
In lugnet.robotics.nxt, Pavel Petrovic wrote:
a message "File Error!" shown on the LCD for a short moment
and terminated.

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.

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 firmware was a little more informative regarding the error it
encountered. :-)

John Hansen



Message has 1 Reply:
  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)

Message is in Reply To:
  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)

6 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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