Hello,

I cann't test it at MS.NET. I attach the solutio created with
monodevelop. The solution is called LinuxMeeting.

Well, you find inside three projects: Common, Server and Client.

Common: Used to shared the classes between Server and Client.
Client: ejem, the client ;-).
Server: Logicaly the server, sometimes I only say stupid ;-).

Works:
- Sever create the static class MainServer and share de Login class.
- Client get the Login do addUser and call to getServer.
- With the ServerHandler from getServer, the client create a channel
and next findChannel to get the ChannelHandler.
- When client try the event from ChannelHandler get a exception.

This solution has more classes but you can ignored it. My idea is:
Class                     |    Class  Shared (MarshalByRefObject)
Sever                     |        ServerHandler
Channel                 |        ChannelHandler
User                       |        UserHandler

Well, this is a aproximation. And the code is only a test from idea to
see capabilities.

Regards.


On Mon, 29 Nov 2004 11:23:52 +0100, Lluis Sanchez <[EMAIL PROTECTED]> wrote:
> A simple console application that demonstrates the error would be really
> useful to understand what's the issue.
> Does it work with MS.NET? if it does, it is probably a bug in mono, and
> you should file a bug report in bugzilla.ximian.com (including the test
> case).
> 
> Lluis.
> 
> 
> 
> On dj, 2004-11-25 at 18:06 +0100, Andrés Otón wrote:
> > Hello,
> >
> > I have a problem using events with MarshalByRefObject classes. I explain it:
> > I have two programs server and client and one lib to share something 
> > classes.
> >
> > At lib I have the abstract class A : MarshalByRefObject. The server
> > register at http channel this class and implement it.
> > The client get this class from server. This class A has a method to
> > get a second class B, this is public abstract at common lib and
> > MarshalByRefObject. Well at client I have a delegate, that is declared
> > type at lib, that link with a method at client. To this point all
> > works. B has a event and when the client execute:
> >
> > b.event += delegate;
> >
> > I get a exception error that say Couldn't bind to method 'xxxx', where
> > the method xxxx is the method of the client that is linked with the
> > delegate.
> >
> > I hope that my problem can be understand because my english is very poor 
> > ;-).
> >
> > Thanks by all.
> >
> 
> 


-- 
----------------------------------------------------------------------
| Andrés Otón Urbano                   | Jabber:Baxas en bulmalug.net|
| Estudiante Ing. de Telecomunicación  | Linux User: 297070          |  
| Universidad Politecnica de Cartagena |  andres.oton en gmail.com   |
----------------------------------------------------------------------

-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
- ¿Lastima? Sí, fue lastima lo que detuvo la mano de Bilbo.
  Lastima y misericordia: no matar sin necesidad.
-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
- Muchos de los que viven merecen morir y algunos de los que
  mueren merecen la vida. ¿Puedes devolver la vida?.
  Entonces no te apresures a dispensar la muerte, pues ni el más
  sabio conoce el fin de todos los caminos.
-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o

Attachment: LinuxMeeting.tar.gz
Description: application/gunzip

Reply via email to