[Mono-bugs] [Bug 655741] 'System.InvalidProgramException: Missing or incorrect header for method Call'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 25 13:04:48 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=655741#c7


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #7 from Rodrigo Kumpera <rkumpera at novell.com> 2010-11-25 18:04:47 UTC ---
Small repro:


public abstract class Foo {
    public abstract void Test ();
}

public class Bar : Foo {
    public override void Test () {
        Console.WriteLine ("Bar::Test");
    }
}

public class TestCase {
    public static void Main() {
        Foo f = new Bar ();
        var m = typeof (Foo).GetMethod ("Test");
        Action a = (Action)Delegate.CreateDelegate (typeof (Action), f, m);
        a ();
    }
}


Working on it.

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


More information about the mono-bugs mailing list