[Mono-bugs] [Bug 478473] access violation in System.Reflection.Assembly.InternalGetType

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 21 15:52:39 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=478473

User jbevain at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478473#c3


Jb Evain <jbevain at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbevain at novell.com
           Severity|Critical                    |Normal




--- Comment #3 from Jb Evain <jbevain at novell.com>  2009-02-21 13:52:37 MST ---
Repro:

<<<<
using System;

using System.Reflection;



class Program {



    static void Main ()

    {

        var ctor = typeof (string).GetConstructor (new [] { typeof (char [])
});

        var str = (string) ctor.Invoke (new object [] { new [] {'h', 'e', 'l',
'l', 'o' } });



        Console.WriteLine (str);



        var assembly = Assembly.GetExecutingAssembly ();

        var method = typeof (Assembly).GetMethod (

            "CreateInstance",

            new [] { typeof (string) });



        Console.WriteLine (method.Invoke (assembly, new [] { "Program" }));

    }

}

<<<<

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list