[Lazarus] Same executable behaves differently on different windows machines
e.paissios at gmail.com
Thu Jul 24 19:49:29 CEST 2008
Wow, it was indeed related to the separators. The actual problem was
that for some reason in his system the decimal separator was the
same as the thousand separator... Setting DecimalSeparator and
ThousandSeparator solved it.
Thanks very much for all the help,
On Thu, Jul 24, 2008 at 12:03 PM, Coppola Ing. Salvatore
<coppolastudio at gmail.com> wrote:
> Burkhard Carstens wrote:
>> 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".
> In that case can help to set
> or viceversa
> at main form create event
>> Lazarus mailing list
>> Lazarus at lazarus.freepascal.org
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
More information about the Lazarus