Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of Bounds Exception Thrown for First Match #7

Open
kwakevainen opened this issue Feb 14, 2020 · 3 comments
Open

Out of Bounds Exception Thrown for First Match #7

kwakevainen opened this issue Feb 14, 2020 · 3 comments

Comments

@kwakevainen
Copy link
Collaborator

When saving the first match with an empty MatchData.csv the following exception is thrown:
"
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at FRCScouting.RobotData.SaveData(String dataFile, Int32 matchNumber) in C:\Users\Katie\Documents\Robotics\2020-Scouting\FRCScouting\RobotData.cs:line 103
at FRCScouting.Form1.btnSaveMatchData_Click(Object sender, EventArgs e) in C:\Users\Katie\Documents\Robotics\2020-Scouting\FRCScouting\Form1.cs:line 329
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)"

@kwakevainen
Copy link
Collaborator Author

I'm actually getting this error every time I click save?

@kwakevainen
Copy link
Collaborator Author

The data is not saving to MatchData.csv

@kwakevainen
Copy link
Collaborator Author

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at FRCScouting.RobotData.SaveData(String dataFile, Int32 matchNumber) in C:\Users\Katie\Documents\Robotics\2020-Scouting\FRCScouting\RobotData.cs:line 105
at FRCScouting.Form1.btnSaveMatchData_Click(Object sender, EventArgs e) in C:\Users\Katie\Documents\Robotics\2020-Scouting\FRCScouting\Form1.cs:line 329
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant