[Mono-dev] Re: Patch for System.Runtime.Remoting.ServerIdentity

Lluis Sanchez lluis at ximian.com
Wed Nov 2 08:34:51 EST 2005


El lun, 31-10-2005 a las 04:48 -0800, Svetlana Zholkovsky escribió:
> Index: ServerIdentity.cs
> ===================================================================
> --- ServerIdentity.cs   (revision 51552)
> +++ ServerIdentity.cs   (working copy)
> @@ -103,6 +103,8 @@
>  
>                 public void AttachServerObject (MarshalByRefObject
> serverObject, Context context)
>                 {
> +                       DisposeServerObject();
> +
>                         _context = context;
>                         _serverObject = serverObject;
>                         
> @@ -143,6 +145,7 @@
>                         if (_serverObject != null) {
>                                 _serverObject.ObjectIdentity = null;
>                                 _serverObject = null;
> +                               _serverSink = null;
>                         }
>                 }
>         }
> 

I feel that DisposeServerObject call should not be necessary since it is
already called in OnLifetimeExpired. But well, it doesn't hurt. Feel
free to commit.

Thanks!
Lluis.




More information about the Mono-devel-list mailing list