Range check error
I've recently written a program that uses the BRIS comma delimited Single File. It works but about 3% of the time the program crashes with a "range check error." I've traced the problem to fields 846 .. 855 "BRIS Speed Rating." In my program this variable is an untyped integer. Using LibreOffice I've examined the data that causes the crashes. It seems to be caused because the BRIS Speed Rating goes negative. So I changed the variable to a signed integer. That should have cured the problem. It did not.
I've gotten around the problem by turning automatic range checking off. But the problem still bugs me (no pun intended). So does anyone have any ideas of how this problem might defy a cure. I've over and over my code and can find no reason that the problem should exist.
__________________
Sapere aude
|