Re: [Mono-list] A question about interfaces
On Sat, Feb 07, 2004 at 02:44:48AM +, Rodolfo Campero wrote: > Hello all, > > I have a question about interfaces. I tried to compile the following > program: > > > > but I got a CS0122 error: > > interfaces.cs(16) error CS0122: `InterfaceTests.IBottom.Count' is > inaccessible due to its protection level > Compilation failed: 1 error(s), 0 warnings > > I wonder why IBottom.Count is inaccessible, given the fact that neither > ILeft nor IRight hide this property. > > I've read the documentation, and in ECMA-334 C# Language Specification, > section 20.1.2: Base interfaces, there is a similar example involving > IControl, ITextBox, IListBox and IComboBox, and the example states: > "the IComboBox interface above inherits members SetText and SetItems as > well as Paint." In the example, Paint is defined in the basic interface > (IControl). > And then in 20.2, "The members of an interface are the members inherited > from the base interfaces and the members declared by the interface itself." > From 20.4.2: "When a class implements multiple interfaces that have the > same base interface, there can be only one implementation of the base > interface." > > Apparently the property Count in my example shouldn't be hidden in the > interface IBottom, yet I'm getting an error. Is this a bug in mcs or am I > missing something? Your code is compiled successfully under MS C# Compiler. I would think this is a bug in mono. -- Peter Wu Powered by Gentoo Linux 2.4.22 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] A question about interfaces
Hello all, I have a question about interfaces. I tried to compile the following program: namespace InterfaceTests { interface ITop { int Count { get; } } interface ILeft: ITop {} interface IRight: ITop {} interface IBottom: ILeft, IRight {} class Test { public static void Main () {} public void Testing (IBottom test) { int a = test.Count; } } } but I got a CS0122 error: interfaces.cs(16) error CS0122: `InterfaceTests.IBottom.Count' is inaccessible due to its protection level Compilation failed: 1 error(s), 0 warnings I wonder why IBottom.Count is inaccessible, given the fact that neither ILeft nor IRight hide this property. I've read the documentation, and in ECMA-334 C# Language Specification, section 20.1.2: Base interfaces, there is a similar example involving IControl, ITextBox, IListBox and IComboBox, and the example states: "the IComboBox interface above inherits members SetText and SetItems as well as Paint." In the example, Paint is defined in the basic interface (IControl). And then in 20.2, "The members of an interface are the members inherited from the base interfaces and the members declared by the interface itself." From 20.4.2: "When a class implements multiple interfaces that have the same base interface, there can be only one implementation of the base interface." Apparently the property Count in my example shouldn't be hidden in the interface IBottom, yet I'm getting an error. Is this a bug in mcs or am I missing something? TIA, Rodolfo Campero PS: BTW, is this the right list to ask this kind of questions, or would mono-devel-list be more appropriate? _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Drawing
On Fri, 2004-02-06 at 22:10, Met @ Uber wrote: > As i've never done any image building/manipulation with Mono I was > wondering what API's I should be looking at. I'd like to be able to > build visual views of a databases table structure. nothing complicated > - just something to help with another project. > > Suggestions? You should take a look at System.Drawing and System.Data Cheers -- Marco Canini <[EMAIL PROTECTED]> ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Drawing
As i've never done any image building/manipulation with Mono I was wondering what API's I should be looking at. I'd like to be able to build visual views of a databases table structure. nothing complicated - just something to help with another project. Suggestions? ~ Matthew ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Broken Port of FlexWiki
Jackson, Thanks for your efforts. I was able to download and patch the source with a few issues with compiling afterwards. What is your current status with this (or a place I can read concerning your status with this)? Have you actually been able to compiled and run this with mono on linux at this point? regards, JE On Fri, 2004-02-06 at 12:28, Jackson Harper wrote: > Sorry about that I have uploaded a new package. > > Jackson > > > On Fri, 2004-02-06 at 10:36, Jim Erwin wrote: > > I looked on the mono contact page before sending this, and didn't see an > > alternative place to send a broken file notice to, so I'm doing so here. > > > > The link for original source of the FlexWiki on > > http://www.go-mono.com/ports/ links to a file with zero length. > > Gunzipping it gives you an error. Opening it with winzip unzips another > > file with the same name FlexWiki.tar.gz. That file shows zero length. > > > > I would like a chance to deploy this wiki as a demonstration of running > > a farily full-featured asp.net application with mono and apache, but > > since I can't get the source, it's making it difficult to do so. I also > > think it would be a great example to look at concerning the differences > > between deploying it via IIS and the .NET CLR VS Apache and the Mono > > runtime. > > > > If somebody could fix this and post a notice to the fix, I would greatly > > appreciate it. > > > > regards, > > > > JE > > ___ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list -- Jim Erwin <[EMAIL PROTECTED]> Eyekahn\VDSI ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problems with Sqlite
hi, hehehe, now i know what the mp3 library question earlier this week was all about ;-) i don't know much about the sqlite provider (though there is some sample code in the mphoto module in cvs). this code worked for me though: using System; using System.Data; using Mono.Data.SqliteClient; class Test { public static void Main() { string connectionString = "URI=file:music.db"; IDbConnection dbcon; dbcon = new SqliteConnection(connectionString); dbcon.Open(); IDbCommand dbcmd = dbcon.CreateCommand(); dbcmd.CommandText = "INSERT INTO music (file, title, length, artist, album, year, track,comment, bitrate, frequency, mode) VALUES('/home/tapia/mono/mcatalog/plugins/prueba.mp3','prueba',170,'HenriMancini','Best Of...','',1,'',163,48000,'Stereo');"; dbcmd.ExecuteNonQuery(); } } regards, --chris On Fri, 2004-02-06 at 15:42, tapia wrote: > Hi. > > I'm working in a project using Mono.Data.SqliteClient, and I have a > little problem. I have a SQL sentence, and if I execute it via the > sqlite commandline interface it works fine, but if I execute it via > Mono, the runtime show me this error: > > Unhandled Exception: System.ApplicationException: Sqlite error near > "'prueba": syntax error > > The SQL sentence is here: > > INSERT INTO music (file, title, length, artist, album, year, track, > comment, bitrate, frequency, mode) VALUES > ('/home/tapia/mono/mcatalog/plugins/prueba.mp3','prueba',170,'Henri > Mancini','Best Of...','',1,'',163,48000,'Stereo') > > And the table is here: > > CREATE TABLE music ( > file STRING PRIMARY KEY NOT NULL, > title STRING, > length INTEGER, > artist STRING, > album STRING, > year STRING, > track INTEGER, > comment STRING, > bitrate INTEGER, > frequency INTEGER, > mode STRING) > > Is there a Mono.Data.SqliteClient bug, or am I doing something wrong? > > Thank you :-) > ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Broken Port of FlexWiki
Sorry about that I have uploaded a new package. Jackson On Fri, 2004-02-06 at 10:36, Jim Erwin wrote: > I looked on the mono contact page before sending this, and didn't see an > alternative place to send a broken file notice to, so I'm doing so here. > > The link for original source of the FlexWiki on > http://www.go-mono.com/ports/ links to a file with zero length. > Gunzipping it gives you an error. Opening it with winzip unzips another > file with the same name FlexWiki.tar.gz. That file shows zero length. > > I would like a chance to deploy this wiki as a demonstration of running > a farily full-featured asp.net application with mono and apache, but > since I can't get the source, it's making it difficult to do so. I also > think it would be a great example to look at concerning the differences > between deploying it via IIS and the .NET CLR VS Apache and the Mono > runtime. > > If somebody could fix this and post a notice to the fix, I would greatly > appreciate it. > > regards, > > JE ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Broken Port of FlexWiki
I looked on the mono contact page before sending this, and didn't see an alternative place to send a broken file notice to, so I'm doing so here. The link for original source of the FlexWiki on http://www.go-mono.com/ports/ links to a file with zero length. Gunzipping it gives you an error. Opening it with winzip unzips another file with the same name FlexWiki.tar.gz. That file shows zero length. I would like a chance to deploy this wiki as a demonstration of running a farily full-featured asp.net application with mono and apache, but since I can't get the source, it's making it difficult to do so. I also think it would be a great example to look at concerning the differences between deploying it via IIS and the .NET CLR VS Apache and the Mono runtime. If somebody could fix this and post a notice to the fix, I would greatly appreciate it. regards, JE -- Jim Erwin <[EMAIL PROTECTED]> Eyekahn\VDSI ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono Runtime 0.30 compile error
On 02/03/04 Luke Stephenson wrote: > So I unroll .29 and remove it completely. > Download .30. > Configure worked perfectly, detecting ICU, etc. > However when trying to make I receive: > > Making all in mini > make[3]: Entering directory `/root/program_dls/mono-0.30/mono/mini' > ./genmdesc ./cpu-pentium.md cpu-pentium.h pentium_desc > ./genmdesc: error while loading shared libraries: libicui18n.so.26: > cannot open shared object file: No such file or directory > make[3]: *** [cpu-pentium.h] Error 127 > > > After some searching, it looks like there was a common related problem last > spring/summer surrounding this, and I was wondering if someone could help me > out. It's an installation issue on your box: after installing libicu you need to list the directory where it's installed in /etc/ld.so.conf if it's not already there, or set LD_LIBRARY_PATH accordingly. In the former case make sure you also run ldconfig. lupus -- - [EMAIL PROTECTED] debian/rules [EMAIL PROTECTED] Monkeys do it better ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Support for calling C# code from Python code ?
There's http://zope.org/Members/Brian/PythonNet/, not sure if the mono support is already in. Great work, btw. []s, Rodrigo - Original Message - From: "gabor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 06, 2004 1:21 PM Subject: Re: [Mono-list] Support for calling C# code from Python code ? > On Thu, 2004-02-05 at 15:08, Manish Gupta wrote: > > Hi, > > I am into my early phase of understanding Mono environment. On Mono > > home page I was able to find the way to call C# code from C code. But > > could not locate a way to call C# code from Python. > > > > Did I miss out something? If not, is there any plan to support this? > > you can try to: > -create some wrapper C code, which calls c# code > -call the C-wrapper-code from python > :) > > imho there is no direct binding between python-c#, but i can be wrong > > gabor > > ___ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list > ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Problems with Sqlite
Hi. I'm working in a project using Mono.Data.SqliteClient, and I have a little problem. I have a SQL sentence, and if I execute it via the sqlite commandline interface it works fine, but if I execute it via Mono, the runtime show me this error: Unhandled Exception: System.ApplicationException: Sqlite error near "'prueba": syntax error The SQL sentence is here: INSERT INTO music (file, title, length, artist, album, year, track, comment, bitrate, frequency, mode) VALUES ('/home/tapia/mono/mcatalog/plugins/prueba.mp3','prueba',170,'Henri Mancini','Best Of...','',1,'',163,48000,'Stereo') And the table is here: CREATE TABLE music ( file STRING PRIMARY KEY NOT NULL, title STRING, length INTEGER, artist STRING, album STRING, year STRING, track INTEGER, comment STRING, bitrate INTEGER, frequency INTEGER, mode STRING) Is there a Mono.Data.SqliteClient bug, or am I doing something wrong? Thank you :-) -- "Actuamos como si el lujo y el confort fueran lo más importante en la vida, cuando todo lo que necesitamos para ser felices es algo que nos haga sentir entusiasmo". -- Albert Einstein signature.asc Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente
Re: [Mono-list] Support for calling C# code from Python code ?
On Thu, 2004-02-05 at 15:08, Manish Gupta wrote: > Hi, > I am into my early phase of understanding Mono environment. On Mono > home page I was able to find the way to call C# code from C code. But > could not locate a way to call C# code from Python. > > Did I miss out something? If not, is there any plan to support this? you can try to: -create some wrapper C code, which calls c# code -call the C-wrapper-code from python :) imho there is no direct binding between python-c#, but i can be wrong gabor ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mod-mono-server.exe.config
I have problem with mod-mono-server.exe.config, I put mod-mono-server-exe.config in the same directory with mono, then I changed the database connection setting using Npgsql, like this : but when I refresh the dbpage1.aspx, its complaining for the database "monotest", like the mod-mono-server.exe.config setting before, if I should compile the code again, how todo that? I don't understand where is my mistake, your advice will help me very much donaldi, newbie mono __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono RH9 binaries
Hi, If you are going to supply binaries would it not make sense to supply ALL the needed packages including dependencies? Chris Mavin Recital Corporation http://www.recital.com