Commands.rhp not loaded if regional format is set to Thailand

Hi,
we have a problem on our computers with Rhino 8.7 if the Regional format is set to Thailand in windows: the commands.rhp plugin from McNeel does not load (and much more plugins are not loaded) and some very important commands like _Circle or _Cylinder do not work.

The only message i get in the command windows is following:

System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter ‘length’)
at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
at System.String.Substring(Int32 startIndex, Int32 length)
at Commands.CommandsPlugIn.CreateCommands()
at Rhino.PlugIns.PlugIn.InternalCreateCommands()
at Rhino.Runtime.HostUtils.CreateCommands(PlugIn plugin)
at Rhino.PlugIns.PlugIn.CreateFromAssembly(Assembly pluginAssembly, Boolean displayDebugInfo, Boolean useRhinoDotNet)

The only workaround i found is Issue with Circle, Arc, and Polygon command in Rhino 8 which leads to many other problems, as it switches the runtime.

Do you have a solution for that?
BR

Was this working for you before 8.7?

I’ve created a bug report to get this looked into. RH-83005

Hi @Japhy,

thanks for creating a bug report.

Unfortunately we did not use Rhino 8 in Thailand before Rhino 8.7, so therefore i have no answer.
But in Rhino 7 (at least 7.8) it worked (if that helps).

BR

1 Like

Hi BR,

Please test this in the most recent version of V8 and tell us what you find. It’s unlikely to have changed but it will save us some effort if it has and if any fix is made it will be in most recent version.

Tim

I think I see what could be causing this and am making a fix right now. Once we have an 8.10 release candidate available (hopefully later today) it would be good to test and see if this works.

1 Like

Dear @stevebaer

first of all, thanks for this fast answer.
I’m not sure if your fix is already in the last 8.10 release candidate 8.10.24198.

Nevertheless i tried it on a computer with the regional format set to Thailand and it is still the same behavior.

Wolfgang

Do you get the same error message printed out in the command window?

Yes totally the same. Nothing changed.

Hi @stevebaer ,

just wondering if there is something new which i can test?

Wolfgang

Not yet, but I am planning to send you some test builds if the next 8.10 release candidate available later today does not work.

1 Like

@dsw Are you still seeing commands not load in the latest 8.10 release candidate? If so, please past the error message that you are seeing in the command history window

Dear @stevebaer ,

today i had time to test the 8.10.24205.13001 Release Candidate on a computer with region settings in Thai.
And the good news is, it works now. There are no error message in the console window and the commands.rhp loaded successfully.

Thanks a lot for your efforts.
Wolfgang

2 Likes

RH-83005 is fixed in Rhino 8 Service Release 10