[Mono-bugs] [Bug 664205] TargetParameterCountExeption on DynamicInvoke.

2011-04-18 Thread bugzilla_noreply

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

https://bugzilla.novell.com/show_bug.cgi?id=664205#c2


Jb Evain jbev...@novell.com changed:

   What|Removed |Added

  Component|Sys.Core|CORLIB
Version|2.8.x   |SVN
 AssignedTo|jbev...@novell.com  |mono-bugs@lists.ximian.com
Summary|Delegates created from  |TargetParameterCountExeptio
   |nested lambda expressions   |n on DynamicInvoke.
   |sometimes have no target|

--- Comment #2 from Jb Evain jbev...@novell.com 2011-04-18 13:16:02 UTC ---
Repro that doesn't depend on the DLR implementation:



using System;
using System.Reflection.Emit;

class Program {

static void Main ()
{
var method = new DynamicMethod (test, typeof (int), new [] { typeof
(Program) }, true);
var il = method.GetILGenerator ();
il.Emit (OpCodes.Ldc_I4, 42);
il.Emit (OpCodes.Ret);

var @delegate = method.CreateDelegate (typeof (Funcint), null);
Console.WriteLine (@delegate.DynamicInvoke ());
}
}



-- 
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.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 664205] TargetParameterCountExeption on DynamicInvoke.

2011-04-18 Thread bugzilla_noreply

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

https://bugzilla.novell.com/show_bug.cgi?id=664205#c


Jb Evain jbev...@novell.com changed:

   What|Removed |Added

 AssignedTo|mono-bugs@lists.ximian.com  |jbev...@novell.com

-- 
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.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 664205] TargetParameterCountExeption on DynamicInvoke.

2011-04-18 Thread bugzilla_noreply

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

https://bugzilla.novell.com/show_bug.cgi?id=664205#c3


Jb Evain jbev...@novell.com changed:

   What|Removed |Added

 Status|NEW |CLOSED
 Resolution||FIXED

--- Comment #3 from Jb Evain jbev...@novell.com 2011-04-18 13:49:57 UTC ---
Fix in master at 09fa1df3b0a3f4d2c60f7ea49a74c351764967c3. I'll backport it to
mono-2-10 if it proves to work well for a few days.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs