RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll

Open jefvanhoyweghen opened this issue 10 years ago • 5 comments

When I try to run the form of the newest version, it gives me an error if I click on Bot > Settings.

gMapControl1.Position = new PointLatLng(Convert.ToDouble(lat), Convert.ToDouble(longit));

An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll

jefvanhoyweghen avatar Jul 25 '16 08:07 jefvanhoyweghen

Window is pretty broken right now, use console will be better

brianzhouzc avatar Jul 25 '16 08:07 brianzhouzc

it works for me, always has been not sure what the issue is.

DetectiveSquirrel avatar Jul 25 '16 08:07 DetectiveSquirrel

I also have this error.

KoBa4 avatar Jul 26 '16 11:07 KoBa4

I dont have any probs too...maybe you entered your pos in wrong format? like with . or , ?

Deathwing avatar Jul 26 '16 13:07 Deathwing

I`ve done it this: gMapControl1.Position = new PointLatLng(double.Parse(lat.Replace(",", "."), CultureInfo.InvariantCulture), double.Parse(longit.Replace(",", "."), CultureInfo.InvariantCulture)); Works for me.

HokoriXIII avatar Jul 26 '16 13:07 HokoriXIII