[Mono-list] RSS readers

2006-10-01 Thread Rob Brown-Bayliss
Hi, I am using a dll called Rss.NET from http://rss-net.sourceforge.net/

I can't find any contact on their web site so I thought I would ask here:

I have this sample of an rss feed:

//  item
//  pubDateSun, 01 Oct 2006 20:06:41 GMT/pubDate
//  titleM 2.7, Southern California/title
//  descriptionOctober 01, 2006 20:06:41 
GMT/description
//  -
//  link
//  
http://earthquake.usgs.gov/eqcenter/recenteqsww/Quakes/ci14254252.php
//  /link
//  geo:lat33.2446/geo:lat
//  geo:long-116.1261/geo:long
//  dc:subject2/dc:subject
//  dc:subjectpasthour/dc:subject
//  dc:subject3.50 km/dc:subject
//  guid isPermaLink=falseci14254252/guid
//  /item

and this snipet of code:

private void ListQuakes()
{   
Console.WriteLine (this.channel.Title);
items = this.channel.Items;
IEnumerator enu = this.items.GetEnumerator();
while (enu.MoveNext ()) {
Rss.RssItem item = (Rss.RssItem) enu.Current;
Console.WriteLine (item.Title);
Console.WriteLine (item.Description);
}
}

which works, but I cant seem to find any way of extracting the geo:
and dc: data from the items.

Does any one have some experience with this library or pointers to
another c# RSS library I could use?


Thanks.

-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] External processes and Paths

2006-09-23 Thread Rob Brown-Bayliss
Hi, I am having a path problem when running an external process.  The
problem is that the application I am atempting to start is in the path
as given by the error, but then it suggests I check the path.

Here is the error:

ApplicationName='gconftool-2 ', CommandLine=' -a /apps/',
CurrentDirectory='',
PATH='/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/rob/bin'.
Check the path.

And locate shows:

[EMAIL PROTECTED] ~]$ locate gconftool-2
/usr/bin/gconftool-2
/usr/share/man/man1/gconftool-2.1.gz
[EMAIL PROTECTED] ~]$

And here is the offending code:

Console.WriteLine (===);
StringBuilder opts = new StringBuilder();
opts.Append ( -a );
opts.Append (path);
ProcessStartInfo gconftool = new ProcessStartInfo();
gconftool.FileName = gconftool-2 ;
gconftool.Arguments = opts.ToString();
gconftool.RedirectStandardOutput = true;
gconftool.UseShellExecute = false;
Console.WriteLine (starting);
Process process = Process.Start (gconftool);
Console.WriteLine (redirecting);
System.IO.StreamReader output = process.StandardOutput;
Console.WriteLine (waiting);
process.WaitForExit();
Console.WriteLine (output.ReadToEnd());


Does any one have an idea as to why this is failing and where I could
start looking?

thanks

-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] External processes and Paths

2006-09-23 Thread Rob Brown-Bayliss
On 9/23/06, Robert Jordan [EMAIL PROTECTED] wrote:
 Rob Brown-Bayliss wrote:
  Hi, I am having a path problem when running an external process.  The
  problem is that the application I am atempting to start is in the path
  as given by the error, but then it suggests I check the path.
 
 [...]
gconftool.FileName = gconftool-2 ;

 Remove the trailing space from the file name.


Excellent, thank you!



-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Monodevelop and tooltips

2006-09-17 Thread Rob Brown-Bayliss
Hi, I have an app with the gui built in monodevelop (stetic).

I have set some text in the tooltip field for a widget, but it does
not display when I hold the mouse over the widget.

How is this achieved with monodevelop and stetic or are tooltips not
yet fully implemented?

-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gconf and serilization of liststore

2006-09-10 Thread Rob Brown-Bayliss
Hi,

I am working on a small app as a way of learning c# and gtk#.

I have at present a Gtk.ComboboxEntry widget, with a liststore that
has 3 (string) columns which I want to some how load and save from
gconf.  How would I go about some thing like that?  Would it be
possible to serialize the liststore or should I convert the data to an
arrary or perhase a string firzst?


-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Reference problem or misunderstanding

2006-09-09 Thread Rob Brown-Bayliss
Hi, I am getting a null reference error when trying to set a value in Gconf.

But I am sure the problem is my misunderstanding of the way c# handles
classes etc.

I have a Prefs class which deals with GConf.

in my main app class I have the following:
public Prefs prefs;

public MainWindow (): base ()
{

Stetic.Gui.Build (this, typeof(MainWindow));
Prefs prefs = new Prefs();
prefs.setkey (Prefs.BODY_KEY, test);   //  -- This Works!!!



further down the class I have this method:
protected virtual void OnBodyChanged(object sender, System.EventArgs e)
{
Console.WriteLine(Body Changed..);
ComboBox combo = sender as ComboBox;
if (sender == null)
return;
TreeIter iter;
if (combo.GetActiveIter (out iter))
body = (string) combo.Model.GetValue (iter, 0);
Console.WriteLine (body);
try {
prefs.setkey (Prefs.BODY_KEY, body);  //  -- 
This Fails!!!
} catch (System.NullReferenceException err) {
Console.WriteLine(Null 
Reference error in MainWindow.cs);
}
}


The bit above that fails, I have tried  this.prefs.setkey
(Prefs.BODY_KEY, body); but that also fails.

Can any one point out what is wrong?  I have been pooring ove c# web
sites but th=ey all seem to deal with single class examples.

Thanks.

-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Reference problem or misunderstanding

2006-09-09 Thread Rob Brown-Bayliss
On 9/10/06, Robert Jordan [EMAIL PROTECTED] wrote:


 Prefs prefs = new Prefs() is hiding the outer prefs field defined
 at class scope. Try this:

 this.prefs = new Prefs();


Thanks, yes that is excelent.

-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] setting combobox from gconf value

2006-09-09 Thread Rob Brown-Bayliss
Hi.

I am using monodevelop and stetic to build an app.

I have some comboboxes, with the text entered in the gui designer of
monodevelop.  When the app starts I want to set tyhe vlaues from a key
in gconf, and I assume I have to do this with combobbox.SetActiveIter.

But first I need to know the iter I want, and as far as I can see
there is no way to get a list of iters from the widget.

I have seen some examples using liststores etc, but once again I cant
see a way to get the liststore of a combobox built with stetic.

Any ideas or examples?

thanks.

-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Stetic and Monodevelop

2006-08-24 Thread Rob Brown-Bayliss
Hi, How do I use stetic to edit a window?

If I add a new gnome or gtk window to a project I can't edit access
the gui desginer view , but if I add a new dialogue I can.


Also, if I create a new gnome project I cant edit the gui in stetitc,
but if I create a new gtk project I can.



-- 
Rob
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] remoting tips and info

2004-11-06 Thread Rob Brown-Bayliss




Hi, I am looking to use remoting, and would like some good in depth info, not the hello world exapmles that show how to remote a single instance of an object, but some thing more in depth, like how to dynamically create instances of an object on the server adn have them made available to a client etc?

Any one know of a good example on the net? 


Thanks




[Mono-list] nice value

2004-10-24 Thread Rob Brown-Bayliss





Hi, how would I go about changing the nice value of an app I have written in mono from within the app it's self? 





[Mono-list] ToTitleCase

2004-10-14 Thread Rob Brown-Bayliss





Hi all, I am trying to capitalize the first letter of every word in a string. I would expect this:


string test = StringUtils.CorrectName(this is a test);
Console.WriteLine(test);


to output:


This Is A Test


but I get:


This is a test


Here is the code I am using, is this a bug in the mono implementation or the correct behaviour and a bug in my understanding?


	public class StringUtils 
	{
	
		static CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
		static TextInfo textInfo = cultureInfo.TextInfo;
		
		public static string CorrectName(string name)
		{
			name = name.ToLower();
			if (name.StartsWith(the ))
			{
name = name.Remove(0,4);
name = name + , the;
			}
			
			return textInfo.ToTitleCase(name);
		}





--



Rob Brown-Bayliss







The liar's punishment is not in the least that he is not believed, but that he cannot believe anyone else.















Re: [Mono-list] Sqlite dll not found error.

2004-09-29 Thread Rob Brown-Bayliss




On Mon, 2004-09-27 at 20:57 -0700, Todd Berman wrote:



Install the -devel packages.



Thanks, that sorted it...




--



Rob Brown-Bayliss







I want to die peacefully in my sleep, like my grandfather. Not screaming in terror like his passengers.















[Mono-list] Sqlite dll not found error.

2004-09-27 Thread Rob Brown-Bayliss





Hi, I am getting this error having installed mono-data-sqlite 


Unhandled Exception: System.DllNotFoundException: sqlite
in 0x00053 (wrapper managed-to-native) Mono.Data.SqliteClient.SqliteConnection:sqlite_open (string,int,string)
in [0x00031] (at /cvs/1-mono/mcs/class/Mono.Data.SqliteClient/Mono.Data.SqliteClient/SqliteConnection.cs:157) Mono.Data.SqliteClient.SqliteConnection:Open ()
in [0x000d3] (at /home/rob/.local/share/MonoDevelopProjects/waiata_db/Waiata_DB.cs:46) Waiata_Data.Waiata_DB:.ctor ()
in [0x000af] (at /home/rob/.local/share/MonoDevelopProjects/Waiata/Waiata.cs:58) Waiata:.ctor (string[])
in [0x1] (at /home/rob/.local/share/MonoDevelopProjects/Waiata/Main.cs:9) MainClass:Main (string[])


Also, doing a locate Mono.Data provides this:


/usr/lib/mono/gac/Mono.Data.Tds
/usr/lib/mono/gac/Mono.Data.Tds/1.0.5000.0__0738eb9f132ed756
/usr/lib/mono/gac/Mono.Data.Tds/1.0.5000.0__0738eb9f132ed756/Mono.Data.Tds.dll
/usr/lib/mono/gac/Mono.Data.Tds/1.0.5000.0__0738eb9f132ed756
/usr/lib/mono/gac/Mono.Data.Tds
/usr/lib/mono/gac/Mono.Data.TdsClient
/usr/lib/mono/gac/Mono.Data.TdsClient/1.0.5000.0__0738eb9f132ed756
/usr/lib/mono/gac/Mono.Data.TdsClient/1.0.5000.0__0738eb9f132ed756/Mono.Data.TdsClient.dll
/usr/lib/mono/gac/Mono.Data.TdsClient/1.0.5000.0__0738eb9f132ed756
/usr/lib/mono/gac/Mono.Data.TdsClient
/usr/lib/mono/gac/Mono.Data.SqliteClient
/usr/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756
/usr/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756/Mono.Data.SqliteClient.dll
/usr/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756
/usr/lib/mono/gac/Mono.Data.SqliteClient
/usr/lib/mono/1.0/Mono.Data.Tds.dll
/usr/lib/mono/1.0/Mono.Data.SqliteClient.dll
/usr/lib/mono/1.0/Mono.Data.TdsClient.dll



so any idea whats gone wrong?




Re: [Mono-list] Sqlite dll not found error.

2004-09-27 Thread Rob Brown-Bayliss




On Mon, 2004-09-27 at 19:36 -0700, Bryan Bulten wrote:



You are missing libsqlite.  Download and install it from
http://sqlite.org/.



actually no I am not:


[EMAIL PROTECTED] rob]$ locate libsqlite
/usr/lib/libsqlite.so.0.8.6
/usr/lib/libsqlite.so.0
[EMAIL PROTECTED] rob]$ sqlite
SQLite version 2.8.15
Enter .help for instructions
sqlite


any other thoughts? 






Re: [Mono-list] Re: Yum repository for 1.0.2 release for Fedora Core 2 does not work

2004-09-25 Thread Rob Brown-Bayliss




On Fri, 2004-09-24 at 16:04 -0400, Duncan Mak wrote:



 I am getting md5 checksum errors on all the mono stuff at present,
 using yum and fedora 2...

I heard back from Radu saying that everything is working for him. Maybe
you could try again? I'm not an active user of yum, is there an
equivalent of refresh in yum? You might need to do that.



Yes, I did the yum equivalent of a refresh and am still getting the errors:


Getting mono-winforms-1.0.2-1.ximian.8.1.i686.rpm
mono-winforms-1.0.2-1.xim 100% |=| 184 kB 01:13
error: rpmts_HdrFromFdno: MD5 digest: BAD Expected(2776439ae412347f53b3bd5caf468f45) != (df59a79d0f9984cc31eb3d085f51a8cc)
retrygrab() failed for:
 http://www.go-mono.com/archive/yum-repository/fedora-2-i386/mono-winforms-1.0.2-1.ximian.8.1.i686.rpm
 Executing failover method
failover: out of servers to try
Error getting file http://www.go-mono.com/archive/yum-repository/fedora-2-i386/mono-winforms-1.0.2-1.ximian.8.1.i686.rpm
[Errno -1] RPM /var/cache/yum/mono/packages/mono-winforms-1.0.2-1.ximian.8.1.i686.rpm fails md5 check






--



Rob Brown-Bayliss







The best way to avoid responsibility is to say, I've got responsibilities.















Re: [Mono-list] Re: Yum repository for 1.0.2 release for Fedora Core 2 does not work

2004-09-24 Thread Rob Brown-Bayliss




On Thu, 2004-09-23 at 15:54 -0400, Duncan Mak wrote:


On Thu, 2004-09-23 at 00:18 -0700, Radu Cornea wrote:
 Yes, now it gets the list of files but still something is wrong:
 
 When I run yum update I get:
 
 Downloading needed headers
 Resolving dependencies
 Unable to satisfy dependencies
 Package gtk-sharp-gapi needs gtk-sharp = 1.0.2-1.ximian.8.2, this is not 
 available.

Could you please try again? The file is right there:

http://go-mono.com/archive/1.0.2/fedora-2-i386/gtk-
sharp-1.0.2-1.ximian.8.2.i386.rpm



I am getting md5 checksum errors on all the mono stuff at present, using yum and fedora 2...




Re: [Mono-list] glade signal connections

2004-08-31 Thread Rob Brown-Bayliss
On Tue, 2004-08-31 at 16:51, Peter Williams wrote:

 Do you just mean that you want to manually connect to a signal? Gtk#
 wraps signals as events and you can treat them pretty much as you would
 any other event:
 
   Gtk.Window window = whatever ();
   window.DestroyEvent += new DestroyEventHandler (myfunction);
 
 Or am I not understanding your question?

Not sure, I have a glade file, inside the main app window, 4 or five
container children deep a list view (or any widget), in glade I decide I
want to capture the row_activated signal: on_main_list_row_activated

Now in monodevelop I have my main app class, if I dont define a handler
function inside this class then the app crashes:

Unhandled Exception: Glade.HandlerNotFoundException: No handler
on_main_list_row_activated found for signal row_activated

but I want the handler for this signal inside the class MyListView in
another file in the project.  Do I have to define the handler in the
main class and then call the function from my other class or is there a
better way?

in python I could, for lack of a better word divert this signal to the
class like so:


self.siglist = {on_about1_activate: self.about,
on_main_list_row_activated: self.childclass.handler,#  ---
on_app1_destroy_event: self.close_down,
on_app1_delete_event:self.delete_event,
on_quit1_activate: self.quit_activate}
self.wTree.signal_autoconnect(self.siglist)

Did I make that clear?  I am trying to avoid a lot of functions in the
main app class that simply take some args and pass them to another
function in another class, it seems like a lot of extra typeing and
overhead...

--
Rob Brown-Bayliss

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] glade signal connections

2004-08-31 Thread Rob Brown-Bayliss
On Tue, 2004-08-31 at 16:51, Peter Williams wrote:
 Do you just mean that you want to manually connect to a signal? Gtk#
 wraps signals as events and you can treat them pretty much as you would
 any other event:
 
   Gtk.Window window = whatever ();
   window.DestroyEvent += new DestroyEventHandler (myfunction);

If I do this:

tree_view.RowActivated += new EventHandler (row_activated);

I get this error:

Operator + cannot be applied to operands of type
`Gtk.RowActivatedHandler' and `System.EventHandler'(CS0019)


if I do this instead:

tree_view.RowActivated = new EventHandler (row_activated);

I get this,

The event 'RowActivated' can only appear on the left-side of a += or -=
(except when used from within the type 'Gtk.TreeView')(CS0070)


tree_view is defined as:

Gtk.TreeView tree_view = gxml.GetWidget(main_list) as Gtk.TreeView;


finally row_activated is:

private void row_activated(object o, EventArgs args)
{
Console.WriteLine(o.ToString(), args.ToString());
}



Can any one tell me where I am going wrong please?


--
Rob Brown-Bayliss




___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] glade signal connections

2004-08-31 Thread Rob Brown-Bayliss
On Tue, 2004-08-31 at 22:46, Iain McCoy wrote:

 tree_view.RowActivated += new RowActivatedHandler (row_activated);


Thanks guys...

--
Rob Brown-Bayliss

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] glade signal connections

2004-08-30 Thread Rob Brown-Bayliss

is there a way to provide a list of signals and the functions they
should be connected to rather than use xml.Autoconnect (this);

for example, in python you could do:

self.siglist = {on_about1_activate: self.about,   
on_app1_destroy_event: self.close_down,
on_app1_delete_event:self.delete_event,
on_quit1_activate: self.quit_activate}
self.wTree.signal_autoconnect(self.siglist)


The reason I ask is I could have a signal:

on_some_event_do_something:self.some_other_object.do_something,

and have the functions in the class description rather than in the C#
main class.

how would I do this in C#?  eg, of a user clicks on a line in a list
view have a class that handles the list view events...

--
Rob Brown-Bayliss


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] popt

2004-08-28 Thread Rob Brown-Bayliss

On Fri, 2004-08-27 at 15:36, Marcus wrote: 
 I'm not sure if Mono.GetOptions is compiled by default. If you're building 
 from source, you can do a make in Mono.GetOptions directory. The resulting 
 assembly to be installed is Mono.GetOptions.dll.



I do have the Mo.GetOptions.dll installed. I get all the mono stuff via
Yum (using fedora) so any other ideas as to why this is failing?
--
Rob Brown-Bayliss

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] popt

2004-08-26 Thread Rob Brown-Bayliss

Hi, is there a c# version of popt for handling command line options?

--
Rob Brown-Bayliss




___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] popt

2004-08-26 Thread Rob Brown-Bayliss
On Thu, 2004-08-26 at 20:57, Marcus wrote:
 I'm not sure about popt. There is a somewhat different package for handling 
 options in the Mono.GetOptions namespace. It handles parsing options by 
 attaching attributes to fields/properties that correspond to options and 
 using reflection at runtime to set them.

So I have had a look, and on the web found this example:

http://talios.blog-city.com/read/579685.htm

But I cant find any mention of Mono.GetOptions in monodoc, and I get
this error with the example:

Cannot find type `Options'(CS0246)


Any clues? 

--
Rob Brown-Bayliss

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Keyword this or base expected(CS1018)

2004-08-22 Thread Rob Brown-Bayliss
On Sun, 2004-08-22 at 19:54, Gaurav Vaish wrote:

Thanks People.  I have that working now :-)

--
Rob Brown-Bayliss


Some days you wake up with her complaining
Some sunny days you wish it was raining
Some days are sulky, some days have a grin
And some days have bouncers and won't let you in 

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Keyword this or base expected(CS1018)

2004-08-22 Thread Rob Brown-Bayliss
On Sun, 2004-08-22 at 19:54, Gaurav Vaish wrote:
 Rob,
 
   Can you give the details of:
 
   - The base class (namespace, name and preferably, also the constructors)
   - What you intend to do in your sub-class, if non-classified.
 
   We may be able to help you better...

namespace is just one of my own and not really important.  What I am
trying to do is my base class is basically common code surrounding a
treeview, I then generate 4 of these with a couple of extra methods for
differing purposes, but 90% of the code around the 4 treeviews will be
the same, hence the base calls and child classes...

--
Rob Brown-Bayliss


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Keyword this or base expected(CS1018)

2004-08-21 Thread Rob Brown-Bayliss

Why does this:

public MyClass() : base (Glade.XML gxml, Database database)

give me this error?

Keyword this or base expected(CS1018)

--
Rob Brown-Bayliss




___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Keyword this or base expected(CS1018)

2004-08-21 Thread Rob Brown-Bayliss

OK, so how do I pass args to the base class?  

I thought:

MyClass my_class = new MyClass(gxml, database);

would pass gxml and database to the base class of MyClass?

 This is wrong.
 
 While calling the contructor, the gxml and database are undefined. If
 you be appropriate to call as:
 
 public MyClass(): base(null, null)
 {
 ...
 }
 
 or better still:
 
 public MyClass(): base( (Glade.XML) null, (Database) null )
 {
 ...
 }
 
 Use the latter option if there are more than one overloaded
 consturctor in the base class that can make up for BaseClass(null,
 null).
 
 NB: I have assumed that Glade.XML is not enum.
 
 
 
 Cheers,
 Gaurav Vaish
 http://gallery.mastergaurav.net
 ---
 
 
 On Sun, 22 Aug 2004 16:19:03 +1200, Rob Brown-Bayliss [EMAIL PROTECTED] wrote:
  
  Why does this:
  
  public MyClass() : base (Glade.XML gxml, Database database)
  
  give me this error?
  
  Keyword this or base expected(CS1018)

--
Rob Brown-Bayliss


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Re: [MonoDevelop] gst-sharp and a newbie

2004-07-15 Thread Rob Brown-Bayliss
On Thu, 2004-07-15 at 19:53, Fresnay Pascal wrote:

 make sure that you used /usr prefix with configure
 in Monodevelop
 add a gst-sharp.dll reference to your project
 (gac/gst-sharp/XXXddsiqdsqo/gst-sharp.dll)\

Thats where I am having the problem. I can right click on the references
and select edit references.  But gst-sharp is not in the list it
offers.  How do I tell monodevelop that I have installed gst-sharp?

As far as I can tell gst-sharp installed ok, I have the following files:

/usr/lib/mono/gtk-sharp/gst-sharp.dll
/usr/lib/mono/gac/gst-sharp/0.2.2.0__35e10195dab3c99f/gst-sharp.dll.config
/usr/lib/mono/gac/gst-sharp/0.2.2.0__35e10195dab3c99f/gst-sharp.dll
/usr/lib/mono/gac/gst-sharp/0.2.0.0__35e10195dab3c99f/gst-sharp.dll.config
/usr/lib/mono/gac/gst-sharp/0.2.0.0__35e10195dab3c99f/gst-sharp.dll

but puting a using Gst; in my app gives me The namespace `Gst' can not
be found (missing assembly reference?)(CS0246) error.

--
Rob Brown-Bayliss


The liar's punishment is not in the least that he is not believed, but
that he cannot believe anyone else.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GST obliterates namespaces.

2004-07-15 Thread Rob Brown-Bayliss

Hi.  Is this a bug?

When I add the line 

using Gst;

to my code, everything needs to be addressed by it's full name, ie:I
need to to Gtk.Application.Init() rather than Application.Init(), and
even my own namespaces need a full address, so I must do
MySpace.Some.Thing() rather than Some.Thing() even though I have using
MySpace; in the code.

I am using a version of gst-sharp pulled from cvs toady.

--
Rob Brown-Bayliss


I gotta go. There's a dude next to me and he's watching me type, which
is sort of starting to creep me out.
Yes dude next to me, I mean you.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] FileSystemWatcher

2004-06-24 Thread Rob Brown-Bayliss

Hi, does FileSystemWatcher form System.IO work in the current version of
mono?

I might be misunderstanding, but I thought that it triggered events
rather than waits for events?

My code:

===

FileSystemWatcher fsw = new FileSystemWatcher();
fsw.InternalBufferSize *= 10;  
fsw.Path = path_to_watch;
fsw.Filter = ;
fsw.IncludeSubdirectories = true;

fsw.NotifyFilter = NotifyFilters.FileName |
NotifyFilters.Attributes |
NotifyFilters.LastAccess |
NotifyFilters.LastWrite |
NotifyFilters.Size |
NotifyFilters.CreationTime |
NotifyFilters.DirectoryName;

fsw.Changed += new FileSystemEventHandler(onChanged);
fsw.Created += new FileSystemEventHandler(onCreated);
fsw.Deleted += new FileSystemEventHandler(onDeleted);
fsw.Renamed += new RenamedEventHandler(onRenamed);
fsw.Error += new ErrorEventHandler(onError);

fsw.EnableRaisingEvents = true;

==

Now my app hangs on the last line, and from what I have read I would
expect the app to continue on, and events to be triggered if the file
system is modified.

-- 

  Rob Brown-Bayliss
  = 

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] cant find gtk-sharp.dlls

2004-06-09 Thread Rob Brown-Bayliss

Hi, I just installed the latest mono beta2 via yum for fedora core 2,

The most noticeable change for me since beta 1 is projects in
monodevelop wont compile...

It seems that mono cant find many libs that are installed, mono path is
set.

So I am stumped, any clues?

-- 

  Rob Brown-Bayliss
  = 

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] cant find gtk-sharp.dlls

2004-06-09 Thread Rob Brown-Bayliss
On Thu, 2004-06-10 at 13:32, John BouAntoun wrote:
 I had a similar problem with fc2, except everything compiled and just
 wouldn't run.
 
 I had to add /usr/local/lib (i.e. my {prefix}/lib) to /etc/ld.so.conf
 and re-running /sbin/ldconfig

all mine are in /usr/lib.  

I am wondering if maybe my problem is I did not build, but used rpm's...

when I try to compile monodevelop 0.4 (using --prefix=/usr ) it tells me
my mono is version 0.91, but /usr/bin/mono --version give:

Mono JIT compiler version 0.95, (C) 2002-2004 Novell, Inc and
Contributors. www.go-mono.com

But I did build beta 1 from source...  


-- 

  Rob Brown-Bayliss
  = 

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] sharp glue problems

2004-05-14 Thread Rob Brown-Bayliss

Hi, I recently installed the mono beta stuff on redhat 8, I used the rh9
rpms then recompiled the mono runtime source to get mono to work.

mono appears to work, but monodevelop and monodoc crash at start with
unhandled exceptions...

Monodoc gives:

Unhandled Exception: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. ---
System.DllNotFoundException: gtksharpglue

Monodevelop give:

Unhandled Exception: System.DllNotFoundException: gnomesharpglue


I have installed gtk-sharp and gtk-sharp-gapi but cant find anything
about a gnome-sharp-glue package anywhere.

has any one got this to work on rh8?

-- 

  Rob Brown-Bayliss
  = 

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] sharp glue problems

2004-05-14 Thread Rob Brown-Bayliss
On Sat, 2004-05-15 at 09:01, Rob Brown-Bayliss wrote:
 Hi, I recently installed the mono beta stuff on redhat 8, I used the rh9
 rpms then recompiled the mono runtime source to get mono to work

Solved. updated Xfree libs

-- 

  Rob Brown-Bayliss
  = 

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list