[Mono-list] Events using Remoting
Andrés Otón
Andrés Otón
Thu, 25 Nov 2004 18:06:57 +0100
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