Hi all!
I ran into the weirdest problem with an "Invalid floating point operation" error.
I'm using Delphi 2010, analyzing a stream of data. I did some tweaks to the code, added a few new algorithms, and suddenly Delphi threw the above mentioned error at a specific frame of my data. At first I was not surprised, because these things happen when you mess with the code. Problem was: Delphi never told me WHERE exactly the error occured!
Well, I had added my own little debug toy by implementing a form with a memo field. I created a little routine within that form that prints a message to the memo:
Then I added statements into my procedure that does all the data crunching, for instance:
With these messages, I wanted to track the progress of the procedure to see where it would break at frame 1763. So far so good, right?
Weird thing is, after I inserted that code, the error has DISAPPEARED. I have no idea why. Any ideas?
Oliver
I ran into the weirdest problem with an "Invalid floating point operation" error.
I'm using Delphi 2010, analyzing a stream of data. I did some tweaks to the code, added a few new algorithms, and suddenly Delphi threw the above mentioned error at a specific frame of my data. At first I was not surprised, because these things happen when you mess with the code. Problem was: Delphi never told me WHERE exactly the error occured!
Well, I had added my own little debug toy by implementing a form with a memo field. I created a little routine within that form that prints a message to the memo:
Code:
procedure DebugPrint(sMessage: String);
begin
frmDebug.Show;
frmDebug.Memo1.Lines.add( chr(10) + chr(13) + sMessage);
End;
Then I added statements into my procedure that does all the data crunching, for instance:
Code:
if iCurrentFrame > 1760 then
DebugPrint('CalcLungArea: ' + IntToStr(iCurrentFrame));
With these messages, I wanted to track the progress of the procedure to see where it would break at frame 1763. So far so good, right?
Weird thing is, after I inserted that code, the error has DISAPPEARED. I have no idea why. Any ideas?
Oliver