Anyone who gets an unhandled exception in .NET program sees the nice stack trace:
Spoiler Alert, click show to read:
************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.MemoryStream.InternalReadInt32()
at System.IO.BinaryReader.ReadInt32()
at DBEditor.DBDataSet.readTable(DataTable table, BinaryReader reader)
at DBEditor.DBDataSet.ReadDB(DataTable table, Byte[] DBByteArray)
at DBEditor.DBEditorForm.readPackedDB(PackedFile file, DataTable table, Boolean initialize)
at DBEditor.DBEditorForm.DBTablesComboBox_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ToolStripComboBox.HandleSelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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)
The stack trace is usually quite helpful.
Most people also paste the next section, which is quite spammy and not so helpful (other than to see the program version, but that can be mentioned separately). Please don't paste this section, and if you've already pasted it in an existing post, please erase it since it makes the threads hard to read:
I got this trying to open vanilla unit_stats_land (1.4) with DB Editor 1.5.2:
Spoiler Alert, click show to read:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at DBEditor.DBDataSet.readTable(DataTable table, BinaryReader reader)
at DBEditor.DBDataSet.ReadDB(DataTable table, Byte[] DBByteArray)
at DBEditor.DBEditorForm.readPackedDB(PackedFile file, DataTable table, Boolean initialize)
at DBEditor.DBEditorForm.DBTablesComboBox_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WndProc(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)
Is this posted correctly and is this in the right area?
EDIT: Nevermind; DB Editor 1.6 does not have this problem.
Last edited by A1_Unit; September 29, 2009 at 01:02 PM.