floating point Error

i"m use deslphi3
during the debug after i"m stop at breakpoint, i"m getting Erro "floating point Error' it always happend after breakpoint. and not in a specicfic place in the code.
when i"m remove the breakpoint i have no "floating point " Error Message .
why ?
thank you
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Oh it seems that your code is so buggy that it influences the IDE and its debugger. Additionally, the debugger in D3 (and D4 for that matter) weren't particularly stable. It happend to me that I had to kill the IDE (although it was perfectly responding) because it wasn't able to kill the process it has started which had a serious bug in it...

Ciao, Mike
From the last two questions you asked, I would try reinstalling Delphi.
Make sure you are compiling with optimisation turned off and stack frames turned on.


Hi, happened to me a couple of times and I'm also using Delphi 3.
Next time close your "Call Stack" window before running your program from the IDE.

This is because the "Call Stack" displays the list of procedures with the parameters. At the moment of the breakpoint some parameters are undefined and when the "Call Stack" window try to display the value of the parameter you get the "floating point operation" message.

It doesn't mean your code is buggy. Just consider this example:

Procedure AAA;
  Procedure BBB(var number:extended);
{    at this moment number is undefined
and when the "Call Stack" try to display "number" you might get the "Floating point operation" message
    number := 0;

  using n at this moment might cause an exception

If you need the "Call Stack" window then  you must initialize your variables. Like n := 0; before calling BBB;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
asiAuthor Commented:
i just close the Watch list and it solve the problem
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.