Fail to decompile method, index out of range

2 posts, 0 answers
  1. Ian
    Ian avatar
    1 posts
    Member since:
    Aug 2011

    Posted 16 Aug 2011 Link to this post

    Hello Everyone,

    I wrote a simple Windows form application in VB.NET 2005 and I'm trying to decompile it into C#. All's I have is the executable to decompile it. The form does have a DLL dependency and the DLL is found with the executable. Would this cause the error? This is the message.


    Current member / type: System.Void Compare_Helper.Form1::LoadFiles(System.String,System.String,System.String,System.String,System.String)
    File path: D:\AC_Dev_Core2\bin\Compare_Helper.exe
    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at System.Collections.Generic.List`1.get_Item(Int32 index)
       at System.Collections.ObjectModel.Collection`1.get_Item(Int32 index)
       at Telerik.JustDecompiler.Decompiler.Extensions.[](IList`1 list)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.•Ÿ(TypeDefinition typeDefinition, MethodInvocationExpression node)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.VisitMethodInvocationExpression(MethodInvocationExpression node)
       at Telerik.JustDecompiler.Ast.BaseCodeVisitor.Visit(ICodeNode node)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Visit(ICodeNode node)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.(IList`1 list, Boolean isExtensionMethod)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.VisitMethodParameters(IList`1 list)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.VisitMethodInvocationExpression(MethodInvocationExpression node)
       at Telerik.JustDecompiler.Ast.BaseCodeVisitor.Visit(ICodeNode node)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Visit(ICodeNode node)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(Expression expression)
       at Telerik.JustDecompiler.Ast.Extensions.ToCodeString(Expression expression)
       at .˜.ž(Expression expr)
       at .˜.œ(Expression expr)
       at .ž.()
       at .ž.()
       at .ž.()
       at .‰.()
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.€(InstructionBlock block)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.“(Int32 index, BlockStatement block)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.“(InstructionBlock start, InstructionBlock limit, BlockStatement block)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(ExceptionHandlerData data)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(InstructionBlock block, InstructionBlock previous)
       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

    I can't post the DLL and EXE for you to test, but if you give me your email I can try to email them with modified extensions.
  2. Yordan Dikov
    Admin
    Yordan Dikov avatar
    69 posts

    Posted 23 Aug 2011 Link to this post

    Hi Ian,

     Thank you for your report, we really appreciate it. Sending the assemblies will definitely help us pinpoint the issue. You can find me at Yordan [dot] Dikov [at] Telerik [dot] com. Please, don't hesitate to contact us about anything else that bothers you about JustDecompile.

    Greetings,
    Yordan Dikov
    the Telerik team

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

  3. DevCraft banner
Back to Top