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

Inserting bytes throws an unhandled exception #254

Closed
qqshutup opened this issue Apr 29, 2023 · 1 comment
Closed

Inserting bytes throws an unhandled exception #254

qqshutup opened this issue Apr 29, 2023 · 1 comment

Comments

@qqshutup
Copy link

Steps to reproduce

  • Add a union at any offset
  • Select the union and insert some byte

Screenshot_1

Exception Text

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: The index -1 is not in the range [0, 1].
at ReClassNET.Nodes.BaseContainerNode.InsertBytes(Int32 index, Int32 size, List`1& createdNodes)
at ReClassNET.Forms.MainForm.InsertBytesInClass(Int32 bytes)
at ReClassNET.Forms.MainForm.insertBytesToolStripMenuItem_Click(Object sender, EventArgs e)
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.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
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.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

@KN4CK3R
Copy link
Member

KN4CK3R commented Apr 29, 2023

Thank you for the report. Fixed with a895421.

@KN4CK3R KN4CK3R closed this as completed Apr 29, 2023
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

2 participants