Board index » delphi » Delphi Bug: Real Constants sometimes show wrong values

Delphi Bug: Real Constants sometimes show wrong values

Hi,

the following bug occured under Delphi 2.01:

Real constants, defined in a unit, show random values at times. The
problem is very hard to track down. So far it shows up with multiple
units sharing global data. The constants show very big values (~1e300),
but if the unit with the constant definitions is recompiled, the values
show as defined. After a rebuild the constants are wrong again.

Is this a known bug?

Typed Constants are always ok as these are in fact variables. So always
use Typed Constants if you want Real constants!

-Andreas

--
Andreas Bormann         EMail:  andr...@procyon.ping.de
Witten, Germany         Online: Andreas.Borm...@cww.de

 

Re:Delphi Bug: Real Constants sometimes show wrong values


: Andreas Bormann <andr...@procyon.ping.de> wrote:

Quote
>Hi,

>the following bug occured under Delphi 2.01:

>Real constants, defined in a unit, show random values at times. The
>problem is very hard to track down. So far it shows up with multiple
>units sharing global data. The constants show very big values (~1e300),
>but if the unit with the constant definitions is recompiled, the values
>show as defined. After a rebuild the constants are wrong again.

>Is this a known bug?

Yes.

A concise description probably is already available at

  http://www.dataweb.nl/~r.p.sterkenburg/bugsall.htm

--
Stefan.Hoffmeis...@UNI-Passau.DE
http://kakadu.rz.uni-passau.de/~w4hoff01/
University of Passau, Bavaria, Germany

Other Threads