[Mono-list] Event raised from Plugin class loaded at runtime in a different AppDomain using assemblyloader
Robert Jordan
robertj at gmx.net
Wed Apr 14 04:42:23 EDT 2010
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);
}
}
More information about the Mono-list
mailing list