RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Clicking on Bot -> Settings ToolStrip makes the program stop due to Converting to double

Open carvah opened this issue 10 years ago • 6 comments

Fix that officialy, i already fixed on my own :D

carvah avatar Jul 25 '16 19:07 carvah

Hello, was it like when you used Windowed version and you press Bot -> Settings it crashed? Did you found fix for it?

Smyyg avatar Jul 25 '16 20:07 Smyyg

I did

carvah avatar Jul 25 '16 20:07 carvah

@Arkacode Wanna share it ?:P

Smyyg avatar Jul 25 '16 20:07 Smyyg

its not a real fix, seems like if u change the latitude and longitude on App.config and replace the period (".") by a comma (",") it shows the settings form, the problem is when it shows, it takes off the comma/pediod, for example, you change the latitude to 52,22244 and when it shows on settings form it shows without commas like 5222244, u need to change it manually, its a minor bug, but can be fixed with some conversions. @OwnarDoz

carvah avatar Jul 25 '16 20:07 carvah

@Arkacode Gotcha

Smyyg avatar Jul 25 '16 21:07 Smyyg

gMapControl1.Position = new PointLatLng(double.Parse(lat, CultureInfo.InvariantCulture), double.Parse(longit, CultureInfo.InvariantCulture));

Add the CultureInfo.InvariantCulture and remove the replace of the ',' and '.' and it should work.

niclas88 avatar Jul 26 '16 06:07 niclas88