Giter Site home page Giter Site logo

Comments (5)

EAlexJ avatar EAlexJ commented on June 27, 2024

As far as I can tell the error above does not stop CCDLAB from working, just is a nuissance

from ccdlab.

user29A avatar user29A commented on June 27, 2024

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:

https://github.com/user29A/CCDLAB/releases/tag/2023.05.01

from ccdlab.

EAlexJ avatar EAlexJ commented on June 27, 2024

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"));

from ccdlab.

user29A avatar user29A commented on June 27, 2024

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.

from ccdlab.

EAlexJ avatar EAlexJ commented on June 27, 2024

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 (".").

from ccdlab.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.