[Mono-list] XML-RPC Thread Falling Asleep

Robert Jordan robertj at gmx.net
Fri May 11 03:25:38 EDT 2007


Stephen Gerstacker wrote:
> I've written a mono application that spawns an XML-RPC server in a  
> thread and a GTK# form in the main thread.  The XML-RPC server will  
> manipulate the GTK form when it receives certain requests.   
> Everything runs fine for about a minute, but after that, the XML-RPC  
> server stops responding.
> 
> Anyone know where I should start looking or how to combat this  
> problem?  Below is the code that kicks off both threads.   
> XmlRpcServer is just an object.  MainWindow inherits from Gtk.Window.

Since XmlRpcServer must be a MarshalByRefObject, did you configure
its lifetime? Otherwise the object will be GCed after some time.
Try this is XmlRpcServer:

public override object InitializeLifetimeService ()
{
	return null;
}

Robert



More information about the Mono-list mailing list