RE: [Mono-list] Remoting a GTK UI
It sounds like a threading issue... Does the app just hang or do you get varied results each time you run it? If it is a threading issue, you may need to setup a delegate [in the app that has the UI] and invoke the delegate when you make the call to the UI app... I am new to delegates and have only used them a few times when trying to return data to a UI when calling an Asynchronous Webservice ... Is it a small sample app with the remoting piece and the UI piece, if so you can zip it up e-mail it to me and I can take a look at it and see if I can get it to run on my machine. -=Robert -Original Message- From: George Farris [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 2:04 PM To: Brown, Robert Cc: mono-list@lists.ximian.com Subject: RE: [Mono-list] Remoting a GTK UI On Tue, 2005-05-31 at 13:35 -0400, Brown, Robert wrote: > Are you just trying to retrieve a value from a textBox on a remote > machine? Will the textBox always be available and if not what do you > expect to be returned to you? > What I'm actually trying to accomplish is: - computer A (command line app) sends a request for a text field to B -B pops up a dialog box accepts a line of text and sends it when "OK" is pressed or sends "" if "Cancel" is pressed. - the dialog disappears and until next request. I had some code that seems to work under Linux but it dies under Windows and someone said it might be the threading. -- George Farris [EMAIL PROTECTED] Malaspina University-College ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Remoting a GTK UI
On Tue, 2005-05-31 at 13:35 -0400, Brown, Robert wrote: > Are you just trying to retrieve a value from a textBox on a remote > machine? Will the textBox always be available and if not what do you > expect to be returned to you? > What I'm actually trying to accomplish is: - computer A (command line app) sends a request for a text field to B -B pops up a dialog box accepts a line of text and sends it when "OK" is pressed or sends "" if "Cancel" is pressed. - the dialog disappears and until next request. I had some code that seems to work under Linux but it dies under Windows and someone said it might be the threading. -- George Farris [EMAIL PROTECTED] Malaspina University-College ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Remoting a GTK UI
Are you just trying to retrieve a value from a textBox on a remote machine? Will the textBox always be available and if not what do you expect to be returned to you? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Farris Sent: Tuesday, May 31, 2005 11:15 AM To: mono-list@lists.ximian.com Subject: Re: [Mono-list] Remoting a GTK UI On Mon, 2005-05-30 at 17:18 -0400, Nigel Benns wrote: > If you use GLADE, you could host the file on a web/ftp server and just > retrive it when the application starts. > > > Does anyone have some example code to show how to effectively remote > > a gtk# UI? I'm simply not knowledgeable enough about this type of > > thing and documentation about it is severely lacking. > > Not what I meant. I want to have a .NET remoting client control a widget in a remote gtk server app. As an example: with the small piece of code below, how do I get the AccountNumber class to reference ui so I can control the interface and will this actually work or will the thread hang? I'm not a threading guru, in fact never done any threading code so I really don't understand all the ins and outs yet. using Gtk; using System; using System.IO; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Http; class Server { public static MyWindow ui; public static void Main () { Application.Init(); ui = new MyWindow(); Console.WriteLine("running, listening on port 8080..."); ChannelServices.RegisterChannel(new HttpChannel(8080)); RemotingConfiguration.RegisterWellKnownServiceType(typeof(AccountNumber) , "ui", WellKnownObjectMode.Singleton); Application.Run(); } } public class AccountNumber : MarshalByRefObject { public string GetAccount() { ui.ShowAll(); string s = ui.AccountNo.Text; ui.HideAll(); return s; } } -- George Farris [EMAIL PROTECTED] Malaspina University-College ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Remoting a GTK UI
On Mon, 2005-05-30 at 17:18 -0400, Nigel Benns wrote: > If you use GLADE, you could host the file on a web/ftp server and just > retrive it when the application starts. > > > Does anyone have some example code to show how to effectively remote a > > gtk# UI? I'm simply not knowledgeable enough about this type of thing > > and documentation about it is severely lacking. > > Not what I meant. I want to have a .NET remoting client control a widget in a remote gtk server app. As an example: with the small piece of code below, how do I get the AccountNumber class to reference ui so I can control the interface and will this actually work or will the thread hang? I'm not a threading guru, in fact never done any threading code so I really don't understand all the ins and outs yet. using Gtk; using System; using System.IO; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Http; class Server { public static MyWindow ui; public static void Main () { Application.Init(); ui = new MyWindow(); Console.WriteLine("running, listening on port 8080..."); ChannelServices.RegisterChannel(new HttpChannel(8080)); RemotingConfiguration.RegisterWellKnownServiceType(typeof(AccountNumber), "ui", WellKnownObjectMode.Singleton); Application.Run(); } } public class AccountNumber : MarshalByRefObject { public string GetAccount() { ui.ShowAll(); string s = ui.AccountNo.Text; ui.HideAll(); return s; } } -- George Farris [EMAIL PROTECTED] Malaspina University-College ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Remoting a GTK UI
If you use GLADE, you could host the file on a web/ftp server and just retrive it when the application starts. > Does anyone have some example code to show how to effectively remote a > gtk# UI? I'm simply not knowledgeable enough about this type of thing > and documentation about it is severely lacking. > > Cheers and thanks in advance. > > -- > George Farris [EMAIL PROTECTED] > Malaspina University-College > > > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Remoting a GTK UI
Does anyone have some example code to show how to effectively remote a gtk# UI? I'm simply not knowledgeable enough about this type of thing and documentation about it is severely lacking. Cheers and thanks in advance. -- George Farris [EMAIL PROTECTED] Malaspina University-College ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list