[Mono-list] XML-RPC Thread Falling Asleep

Stephen Gerstacker stack at shortround.net
Thu May 10 21:37:37 EDT 2007


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.

public static void Main (string[] args)
{
	Application.Init();
	MainWindow win = new MainWindow();

	HttpServerChannel channel = new HttpServerChannel("xmlrpc", 5678,  
new XmlRpcServerFormatterSinkProvider());
	ChannelServices.RegisterChannel(channel);
	XmlRpcServer xmlrpc_server = new XmlRpcServer(win);
	RemotingServices.Marshal(xmlrpc_server, "xmlrpc");

	win.Show();

	Application.Run();
}

- Stephen


More information about the Mono-list mailing list