Runtime exception on Windows and not on Mac

According to the format that Xojo uses for ToString:
https://unicode.org/reports/tr35/tr35-4.html#Number_Format_Patterns
your format pattern should be "###,###.##" and the locale should change the ‘,’ and ‘.’ to what the locale should use.

I’m not sure if that is the problem with your error and don’t know why it works on Mac and not on Windows.