System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Array is too small.
Parameter name: 32
Source=SabawConverter
StackTrace:
at SabawConverter.Form1.Tgas(Byte[] indata) in C:\Users\Arex\Documents\Sabaw\SabawConverter\SabawConverter\Form1.cs:line 87
at SabawConverter.Form1.ProcessFile(String filePath) in C:\Users\Arex\Documents\Sabaw\SabawConverter\SabawConverter\Form1.cs:line 76
at SabawConverter.Form1.ProcessDirectory(String dirPath) in C:\Users\Arex\Documents\Sabaw\SabawConverter\SabawConverter\Form1.cs:line 52
at SabawConverter.Form1.buttonSabaw_Click(Object sender, EventArgs e) in C:\Users\Arex\Documents\Sabaw\SabawConverter\SabawConverter\Form1.cs:line 40
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.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SabawConverter.Program.Main() in C:\Users\Arex\Documents\Sabaw\SabawConverter\SabawConverter\Program.cs:line 19
Сообщение об ошибке, которое я получил, когда мое приложение обрабатывает файл для его распаковки
Код в строке 87
Я пытался заменить «32» на «dat», но результат тот же
throw new ArgumentOutOfRangeException("32", "Array is too small.");
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... -midi-data
Ошибка массива слишком мала при распаковке MIDI-данных ⇐ C#
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение