ArgumentOutOfRangeException

3 posts, 0 answers
  1. Jason Evans
    Jason Evans avatar
    1 posts
    Member since:
    Jun 2012

    Posted 28 Apr 2011 Link to this post

    Hi there.

    I opened an assembly file (.dll) and chose to CTRL+Left click on a member in the navigation tree (Find Usages). At that point I got the following exception report:

    System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

       at Mono.Collections.Generic.Collection`1.get_Item(Int32 index) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Collections.Generic\Collection.cs:line 47

       at Mono.Cecil.MetadataReader.ReadParameters(MethodDefinition method, Range param_range) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1631

       at Mono.Cecil.MetadataReader.ReadMethod(UInt32 method_rid, Collection`1 methods) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1619

       at Mono.Cecil.MetadataReader.ReadMethods(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1583

       at Mono.Cecil.TypeDefinition.<get_Methods>b__a(TypeDefinition type, MetadataReader reader) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 187

       at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 766

       at Mono.Cecil.TypeDefinition.get_Methods() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 187

       at Mono.Cecil.MetadataReader.ReadAllSemantics(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1558

       at Mono.Cecil.PropertyDefinition.<InitializeMethods>b__0(PropertyDefinition property, MetadataReader reader) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\PropertyDefinition.cs:line 255

       at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 766

       at Mono.Cecil.PropertyDefinition.InitializeMethods() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\PropertyDefinition.cs:line 255

       at Mono.Cecil.Extensions.MemberDefinitionExtensions.HasBody(IMemberDefinition memberDefinition)

       at JustDecompile.FindUsages.ViewModels.FindUsagesViewModel.‹(Guid threadGuid, AssemblyNode assemblyNode, TypeSourceEntity typeSourceEntity, IEnumerable`1 members, IMemberDefinition memberDefinition) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesViewModel.cs:line 16777215

       at JustDecompile.FindUsages.ViewModels.FindUsagesViewModel.ˆ(Guid threadGuid, AssemblyNode assemblyNode, IEnumerable`1 types, IMemberDefinition memberDefinition) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesViewModel.cs:line 461

       at JustDecompile.FindUsages.ViewModels.FindUsagesViewModel.†(Guid threadGuid, AssemblyMemberDefinition member) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesViewModel.cs:line 338

       at JustDecompile.FindUsages.ViewModels.FindUsagesViewModel.ƒ(Guid threadGuid, ModuleDefinition module, AssemblyMemberDefinition member) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesViewModel.cs:line 315

       at JustDecompile.FindUsages.ViewModels.FindUsagesViewModel...€(Object x) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesViewModel.cs:line 278

       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

       at System.Threading.ExecutionContext.runTryCode(Object userData)

       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

       at System.Threading.ThreadPoolWorkQueue.Dispatch()

       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    ---------------------------
    OK   
    ---------------------------

    Cheers.
    Jas.
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 28 Apr 2011 Link to this post

    Does this occur for all types you try to do a Find Usages command with, or just a specific type/member?

    We're definitely working hard post-Beta to make the majority of scenarios "bullet proof," but in the meantime there are some rough edges like this in the beta. Thanks for reporting and sharing your feedback.

    -Todd
  3. DevCraft banner
  4. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 03 May 2011 Link to this post

    Hi Jason,

     Sorry to hear about your trouble and thanks for letting us know about it. The chances are we will be able to fix that if we have the assembly you are trying to decompile. Could you send it over? You can mail it to tsviatko.yovtchev at telerik.com. 

    Greetings,
    Tsviatko Yovtchev
    the Telerik team

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

Back to Top