soopercool101 / BrawlCrate

BrawlBox/BrawlTools Fork, Wii File Editor
https://discord.gg/s7c8763
GNU Lesser General Public License v3.0
148 stars 38 forks source link

More fixes for Mono #8

Closed mierenhoop closed 4 years ago

soopercool101 commented 4 years ago

That second commit worries me, though it seems to only affect the Hex view by the look of it, what error did you get?

mierenhoop commented 4 years ago

Opening a MDL0GroupNode, clicking on a child and then closing the MDL0GroupNode again results in a crash. I don't know yet why the problem occurs in the Hex Editor as I don't see one. The second commit seems to fix the error, though it might not be the best solution. Anyways here is the error: System.NullReferenceException: Object reference not set to an instance of an object at BrawlLib.Internal.Windows.Controls.Hex_Editor.DynamicFileByteProvider.GetDataBlock (System.Int64 findOffset, System.Int64& blockOffset) [0x0001c] in <0314cbe012da4415ac295d2113e035d9>:0 at BrawlLib.Internal.Windows.Controls.Hex_Editor.DynamicFileByteProvider.ReadByte (System.Int64 index) [0x00001] in <0314cbe012da4415ac295d2113e035d9>:0 at BrawlLib.Internal.Windows.Controls.Hex_Editor.HexBox.PaintHexAndStringView (System.Drawing.Graphics g, System.Int64 startByte, System.Int64 endByte) [0x00396] in <0314cbe012da4415ac295d2113e035d9>:0 at BrawlLib.Internal.Windows.Controls.Hex_Editor.HexBox.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00075] in <0314cbe012da4415ac295d2113e035d9>:0 at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x0007c] in <5ad3d0bd1cd24243af30eb325f259ec8>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001a4] in <5ad3d0bd1cd24243af30eb325f259ec8>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <5ad3d0bd1cd24243af30eb325f259ec8>:0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <5ad3d0bd1cd24243af30eb325f259ec8>:0