[Mono-list] Building GUI with glade not working
Hi! I created a test GUI with Glade in Windows and then I tried to build a mono (1.1.8) app with that GUI using the following code: //*** using System; using Gtk; using Glade; public class GladeApp { public static void Main (string[] args) { new GladeApp (args); } public GladeApp (string[] args) { Application.Init(); Glade.XML gxml = new Glade.XML (null, gui.glade, GUI2, null); gxml.Autoconnect (this); Application.Run(); } /* Connect the Signals defined in Glade */ public void OnWindowDeleteEvent (object o, DeleteEventArgs args) { Application.Quit (); args.RetVal = true; } } // And I got the following error: Unhandled Exception: System.ArgumentException: Cannot get resource file 'gui.gla de' Parameter name: resource_name in 0x00119 Glade.XML:.ctor (System.Reflection.Assembly assembly, System.String resource_name, System.String root, System.String domain) in 0x00035 GladeApp:.ctor (System.String[] args) in 0x00019 GladeApp:Main (System.String[] args) What am I doing wrong? thanks! -- ~Fabian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] libgdiplus build error
Hi! I'm trying to build mono from sources and I'm having trouble eith libgdi: gifcodec.c:611: conflicting types for `gdip_save_gif_image_to_file' I'm using gcc 3.4.3 and gcc 3.2 in CentOS 4, any ideas of what's going on? Any special ./configure parameters? thanks!!! -- Fabian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] libgdiplus build error
Hi! I'm trying to build mono from sources and I'm having trouble eith libgdi: gifcodec.c:611: conflicting types for `gdip_save_gif_image_to_file' I'm using gcc 3.4.3 and gcc 3.2 in CentOS 4, any ideas of what's going on? Any special ./configure parameters? thanks!!! -- Fabian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Npgsql error
Thanks to all!! The last one prints: System.String System.Int32 never prints null, I'll try the other suggestions... java-ish lol, what's java?On 8/5/05, Francisco Figueiredo Jr. [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1Fabian Salamanca Dominguez wrote: HiHi Fabian! I tried to compile a simple C# program and access a Postgresql DB but I got this error in runtime (it compiled with no errors) : [EMAIL PROTECTED] Mono]$ mcs dbaccess.cs-r:Npgsql.dll -r:System.Data.dll [EMAIL PROTECTED] Mono]$ mono dbaccess.exe Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in 0x000e1 dbAccess:Main (System.String[] args)string sql =SELECT operatingsystem, nodeid +FROM assets; What are the sql types of operatingsystem and nodeid?Npgsql doesn't do any implicit conversion of types.dbcmd.CommandText = sql;IDataReader reader = dbcmd.ExecuteReader();while( reader.Read()) { string operatingsystem = (string) reader[operatingsystem]; string nodeid = (string) reader[nodeid]; Console.WriteLine(OS: +operatingsystem + + nodeid);}To be sure, do the following:Console.WriteLine(reader[operatingsystem].GetType());This will show you what type is being returned. I hope it helps.- --Regards,Francisco Figueiredo Jr.Npgsql Lead Developerhttp://gborg.postgresql.org/project/npgsqlMonoBrasil Project Founder Member http://monobrasil.softwarelivre.org- -Science without religion is lame;religion without science is blind.~ Albert Einstein -BEGIN PGP SIGNATURE-Version: GnuPG v1.2.6 (GNU/Linux)Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.orgiQEVAwUBQvNlyv7iFmsNzeXfAQLKzAf/V/qotjEIx6JH9HS7zGcrlLzfUad71xeP WVgR8xo7TkYVvM0rThA3QLk9nlzT+1MLwlLwLO+HjTvz60vgEUmcWwbTFqjbZnt0hkTmokXeVAdQjLjUsPRAb5xPPcuT89YnGtrfSdpv7wLe/BXJMT/JXE9C/94BuXiBNL+50QpUQc9ZAKGwcZ4qkO1cDCIi+cLTgjdPBAqOxInLFzYvAbkAgd/yKn1EkRYC/UYdtsQDdE6ie0dyPh9Q1L6tlBE0bNa7ol0sbY7OjuFtEkx2DvjOycrdMjjCt7HJ 1YkWLIlxUy6lMSzSnYwl7c0RRAgRVeBKldqknPYp9NbfCyC994NGzA===txOv-END PGP SIGNATURE-___Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/___Mono-list maillist- Mono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-list-- Fabian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Npgsql error
Hi I tried to compile a simple C# program and access a Postgresql DB but I got this error in runtime (it compiled with no errors) : [EMAIL PROTECTED] Mono]$ mcs dbaccess.cs -r:Npgsql.dll -r:System.Data.dll [EMAIL PROTECTED] Mono]$ mono dbaccess.exe Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in 0x000e1 dbAccess:Main (System.String[] args) This is the code: using System; using System.Data; using Npgsql; public class dbAccess { public static void Main(string[] args) { string connectionString = Server=localhost; + Database=opennms; + User ID=opennms; + Password=opennms;; IDbConnection dbcon; dbcon = new NpgsqlConnection(connectionString); dbcon.Open(); IDbCommand dbcmd = dbcon.CreateCommand(); string sql = SELECT operatingsystem, nodeid + FROM assets; dbcmd.CommandText = sql; IDataReader reader = dbcmd.ExecuteReader(); while(reader.Read()) { string operatingsystem = (string) reader[operatingsystem]; string nodeid = (string) reader[nodeid]; Console.WriteLine(OS: + operatingsystem + + nodeid); } // clean up reader.Close(); reader = null; dbcmd.Dispose(); dbcmd = null; dbcon.Close(); dbcon = null; } } What am I doing wrong? Thanks!!!-- Fabian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] coLinux/Debian mod_mono/1.0.5 error
Hi! I'm using coLinux/Debian unstable along with Apache/2.0.54 (Debian GNU/Linux) mod_mono/1.0.5 PHP/4.3.10-15 and mono 1.1.8, when I try to connect to an app I get this error: In ModMonoWorker.Run: Abnormal string size. Parameter name: size I already tried Google... Please help! thanks! -- Fabián ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] coLinux/Debian unstable mod_mono error
Hi! I'm using coLinux/Debian unstable along with Apache/2.0.54 (Debian GNU/Linux) mod_mono/1.0.5 PHP/4.3.10-15 and mono 1.1.8, when I try to connect to an app I get this error: In ModMonoWorker.Run: Abnormal string size. Parameter name: size Apache and mod-mono-server are both in localhost. I already tried Google... Please help! thanks! -- Fabián ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] coLinux/Debian unstable mod_mono error
Hi! I'm using coLinux/Debian unstable aling with Apache/2.0.54 (Debian GNU/Linux) mod_mono/1.0.5 PHP/4.3.10-15 and mono 1.1.8, when I try to connect to an app I get this error: In ModMonoWorker.Run: Abnormal string size. Parameter name: size I already tried Google... Please help! thanks! -- Fabian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list