Hello,
I am working on a project in Borland Developer Studio 2006, and am
running into an error I
don't understand. Here is the relevant code:
//---------------------------------------------------
double splitLoc = 0, fs = 512;
double timeRange[3];
int tArr[3];
// these values come from a file, and just happen to be in the one I am
using now
timeRange[0] = -1.5;
tArr[0] = 0;
tArr[2] = 0;
// This is where the error occurs
splitLoc += timeRange[0] * fs; //this is fine
splitLoc += (double)(tArr[2] - tArr[0]);
//----------------------------------------------------
This last line always throws the exception:
First chance exception at $7C81EB33. Exception class EInvalidOp with
message 'Invalid floating point operation'. Process test.exe (3040)
The program compiles fine, so what else could be causing this?
Thanks!
Adam