top of page

CNC3D Commander Users

Public·1 member

CNC3D commander number format issue

Hi Guy's,

When I try to load a job I've the following exception :


System.InvalidCastException: La conversion de la chaîne "0.000" en type 'Double' n'est pas valide. ---> System.FormatException: Le format de la chaîne d'entrée est incorrect.
   à Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   à Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   --- Fin de la trace de la pile d'exception interne ---
   à Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   à SharpCNC_Config_tool.frmMain.NJDIGKxXRT(Object  , EventArgs  )
   à System.Windows.Forms.Control.OnClick(EventArgs e)
   à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I think you need to implement CultureInfo to avoid this when parsing a string to a number.

My windows is a French version, and the decimal separator in France is comma, not point.


Regards

160 Views

Have anyone found a way out of this issue?

About

A discussion thread for users to collaborate. troubleshoot a...

bottom of page