[Mono-list] RE problem (reposting)
hammett
hammett@apache.org
Mon, 18 Oct 2004 11:15:58 -0700
(Sorry if it appears more than once, but it's been 24h hours and my message
hasnt appeared)
Hello,
I'm the author of DynamicProject, a simple project which aims provide java
like proxies for CLI. One of users reported that it's not working on Mono
with the error
** ERROR **: file class.c: line 2820 (mono_ldtoken): should not be reached
I have tested it against Mono 1.0.2
The DynamicProxy only generates a dynamic assembly on the fly: (pseudo code)
interface IMyInterface
void DoSomething()
int Calc( int x, int y )
end
---
class MyProxy : IMyInterface
IInvocationHandler handler
def MyProxy( IInvocationHandler handler )
this.handler = handler
end
def override void DoSomething()
MethodInfo m = GetMethodFromHandle( ldtoken )
handler.Process( this, m )
end
def override int Calc( int x, int y )
MethodInfo m = GetMethodFromHandle( ldtoken )
return handler.Process( this, m, x, y )
end
end
You can download the code from the repository at
https://svn.apache.org/repos/asf/avalon/trunk/central/laboratory/avalon-net/DynamicProxy
Looking forward to hearing back from you.
Cheers
hammett