Hi,
I am using the SD card to store settings for my climate control program. During testing I sometimes get a System.IndexOutOfRangeExemption in System.IO.dll. It seems the program can not read the next line and generates and exemption.
After a lot of testing it seems that this error depends on the data that I write. For example if my file contains lines with test data: 0,3,1,0,222,22.12 I get the above error. If I take out the "." and store 0,3,1,0,222,2212 I do not get the error. In this example the behavior is consistent, a few debug runs give the same result. So, depending on the contents of the lines in the file it crashes or not ??
The error happens somewhere during the reading; i.e. a large number of lines are read correctly and then suddenly the above error appears.
I am not an experienced programmer so maybe I am doing something wrong.
I am quite desperate as this data logging is fundamental for my project........
Please help,
Arno