I have a problem withstring format, can anyone know how to fix this?

Kunitachi Hineru 0 Reputation points
2023-06-11T08:47:33.2166667+00:00
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at THMHJ.PadState.InitPad(IniFiles ini)
   at THMHJ.Main.Initialize()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at THMHJ.Program.Main(String[] args)
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-06-12T15:14:14.05+00:00

    My guess would that a value in the ini file is not correct. Either it’s missing or not in proper number format.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.