Results 1 to 4 of 4

Thread: How to post .NET exceptions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to post .NET exceptions

    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:
    Spoiler Alert, click show to read: 
    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    DBEditor
    Assembly Version: 1.5.0.0
    Win32 Version: 1.5
    CodeBase: file:///C:/Users/Owner/Documents/Desktop/New%20Folder%20(6)/DBEditor.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Common
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Owner/Documents/Desktop/New%20Folder%20(6)/Common.DLL
    ----------------------------------------
    System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    pr-rxg6h
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


    Alternatively, you can put the whole thing in a spoiler section as I have done here.

  2. #2

    Default Re: How to post .NET exceptions

    Or a Code Box
    Or a Code Box inside a spoiler
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  3. #3

    Default Re: How to post .NET exceptions

    Adding a code box doesn't change anything unless it's in a spoiler. The Loaded Assemblies bit is still spammy in a code box.

  4. #4

    Default Re: How to post .NET exceptions

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •