Bug with Regional and Language Settings
Hi all,
I have a Delphi 5 application running in Windows 7, some users have reported errors with the application and custom logs have indicated that the error occurs
when converting a strToFloat. Further debugging of the application has revealed that the decimal separator is not being correctly identified by delphi.
To resolve this the user must change the regional settings to something else then set them back to the require setting and the application will work. The
process of changing regional settings will correctly set the decimal separator and the application can run with no errors. This issue is not consistently seen in windows 7 environment, and I can’t replicate it.
Form what I have read on other forums this is a widespread issue with various elements of the regional settings, including dates/currency symbol and decimal
separator, but has this been recognised as an official bug and is there any info on the specific scenario in which it will occur? Will this be addressed in n update or hotfix?
http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/b4f90f07-206c-494b-8d14-ee17bfa689e0
Any info appreciated.
February 21st, 2011 2:59am
first try a newer Delphi version. If you still get errors, run a remote debugger."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 21st, 2011 10:46am
Thanks Andre for your response.
Using a new version of Delphi is not a realistic option we are not in a position to rewrite our application for a small number of Windows 7 users. As I have stated we are
confident that the problem is with the failure to detect the correct regional and language settings, specifically the decimal separator, and are really interested to know if Microsoft has recognised this as an official bug
or if there is a known issue with the regional setting and if there is a specific scenario to recreate this behaviour.
Where and how can I report this as a bug?
Thanks, Kathy
February 22nd, 2011 3:30am
Delphi 2007 is the latest ANSI version of Delphi. Try this version. I think it's a Delphi Bug. Check their bug tracker first."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2011 9:53am