[Mono-list] Re flection error

Matthijs ter Woord matthijsterwoord at gmail.com
Fri Oct 31 04:33:45 EDT 2008


See the attachment. compile the .cs files into an .exe and run it. it has a
method which calls a generic method (the type which fails :)) the main
method then does the same kind of analysis on that method (resolve the
method, which on mono throws an exception).

On Windows (.net 3.5 SP1) this works fine..

On Thu, Oct 30, 2008 at 5:35 PM, Matthijs ter Woord <
matthijsterwoord at gmail.com> wrote:

> I can probably create a testcase. will be tomorrow night or saturday.
>
> it boils down to this:
> + we made an I'll reader, which reads I'll from the method bode
> it resolves il opcode operands
>
> assume this code:
> var xTest = new List<int>();
>
> this is encoded as il opcode newobj, which gets a method handle passed
> as operand. this handle can be passed to Module.ResolveMethod, which
> in this case doesn't work
>
> Chris, without further notice, i'll prepare a small testcase this weekend.
>
> note: i'm on a 1.5 hour train ride. spent 15 minutes typing this
> email. my apologies for any typos, mistakes samples which don't
> reproduce the issue.
>
> On 10/30/08, Chris Howie <cdhowie at gmail.com> wrote:
> > On Thu, Oct 30, 2008 at 12:17 PM, Matthijs ter Woord
> > <matthijsterwoord at gmail.com> wrote:
> >> I guess that's not the case: my tool has a shrinked version of mono
> >> (just the 2.0-3.5 assemblies etc). also, the tool makes heavy use of
> >> generics before the point where it crashes now.
> >
> > Hmm, would it be possible to see the code that's malfunctioning?
> >
> > --
> > Chris Howie
> > http://www.chrishowie.com
> > http://en.wikipedia.org/wiki/User:Crazycomputers
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20081031/cd2e0c8c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MonoBug.zip
Type: application/zip
Size: 5309 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20081031/cd2e0c8c/attachment-0001.zip 


More information about the Mono-list mailing list