Created issue here:
http://support.castleproject.org/projects/DYNPROXY/issues/view/DYNPROXY-ISSU
E-92 

"... status is - we just learned about it."

Sorry - thought the OP in the thread had sent a test. 

Thanks for quick response

Mark.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Krzysztof Kozmic
Sent: Monday, 8 June 2009 6:06 p.m.
To: Castle Project Users
Subject: Re: Proxying Generic methods




On Jun 8, 4:58 am, Mark <[email protected]> wrote:
> (replying in relation
tohttp://groups.google.com/group/castle-project-users/browse_thread/thr...
> )
>
> I don't know if you got a test case or what status this is at but I am
> still having problems with the latest release.
No I didn't.
>
> I am also trying to stub IUnityContainer using Rhino Mocks.
>
> With a bit of investigation I have found that it is this signature
> that is causing the problem:
>
>    IUnityContainer RegisterType<TFrom, TTo>() where TTo : TFrom;
>
> And I have isolated it to this test which doesn't require a reference
> to Unity or RhinoMocks:
>
> [TestClass]
>     public class UnitTest1
>     {
>         // Current implementation fails with:
>         //  System.BadImageFormatException: An attempt was made to
> load a program with an incorrect format. (Exception from HRESULT:
> 0x8007000B).
>         [TestMethod]
>         public void CreateInterfaceProxyWithoutTarget_GenericError()
>         {
>             Type type = typeof(ISomeInterface);
>
>             StandardInterceptor interceptor = new StandardInterceptor
> ();
>
>             List<Type> types = new List<Type>();
>
>             object proxy =
>                 new ProxyGenerator().CreateInterfaceProxyWithoutTarget
> (type, new Type[] {}, interceptor);
>         }
>     }
>
>     public interface ISomeInterface
>     {
>         ISomeInterface RegisterType<TFrom, TTo>() where TTo : TFrom;
>     }
>
> Can you update me on the status of this problem?
Yes I can: status is - we just learned about it.

Can you create an issue in Donjon for that?
I'll investigate it sometime during the week when I find some free
time.

Thanks,

Krzysztof


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to