Error Message
TurnipTruck
Posts: 1,485
974: 01-16-2007 TUE 17:11:22 Interpreter Ref Error ? Index to large
975: 01-16-2007 TUE 17:11:09 Interpreter Ref Error ? Index to large
Any idea where to start with this?
975: 01-16-2007 TUE 17:11:09 Interpreter Ref Error ? Index to large
Any idea where to start with this?
0
Comments
Make sure that there is no chance that nCOUNTER can be higher than LENGTH_ARRAY(nBUTTON_ARRAY).
You can start monitoring communication to other devices and see when the error occurs and then start inserting temporary send_string 0,"VARIABLE INFO'" commands to narrow down the cause (if it's not obvious).
I had similar problems with index values being 0 because I forgot to initialize variables
Jeff
Could you explain that process more closely? The only debugging I've used is variable watching.
In compiler options, there is a "Compile with debug info" check box. I leave it on all the time ... theoretically, your compiled code is going to run more efficiently without, but in practical terms, I haven't seen a difference since Axcent days, the processors are fast enough to make it come to nothing. Code size is smaller though, so if you are really tight for memory (again, not real likely these days) you can turn it off once the kinks are worked out.
However, there are still times, even with the debug data there, that line numbers are not present on error messages, or flat out wrong. It's a good place to start though.
974: 01-16-2007 TUE 17:11:22 Interpreter Ref Error ? Index to large Line XXX