On 14.04.2010 09:24, Armando B. wrote:
>
> have some suggestions to try to detect where is problem ?

Add a lease tracking handler to see which object is
prematurely disconnected:


using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Lifetime;
using System.Runtime.Remoting.Services;


class Programm
{
        static void Main ()
        {
                TrackingServices.RegisterTrackingHandler (new Tracker ());
                // your code ...
                
        }
}

class Tracker : ITrackingHandler
{
        public void DisconnectedObject (object obj)
        {
                Console.WriteLine ("Disconnect {0} at {1}", obj, DateTime.Now);
        }

        public void MarshaledObject (object obj, ObjRef or)
        {
                Console.WriteLine ("Marshal {0} at {1}", obj, DateTime.Now);
        }

        public void UnmarshaledObject (object obj, ObjRef or)
        {
                Console.WriteLine ("Unmarshal {0} at {1}", obj, DateTime.Now);
        }
}

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to