Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Index out of range exception

X-BeenThere: mono-cecil@googlegroups.com
Received: by 10.223.17.217 with SMTP id t25ls281199faa.2.p; Sun, 14 Feb 2010 
	06:46:51 -0800 (PST)
Received: by 10.223.2.199 with SMTP id 7mr150203fak.26.1266158811232;
        Sun, 14 Feb 2010 06:46:51 -0800 (PST)
Received: by 10.223.2.199 with SMTP id 7mr150202fak.26.1266158811208;
        Sun, 14 Feb 2010 06:46:51 -0800 (PST)
Return-Path: <j...@nurv.fr>
Received: from mail-bw0-f221.google.com (mail-bw0-f221.google.com [209.85.218.221])
        by gmr-mx.google.com with ESMTP id 17si550374fxm.11.2010.02.14.06.46.51;
        Sun, 14 Feb 2010 06:46:51 -0800 (PST)
Received-SPF: neutral (google.com: 209.85.218.221 is neither permitted nor denied by best guess record for domain of j...@nurv.fr) client-ip=209.85.218.221;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.218.221 is neither permitted nor denied by best guess record for domain of j...@nurv.fr) smtp.mail...@nurv.fr
Received: by mail-bw0-f221.google.com with SMTP id 21so3123600bwz.24
        for <mono-cecil@googlegroups.com>; Sun, 14 Feb 2010 06:46:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.204.49.88 with SMTP id u24mr2500701bkf.44.1266158810511; Sun, 
	14 Feb 2010 06:46:50 -0800 (PST)
In-Reply-To: <c81e12e3-ef90-4e2e-a48e-bf03577270e1@t31g2000prh.googlegroups.com>
References: <c81e12e3-ef90-4e2e-a48e-bf03577270e1@t31g2000prh.googlegroups.com>
Date: Sun, 14 Feb 2010 15:46:50 +0100
Message-ID: <69f7d8471002140646u681052d2s2308df9e7ef19355@mail.gmail.com>
Subject: Re: [mono-cecil] Index out of range exception
From: Jb Evain <j...@nurv.fr>
To: mono-cecil@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hey,

On Sun, Feb 14, 2010 at 1:16 PM, Philip_L <philip.laure...@gmail.com> wrote=
:
> System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32
> index)
> =A0 =A0 =A0 at Mono.Cecil.GenericParameterCollection.get_Item(Int32 index=
)
> =A0 =A0 =A0 at Mono.Cecil.ReflectionReader.GetTypeRefFromSig(SigType t,
> GenericContext context)
> =A0 =A0 =A0 at Mono.Cecil.ReflectionReader.CreateTypeSpecFromSig(TypeSpec
> ts, Int32 index, GenericContext context)
> =A0 =A0 =A0 at Mono.Cecil.ReflectionReader.GetTypeSpecAt(UInt32 rid,
> GenericContext context)
> =A0 =A0 =A0 at Mono.Cecil.Cil.CodeReader.ReadCilBody(MethodBody body,
> BinaryReader br)
> =A0 =A0 =A0 at Mono.Cecil.Cil.CodeReader.VisitMethodBody(MethodBody body)
> =A0 =A0 =A0 at Mono.Cecil.MethodDefinition.LoadBody()
> =A0 =A0 =A0 at Mono.Cecil.MethodDefinition.get_Body()
> ----
>
> The error seems to occur when I use Cecil's visitor model. Is there
> any way to fix this? Thanks.

Actually the issue seems to be in the way Cecil reads a generic type
spec inside a method body. Could you send me the assembly that
contains the method?

--=20
Jb Evain  <j...@nurv.fr>