[Mono-devel-list] Problems with the new jit and proxies

yoros at wanadoo.es yoros at wanadoo.es
Fri May 9 12:27:49 EDT 2003


On Fri, May 09, 2003 at 09:51:18AM +0200, dietmar wrote:
> On Fri, 2003-05-09 at 01:49, Lluis Sanchez wrote:
> > Hi,
> > 
> > I've been tracking down a couple of problems that mini has with transparent
> > proxies:
> > 
> > 1) It crashes when creating a proxy based on an interface. This is because
> > the method mono_jit_create_remoting_trampoline in mini.c checks if the
> > provided method is from a marshalbyref or object class. If it is not, it
> > does not create the remoting trampoline. Since the method is from an
> > interface, the trampoline is not created and it fails. If I remove the check
> > it works. In the old jit this check wasn't there, but I guess there is a
> > good reason for it.
> 
> I thought I already fixed that yesterday:
> 
> 	if ((method->flags & METHOD_ATTRIBUTE_ABSTRACT) ...

Dietmar, I updated CVS and the testcase I had for this bug worked
perfectly but I created a new example, when a client application sends
a local object to a remote object. The remote object receives an
interface. This breaks if the dlls needed by the client and the server
are separated in two directories (with the client exe and the server
exe). I send an example.

Regards,

    Pedro
 
-- 
Pedro Martínez Juliá
\  yoros at terra.es
)|    yoros at wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestCase.tar.gz
Type: application/octet-stream
Size: 2569 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030509/ed911115/attachment.obj 


More information about the Mono-devel-list mailing list