Silverfrost Forums

Welcome to our forums

got a strange read error

15 Feb 2017 6:51 #18833

I'm getting a floating point error, with the following line:

READ (NU, REC=IREC, iostat=IOS, err=9000) IVAL, NXTREC, LSTREC, ICVER

which seems strange because it doesn't go to the err= line and the 4 variables that it's reading are all INTs!

any ideas?

K

15 Feb 2017 8:47 #18834

I think that the err return would be for an error in the data whereas this appears to be something to do with the type of the variables.

Are you sure that they are all integers?

15 Feb 2017 9:48 #18835

i've emailed you a couple of screen grabs from SDBG...

let me know if you need anything else.

K

16 Feb 2017 5:47 #18838

My guess is that you have project settings or compiler options that cause the integers being read to be 8-byte integers, since FTN95 processes 8-byte integers using X87 instructions and the X87 register stack ST0-7.

17 Feb 2017 3:58 #18844

thanks, but under SDBG i can see that the variables being read are all INT*4s and the binary data being read are all valid (e.g. hex 77), so it remains a mystery for now.

Anyway, i've sent the data and a debuggable app to Silverfrost, so i'll wait and see what they find.

K

Please login to reply.