Issue Tracker

< Back to issue list...

Summary: Floating point number format mismatch prevents the program from starting

Issue# Type Category Severity Status
145 Bug Core


When certain international date formats are selected in Regional and Language Options, Windows represents floating-point numbers with commas instead of periods (1,0 instead of 1.0).

Due to this, certain components of the program are unable to properly handle saved configurations. One such section is the theming engine, which is one of the core modules loaded at startup. It looks for a scaling factor in the configuration file and is unable to interpret the string "1.0" as a valid floating-point number; this causes the program to crash. Clicking "Ignore and Continue" does not allow the program to run either.

Original user input:
Installed on Windows XP SP3 (French edition) and installation went OK.
When launching, once accepting the EULA and clicking on the button "Start NPS", it crashes with this error message (hope it helps):

Input string was not in a correct format.


Stack trace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
at NPS.frmPaint.ScaleControl(SizeF factor, BoundsSpecified specified)
at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
at System.Windows.Forms.ContainerControl.PerformNeededAutoScaleOnLayout()
at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
at NPS.frmPaint.InitializeComponent()
at NPS.frmPaint..ctor(Boolean IsFirstInstance)
at NPS.mdlStartup.StartApplication(ReadOnlyCollection`1 CommandLineArgs)
at NPS.mdlStartup.Main()
at NPS.frmStartupHandler.frmStartupHandler_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Steps to Reproduce

Run NPS Image Editor on a system with a date format selected that uses commas in place of periods


Change the display of floating-point numbers to use a period (.) instead of a comma (,) in Regional and Language Options. This is undesirable for most, so please follow Workaround #2 instead.

This will allow the program to start, but is not as reliable as Workaround #1 (i.e. it may introduce more bugs).
1) Press the Windows+R keys on your keyboard. In the "Run" dialog, type "%appdata%\NPS\3_0" without the quotes and hit Enter.
2) Open the "NPS.ini" file
3) Delete everything in the file and then paste in the text below
ScaleFactor = "1,0"
4) Save the file, and run NPS Image Editor. It should now start up successfully.

This is a high-priority issue that will be fixed in the next release

Fixed in 3.0.10458.85

Timing Information

Entered Closed Age
10/5/2013 03:42 PM CST 7/12/2014 09:55 PM CST 280 days

Additional Information

Reported Version Operating System Architecture Fixed Version
3.0.9622.81 Windows 7 x64 .NET 3.0.10458.85