Error while viewing InitializeComponent in .net 1.1 Form

4 posts, 0 answers
  1. d
    d avatar
    1 posts
    Member since:
    Jul 2011

    Posted 12 Jul 2011 Link to this post

    The error happens only in C# or VB mode for .net version 1.0.5000.0:
    Here it is:

    Current member / type: System.Void MyNamespace.MyForm::InitializeComponent()
    File path: C:\MyNamespace.exe
    Stack empty.
       at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
       at System.Collections.Generic.Stack`1.Pop() at ..() at ..OnCall(Instruction instruction) at ..OnCallvirt(Instruction instruction) at ..(Instruction instruction, IInstructionVisitor visitor) at Telerik.JustDecompiler.Cil.BaseInstructionVisitor.Visit(Instruction instruction) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(Instruction instruction) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(InstructionBlock block) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.€(InstructionBlock block) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.() at Telerik.JustDecompiler.Decompiler.StatementDecompiler.Run() at Telerik.JustDecompiler.Decompiler.StatementDecompiler.Process(DecompilationContext context, BlockStatement body) at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body, ILanguage language) at Telerik.JustDecompiler.Decompiler.Extensions.(DecompilationPipeline pipeline, ILanguage language, MethodBody body) at Telerik.JustDecompiler.Decompiler.Extensions.Decompile(MethodBody body, ILanguage language) at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(MethodDefinition method) at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(IMemberDefinition member, Boolean showCompilerGeneratedMembers) at JustDecompile.CodeViewer.CodeWriter.Write() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\CodeWriter.cs:line 32 at JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode member, CancellationToken cancellationToken) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 116




    the IL does not throw so here is its output for InitializeComponent():

     

    .method private hidebysig
     instance void InitializeComponent () cil managed
    {
     .locals init (
      [0] class [System.Windows.Forms]System.Windows.Forms.MenuItem[] V_0
     )

     IL_0000: ldarg.0
     IL_0001: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_0006: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_000b: ldarg.0
     IL_000c: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_0011: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServer
     IL_0016: ldarg.0
     IL_0017: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_001c: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServerPort
     IL_0021: ldarg.0
     IL_0022: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_0027: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServerPort
     IL_002c: ldarg.0
     IL_002d: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_0032: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labSource
     IL_0037: ldarg.0
     IL_0038: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_003d: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labDestination
     IL_0042: ldarg.0
     IL_0043: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_0048: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtSource
     IL_004d: ldarg.0
     IL_004e: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_0053: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtDestination
     IL_0058: ldarg.0
     IL_0059: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_005e: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labSpecID
     IL_0063: ldarg.0
     IL_0064: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_0069: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtSpecID
     IL_006e: ldarg.0
     IL_006f: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_0074: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labTimeOut
     IL_0079: ldarg.0
     IL_007a: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_007f: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtTimeOut
     IL_0084: ldarg.0
     IL_0085: newobj instance void [System.Windows.Forms]System.Windows.Forms.Button::.ctor()
     IL_008a: stfld class [System.Windows.Forms]System.Windows.Forms.Button MyNamespace.MyForm::cmdSend
     IL_008f: ldarg.0
     IL_0090: newobj instance void [System.Windows.Forms]System.Windows.Forms.MainMenu::.ctor()
     IL_0095: stfld class [System.Windows.Forms]System.Windows.Forms.MainMenu MyNamespace.MyForm::mainMenu1
     IL_009a: ldarg.0
     IL_009b: newobj instance void [System.Windows.Forms]System.Windows.Forms.MenuItem::.ctor()
     IL_00a0: stfld class [System.Windows.Forms]System.Windows.Forms.MenuItem MyNamespace.MyForm::menuItem1
     IL_00a5: ldarg.0
     IL_00a6: newobj instance void [System.Windows.Forms]System.Windows.Forms.MenuItem::.ctor()
     IL_00ab: stfld class [System.Windows.Forms]System.Windows.Forms.MenuItem MyNamespace.MyForm::menuItem5
     IL_00b0: ldarg.0
     IL_00b1: newobj instance void [System.Windows.Forms]System.Windows.Forms.MenuItem::.ctor()
     IL_00b6: stfld class [System.Windows.Forms]System.Windows.Forms.MenuItem MyNamespace.MyForm::menuItem2
     IL_00bb: ldarg.0
     IL_00bc: newobj instance void [System.Windows.Forms]System.Windows.Forms.MenuItem::.ctor()
     IL_00c1: stfld class [System.Windows.Forms]System.Windows.Forms.MenuItem MyNamespace.MyForm::menuItem3
     IL_00c6: ldarg.0
     IL_00c7: newobj instance void [System.Windows.Forms]System.Windows.Forms.MenuItem::.ctor()
     IL_00cc: stfld class [System.Windows.Forms]System.Windows.Forms.MenuItem MyNamespace.MyForm::menuItem4
     IL_00d1: ldarg.0
     IL_00d2: newobj instance void [System.Windows.Forms]System.Windows.Forms.OpenFileDialog::.ctor()
     IL_00d7: stfld class [System.Windows.Forms]System.Windows.Forms.OpenFileDialog MyNamespace.MyForm::openFileDialog1
     IL_00dc: ldarg.0
     IL_00dd: newobj instance void [System.Windows.Forms]System.Windows.Forms.SaveFileDialog::.ctor()
     IL_00e2: stfld class [System.Windows.Forms]System.Windows.Forms.SaveFileDialog MyNamespace.MyForm::saveFileDialog1
     IL_00e7: ldarg.0
     IL_00e8: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_00ed: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labURL
     IL_00f2: ldarg.0
     IL_00f3: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_00f8: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtURL
     IL_00fd: ldarg.0
     IL_00fe: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_0103: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labMsgLength
     IL_0108: ldarg.0
     IL_0109: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_010e: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtMsgLength
     IL_0113: ldarg.0
     IL_0114: newobj instance void [System.Windows.Forms]System.Windows.Forms.GroupBox::.ctor()
     IL_0119: stfld class [System.Windows.Forms]System.Windows.Forms.GroupBox MyNamespace.MyForm::gbMessage
     IL_011e: ldarg.0
     IL_011f: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_0124: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::label1
     IL_0129: ldarg.0
     IL_012a: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_012f: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtMessage
     IL_0134: ldarg.0
     IL_0135: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
     IL_013a: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtSessionHash
     IL_013f: ldarg.0
     IL_0140: newobj instance void [System.Windows.Forms]System.Windows.Forms.CheckBox::.ctor()
     IL_0145: stfld class [System.Windows.Forms]System.Windows.Forms.CheckBox MyNamespace.MyForm::cbUseRegVal
     IL_014a: ldarg.0
     IL_014b: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
     IL_0150: stfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::label2
     IL_0155: ldarg.0
     IL_0156: ldfld class [System.Windows.Forms]System.Windows.Forms.GroupBox MyNamespace.MyForm::gbMessage
     IL_015b: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::SuspendLayout()
     IL_0160: ldarg.0
     IL_0161: call instance void [System.Windows.Forms]System.Windows.Forms.Control::SuspendLayout()
     IL_0166: ldarg.0
     IL_0167: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_016c: ldc.i4.s 13
     IL_016e: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Anchor(valuetype [System.Windows.Forms]System.Windows.Forms.AnchorStyles)
     IL_0173: ldarg.0
     IL_0174: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_0179: ldc.i4.s 64
     IL_017b: ldc.i4.8
     IL_017c: newobj instance void [System.Drawing]System.Drawing.Point::.ctor(int32,  int32)
     IL_0181: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Location(valuetype [System.Drawing]System.Drawing.Point)
     IL_0186: ldarg.0
     IL_0187: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_018c: ldstr "txtServer"
     IL_0191: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Name(string)
     IL_0196: ldarg.0
     IL_0197: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_019c: ldc.i4 224
     IL_01a1: ldc.i4.s 20
     IL_01a3: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,  int32)
     IL_01a8: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
     IL_01ad: ldarg.0
     IL_01ae: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_01b3: ldc.i4.0
     IL_01b4: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_TabIndex(int32)
     IL_01b9: ldarg.0
     IL_01ba: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox MyNamespace.MyForm::txtServer
     IL_01bf: ldstr ""
     IL_01c4: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
     IL_01c9: ldarg.0
     IL_01ca: ldfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServer
     IL_01cf: ldc.i4.0
     IL_01d0: ldc.i4.8
     IL_01d1: newobj instance void [System.Drawing]System.Drawing.Point::.ctor(int32,  int32)
     IL_01d6: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Location(valuetype [System.Drawing]System.Drawing.Point)
     IL_01db: ldarg.0
     IL_01dc: ldfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServer
     IL_01e1: ldstr "labServer"
     IL_01e6: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Name(string)
     IL_01eb: ldarg.0
     IL_01ec: ldfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServer
     IL_01f1: ldc.i4.s 64
     IL_01f3: ldc.i4.s 16
     IL_01f5: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,  int32)
     IL_01fa: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
     IL_01ff: ldarg.0
     IL_0200: ldfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServer
     IL_0205: ldc.i4.1
     IL_0206: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_TabIndex(int32)
     IL_020b: ldarg.0
     IL_020c: ldfld class [System.Windows.Forms]System.Windows.Forms.Label MyNamespace.MyForm::labServer

     

  2. Yordan Dikov
    Admin
    Yordan Dikov avatar
    69 posts

    Posted 20 Jul 2011 Link to this post

    Hello D,

     My apologies for the late response. Sadly, I am unable to reproduce this bug over here. Could you, please, send us the assembly where that happens? Rather unfortunately, that's the only way we could diagnose this issue. If you would not like  to share it publicly you can send it via email to yordan dot dikov at telerik dot com.

    Greetings,
    Yordan Dikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. Martijn Vandevyvere
    Martijn Vandevyvere avatar
    1 posts
    Member since:
    Jan 2009

    Posted 20 Jul 2011 Link to this post

    I think I've been presented with this issue on my machine. The way I could reproduce is was by opening one of your assemblies under the default install directory: C:\Program Files (x86)\Telerik\JustDecompile\Libraries\


    In there I selected you 'Infrastructure.dll', navigated to the 'Infrastructure.Commands' namespace and selected the 'ControlKeyDown' class. Finally selected the 'GetCommandParameter' or another method within that class. This resulted in the below error (which is  something similar to the original post error). Difference here is that the assembly is build in .net 4.0.
  5. Yordan Dikov
    Admin
    Yordan Dikov avatar
    69 posts

    Posted 28 Jul 2011 Link to this post

    Hi Martijn Vandevyvere,

     Thank you for providing us with steps to reproduce the bug. We've successfully reproduced it and will take care of it.

    All the best,
    Yordan Dikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top