Closed EAlexJ closed 1 year ago
As far as I can tell the error above does not stop CCDLAB from working, just is a nuissance
It may have been missing a new registry entry which it required for setting up a new control recently added. I updated the registry with a fresh installer:
Since this error seems to be related, I decided to reopen the issue:
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Der Wert 9999999999 ist für Value ungültig. Value sollte zwischen 'Minimum' und 'Maximum' liegen.
Parametername: Value
Source=System.Windows.Forms
StackTrace:
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at CCDLAB.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\Alex\Downloads\CCDLAB-2023.03.29\CCDLAB\CCDLAB.cs:line 69
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.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at CCDLAB.Program.Main(String[] startargs) in C:\Users\Alex\Downloads\CCDLAB-2023.03.29\CCDLAB\Program.cs:line 24
The error is caused by the following line of code:
PSEKernelMaxUpD.Value = Convert.ToDecimal(REG.GetReg("CCDLAB", "PSECountValMax"));
Oh! It is that language culture thing again.
The value is supposed to be
9999999.999
but it looks from the error message that it is
9999999999
What happens is that 9999999,999 get changed to 9999999999 instead of 9999999.999 - or something.
It is reading the registry value in order to load the last-used settings. This control is almost never used, and is set to its maximum value which is 9999999.999. So when CCDLAB loads, it tries to set it to that value, but 9999999.999 gets converted to 9999999999 likely because of the problem of 9999999,999.
Can you change your number format preferences for your OS? Decimals should be ".", instead of ",". I think that there's a Windows setting for that. This is the same issue as with the AstraCarta call.
Following the guide on this microsoft psupport page and making sure the seperator is indeed a period instead of a comma solved this error aswell as allowing AstraCarta to return a query successfully.
TLDR: When using CCDLAB make sure the formatsetting in windows for decimals is a period (".").
Whenever I start CCDLAB I get an errormessage with the following details:
Any help is appreciated!