How to determine which code is generated? "Invalid floating point value"

I am using Delphi 2010 and have a program that continues to generate a dialog box with a message

'' is not a valid floating point value

How do I get delphi to show me the line that generated this error?

+3
source share
2 answers

The easiest way to solve this is to run under the debugger and set it to Notify about language exceptions , Tools | Parameters:

enter image description here

Ignore the large list of ignore exceptions that come from my own code base. Just make sure the checked box is checked.

, , , .

+4

StrToFloat. , . :

Trim (StrV) = '', StrV: = '0.0'; f: = StrToFloat (StrV);

0

Source: https://habr.com/ru/post/1794100/


All Articles