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

Error when load designer.cs file - System.IndexOutOfRangeException: Index was outside the bounds of the array. #7

Open
Wolvverine opened this issue Mar 14, 2025 · 1 comment

Comments

@Wolvverine
Copy link

Wolvverine commented Mar 14, 2025

Error when load designer.cs file:

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 SWD4CS.cls_file.ReadCode(String filePath) in \GitHub\SWD4CS\cls_file.cs:line 76
at SWD4CS.cls_file.OpenFile() in \GitHub\SWD4CS\cls_file.cs:line 338
at SWD4CS.MainForm.openToolStripMenuItem_Click(Object sender, EventArgs e) in \GitHub\SWD4CS\MainForm.cs:line 56
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

@Wolvverine
Copy link
Author

Problem with Unix EOL files (LF)

Wolvverine added a commit to Wolvverine/SWD4CS that referenced this issue Mar 14, 2025
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