[Lazarus] Same executable behaves differently on different windows machines

Burkhard Carstens fpc at bcsoft.de
Wed Jul 23 11:23:35 CEST 2008

Am Mittwoch, 23. Juli 2008 10:35 schrieb Emmanouil Paissios:
> Hi all,
> I recently developed a program using lazarus and observed that the
> same executable for windows, performs completely faulty computations
> in a specific computer to which, unfortunately, I do not have much
> access, since it is the laptop of my supervisor. The aforementioned
> machine runs windows xp, yet in other windows xp and windows 2000
> versions I've tried, the program worked fine, also under wine. The
> project compiled for linux and mac behaved correctly.
> The program only performs various calculations according to a given
> input specified by the gui and plots several charts. No input files,
> no output files and no environment variables are used.
> I would appreciate any ideas of why something like this could
> possibly occur.

First thing that comes to mind is different locale setting, i.e. decimal 
separator etc. E.g. assuming the gui inputs are some floating point 
values entered in edit fields and later converted to float with 
StrToFloat, the conversion will fail, if the edit contains "1.23" but 
the systems decimal separator is set to "," (like e.g. on a german 
system) and thus expects "1,23".


More information about the Lazarus mailing list