From sincontr at yahoo.it Tue Apr 1 06:05:14 2008 From: sincontr at yahoo.it (Stefano Incontri) Date: Tue, 01 Apr 2008 12:05:14 +0200 Subject: [Mono-list] Simple web service with Oracle access Message-ID: <47F208DA.5050802@yahoo.it> Hi All, I'm developing a simple web service which should query an Oracle database, running on Xsp2. It fails probably because it has no credentials specified to connect over the network to the database. I guess I should specify credentials through in web.config, but I don't know how to do it, is it possible and how? Thank you very much Stefano Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From mjamon at ntsp.nec.co.jp Tue Apr 1 05:25:42 2008 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Tue, 01 Apr 2008 17:25:42 +0800 Subject: [Mono-list] Linux Printing Exception Message-ID: <47F1FF96.5050903@mnl.ntsp.nec.co.jp> Hello guys, I am using System.Drawing.Printing namespace to print a data. I tried it first in *mono-1.2.5.1-Windows* and prints without a problem. However, when I tried compiling the same source code in *Redhat 9* with *mono-1.2.6* installed, I received this exception from the console: /Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.Printing.SysPrn ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> *System.DllNotFoundException: gdiplus.dll* at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack trace --- at System.Drawing.Printing.SysPrn..cctor () [0x00000] --- End of inner exception stack trace --- at System.Drawing.Printing.PrinterSettings..ctor () [0x00000] at System.Drawing.Printing.PrintDocument..ctor () [0x00000] at (wrapper remoting-invoke-with-check) System.Drawing.Printing.PrintDocument:.ctor () / Anyone knows why this is happening? Thanks in advance, Marc Glenn From sebastien.pouliot at gmail.com Tue Apr 1 07:50:45 2008 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Tue, 01 Apr 2008 07:50:45 -0400 Subject: [Mono-list] Linux Printing Exception In-Reply-To: <47F1FF96.5050903@mnl.ntsp.nec.co.jp> References: <47F1FF96.5050903@mnl.ntsp.nec.co.jp> Message-ID: <1207050645.4392.46.camel@poupou.home> Hello Marc, On Tue, 2008-04-01 at 17:25 +0800, Marc Glenn wrote: > Hello guys, > > I am using System.Drawing.Printing namespace to print a data. > I tried it first in *mono-1.2.5.1-Windows* and prints without a > problem. > > However, when I tried compiling the same source code in *Redhat 9* > with *mono-1.2.6* installed, Did you install/compile libgdiplus in this system ? If so make sure it's the same version (1.2.6) than your mono installation. > I received this exception from the console: > > /Exception: System.TypeInitializationException: An exception was thrown > by the type initializer for System.Drawing.Printing.SysPrn ---> > System.TypeInitializationException: An exception was thrown by the > type initializer for System.Drawing.GDIPlus ---> > *System.DllNotFoundException: gdiplus.dll* > at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup > (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) > at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner > exception stack trace --- > > at System.Drawing.Printing.SysPrn..cctor () [0x00000] --- End of inner > exception stack trace --- > > at System.Drawing.Printing.PrinterSettings..ctor () [0x00000] > at System.Drawing.Printing.PrintDocument..ctor () [0x00000] > at (wrapper remoting-invoke-with-check) > System.Drawing.Printing.PrintDocument:.ctor () > / > Anyone knows why this is happening? > > Thanks in advance, > Marc Glenn > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From francescocarsana at ds4.it Tue Apr 1 11:30:42 2008 From: francescocarsana at ds4.it (Ing. Francesco Carsana) Date: Tue, 01 Apr 2008 17:30:42 +0200 Subject: [Mono-list] Mono Embedding: manage events Message-ID: <47F25522.40201@ds4.it> I'm writing a C++ class with Mono embedding. This class is a wrapper to a .NET assembly that raises 3 events. I would like to know if it's possible to catch that events in C++ without changing .NET assembly (I haven't assembly source code...). Where can I find a code example? I've searched in http://anonsvn.mono-project.com/viewcvs/trunk/mono/samples/embed/ but I haven't found an example on how to manage events... Thank You. Francesco. From robertj at gmx.net Tue Apr 1 13:02:14 2008 From: robertj at gmx.net (Robert Jordan) Date: Tue, 01 Apr 2008 19:02:14 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: <47F25522.40201@ds4.it> References: <47F25522.40201@ds4.it> Message-ID: Ing. Francesco Carsana wrote: > I'm writing a C++ class with Mono embedding. > This class is a wrapper to a .NET assembly that > raises 3 events. > I would like to know if it's possible to catch > that events in C++ without changing .NET assembly > (I haven't assembly source code...). > Where can I find a code example? > I've searched in > > http://anonsvn.mono-project.com/viewcvs/trunk/mono/samples/embed/ > > but I haven't found an example on how to manage events... The recommended way is to declare the handlers as icalls in managed code: C#: class EventHelper { // handler of System.EventHandler [MethodImpl (MethodImplOptions.InternalCall)] public static extern void EventHandlerICall (object sender, EventArgs e); } C++: mono_add_internal_call ("EventHelper::EventHandlerICall", &icall_EventHelper_EventHandlerICall); void icall_EventHelper_EventHandlerICall (MonoObject* sender, MonoObject* args) { ... } To hook the handler you have create a delegate for EventHandlerICall using Delegate.CreateDelegate and add it to the event with method obtained from mono_event_get_add_method. Robert From Kevin at RawFedDogs.net Tue Apr 1 14:39:17 2008 From: Kevin at RawFedDogs.net (Kevin Monceaux) Date: Tue, 1 Apr 2008 13:39:17 -0500 (CDT) Subject: [Mono-list] confirm ff84e92c350af42e0731e135b155e73e73d6a19e In-Reply-To: References: Message-ID: On Tue, 1 Apr 2008, mono-list-request at lists.ximian.com wrote: > Mailing list removal confirmation notice for mailing list Mono-list > > We have received a request for the removal of your email address, > "Kevin at rawfeddogs.net" from the mono-list at lists.ximian.com mailing > list. To confirm that you want to be removed from this mailing list, > simply reply to this message, keeping the Subject: header intact. Or > visit this web page: > > http://lists.ximian.com/mailman/confirm/mono-list/ff84e92c350af42e0731e135b155e73e73d6a19e > > > Or include the following line -- and only the following line -- in a > message to mono-list-request at lists.ximian.com: > > confirm ff84e92c350af42e0731e135b155e73e73d6a19e > > Note that simply sending a `reply' to this message should work from > most mail readers, since that usually leaves the Subject: line in the > right form (additional "Re:" text in the Subject: is okay). > > If you do not wish to be removed from this list, please simply > disregard this message. If you think you are being maliciously > removed from the list, or have any other questions, send them to > mono-list-owner at lists.ximian.com. > Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX Si hoc legere scis nimium eruditionis habes. Longum iter est per praecepta, breve et efficax per exempla!!! From twiest at novell.com Tue Apr 1 20:30:27 2008 From: twiest at novell.com (Thomas Wiest) Date: Tue, 01 Apr 2008 18:30:27 -0600 Subject: [Mono-list] Slow Bugzilla Logins... Message-ID: <47F2D3A3.7000405@novell.com> Hey Guys, Awhile ago I complained (again) to the bugzilla / ichain teams about the slowness of logging into Bugzilla. They said that they needed a WireShark log of a slow login session in order to trouble shoot what was going on. Unfortunately since it's sporadic, I haven't been able to capture one yet. If any of you happen to capture one, I'll be more than happy to forward it on to them. In the mean time, they gave me a suggestion that has seemed to help. They suggested that I turn off TLS 1.0 support in FireFox. In FireFox on Linux you can do this by going to Edit / Preferences / Advanced / Encryption and unchecking the checkbox "Use TLS 1.0". Since I made this change, I haven't seen any long pauses while logging into Novell Bugzilla. I've added this to our Novell Bugzilla FAQ page here: http://mono-project.com/FAQ:_Novell_Bugzilla Thanks, Thomas From francescocarsana at ds4.it Wed Apr 2 03:12:13 2008 From: francescocarsana at ds4.it (Ing. Francesco Carsana) Date: Wed, 02 Apr 2008 09:12:13 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: References: <47F25522.40201@ds4.it> Message-ID: <47F331CD.5080705@ds4.it> > The recommended way is to declare the handlers as icalls in > managed code: The problem is that I can't modify .NET assembly source code. I only know that assembly has this event: public event ConnectionEventHandler OnConnectionEvent; where ConnectionEventHandler is: public delegate void ConnectionEventHandler(string n, bool c); To manage that event in C#: s = new Session(); s.OnConnectionEvent += new ConnectionEventHandler(s_OnConnectionEvent); // Attach to receive Event where s_OnConnectionEvent is: void s_OnConnectionEvent(string n, bool b) { ... } In my C++ wrapper class to this assembly, I have to find a way to pass a function pointer (or something else) to the assembly in order to manage that event. Is it possible? Is there another way to do that? Could someone please give me an example, please? Thank You. Francesco. From dnperfors at gmail.com Wed Apr 2 03:20:51 2008 From: dnperfors at gmail.com (David Perfors) Date: Wed, 2 Apr 2008 09:20:51 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: <47F331CD.5080705@ds4.it> References: <47F25522.40201@ds4.it> <47F331CD.5080705@ds4.it> Message-ID: <8c0d194e0804020020k598eae3dl83ae67d4d76a08ef@mail.gmail.com> Although I don't have any experience with this, another solution could be to first create a wrapper class in C# which can talk to the C++ class in the correct way. Ok it takes more time to write, but you are more flexible. David On Wed, Apr 2, 2008 at 9:12 AM, Ing. Francesco Carsana wrote: > > The recommended way is to declare the handlers as icalls in > > managed code: > > The problem is that I can't modify .NET assembly source code. > I only know that assembly has this event: > > public event ConnectionEventHandler OnConnectionEvent; > > where ConnectionEventHandler is: > > public delegate void ConnectionEventHandler(string n, bool c); > > To manage that event in C#: > > s = new Session(); > s.OnConnectionEvent += new > ConnectionEventHandler(s_OnConnectionEvent); // Attach to receive Event > > where s_OnConnectionEvent is: > > void s_OnConnectionEvent(string n, bool b) > { > ... > } > > In my C++ wrapper class to this assembly, I have to find a way > to pass a function pointer (or something else) to the assembly in > order to manage that event. Is it possible? > Is there another way to do that? > Could someone please give me an example, please? > > Thank You. > > Francesco. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From andreas.faerber at web.de Wed Apr 2 03:38:40 2008 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Wed, 2 Apr 2008 09:38:40 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: <47F331CD.5080705@ds4.it> References: <47F25522.40201@ds4.it> <47F331CD.5080705@ds4.it> Message-ID: <367094C1-F580-4EAA-B040-85D756EFA045@web.de> Am 02.04.2008 um 09:12 schrieb Ing. Francesco Carsana: >> The recommended way is to declare the handlers as icalls in >> managed code: > > The problem is that I can't modify .NET assembly source code. > I only know that assembly has this event: > > public event ConnectionEventHandler OnConnectionEvent; > > where ConnectionEventHandler is: > > public delegate void ConnectionEventHandler(string n, bool c); > > [...] > Is there another way to do that? If you can't modify/extend the existing assembly, likely you can create a new assembly for that purpose. That's what I've been doing. Andreas From jamjar at gmail.com Wed Apr 2 03:50:17 2008 From: jamjar at gmail.com (Piotr Stulinski) Date: Wed, 2 Apr 2008 09:50:17 +0200 Subject: [Mono-list] Mono mySQL connector problems Message-ID: <51969bf60804020050h3198999lf89b721bd58bd70d@mail.gmail.com> Hi All Im struggling to understand why many of my mySQL statements work 100% on windows and suddenly havoc occurs when i port to suse. A number of things that i have found with serious breakages and some workarounds, specifically with the MySqlCommandBuilder: 1) For some strange reason i have to call a .ToString() once instantiated or it wont recognised a SelectCommand exists and hence InsertCommands fail. 2) GetUpdateCommand() crashes sometimes and sometimes not with a cast exception - cannot cast from one type to another - i dont have more information on this and i cannot fix it. 3) When updating 2 tables with a PK FK relationship in a sql transaction, using 2 command builders and manually assigning the PK from one record to another, after running commit() it crashes as the primary key is updated in the first table but not transfered to the child table FK...- this does however work 100% on windows. Is anyone else having these kinds of problems? Piotr From francescocarsana at ds4.it Wed Apr 2 05:01:27 2008 From: francescocarsana at ds4.it (Ing. Francesco Carsana) Date: Wed, 02 Apr 2008 11:01:27 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: <367094C1-F580-4EAA-B040-85D756EFA045@web.de> References: <47F25522.40201@ds4.it> <47F331CD.5080705@ds4.it> <367094C1-F580-4EAA-B040-85D756EFA045@web.de> Message-ID: <47F34B67.2000805@ds4.it> > If you can't modify/extend the existing assembly, likely you can create a new assembly for that purpose. That's what I've been doing. Could someone send me a little example, please? Thank you. Francesco. From robertj at gmx.net Wed Apr 2 05:53:04 2008 From: robertj at gmx.net (Robert Jordan) Date: Wed, 02 Apr 2008 11:53:04 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: <47F331CD.5080705@ds4.it> References: <47F25522.40201@ds4.it> <47F331CD.5080705@ds4.it> Message-ID: Ing. Francesco Carsana wrote: >> The recommended way is to declare the handlers as icalls in >> managed code: > > The problem is that I can't modify .NET assembly source code. > I only know that assembly has this event: You don't need to modify the original assembly. Implement the wrapper in a new assembly. > In my C++ wrapper class to this assembly, I have to find a way > to pass a function pointer (or something else) to the assembly in > order to manage that event. Is it possible? No. > Is there another way to do that? No. > Could someone please give me an example, please? Untested. Implement this in its own assembly: public class ConnectionEventWrapper { [MethodImpl (MethodImplOptions.InternalCall)] public static extern void UnmanagedHandler (string n, bool c); public static void AttachEvent(Session source) { source.OnConnectionEvent += new ConnectionEventHandler (UnmanagedHandler); } public static void DetachEvent(Session source) { source.OnConnectionEvent -= new ConnectionEventHandler (UnmanagedHandler); } } C++: // this must be called once mono_add_internal_call ("ConnectionEventWrapper::UnmanagedHandler", &icall_ConnectionEventWrapper_UnmanagedHandler); void icall_ConnectionEventWrapper_UnmanagedHandler (MonoString n, MonoBoolean c) { // do something } Hooking the event: void ConnectionEventWrapper_AttachEvent (MonoObject* session) { static MonoAssembly *assembly = NULL; static MonoClass *class = NULL; static MonoMethod *attach_event_method = NULL; MonoObject *exception; gpointer args[2]; // load wrapper assembly if (!assembly) { MonoImageOpenStatus status; // "wrapper.dll" is the name of the assembly // implementing the wrapper. assembly = mono_assembly_open ("wrapper.dll", &status); g_assert (assembly); } // load class ConnectionEventWrapper if (!class) { class = mono_class_from_name ( mono_assembly_get_image (assembly), "yournamespace", "ConnectionEventWrapper"); g_assert (wrapper_class); } // load method ConnectionEventWrapper::AttachEvent if (!attach_event_method) { attach_event_method = mono_class_get_method_from_name ( class, "AttachEvent", 1); g_assert (attach_event_method); } // call AttachEvent(session); args [0] = session; mono_runtime_invoke (attach_event_method, NULL, args, &exception); if (exception) { // handle exception } } Robert From mjamon at ntsp.nec.co.jp Wed Apr 2 06:58:49 2008 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Wed, 02 Apr 2008 18:58:49 +0800 Subject: [Mono-list] Linux Printing Exception In-Reply-To: <1207050645.4392.46.camel@poupou.home> References: <47F1FF96.5050903@mnl.ntsp.nec.co.jp> <1207050645.4392.46.camel@poupou.home> Message-ID: <47F366E9.6090301@mnl.ntsp.nec.co.jp> Hello Sebastien, I installed libgdiplus on redhat 9 and it solved the problem. Thanks very much. Regards, Marc Glenn Sebastien Pouliot wrote: > Hello Marc, > > On Tue, 2008-04-01 at 17:25 +0800, Marc Glenn wrote: > >> Hello guys, >> >> I am using System.Drawing.Printing namespace to print a data. >> I tried it first in *mono-1.2.5.1-Windows* and prints without a >> problem. >> >> However, when I tried compiling the same source code in *Redhat 9* >> with *mono-1.2.6* installed, >> > > Did you install/compile libgdiplus in this system ? If so make sure it's > the same version (1.2.6) than your mono installation. > > >> I received this exception from the console: >> >> /Exception: System.TypeInitializationException: An exception was thrown >> by the type initializer for System.Drawing.Printing.SysPrn ---> >> System.TypeInitializationException: An exception was thrown by the >> type initializer for System.Drawing.GDIPlus ---> >> *System.DllNotFoundException: gdiplus.dll* >> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup >> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) >> at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner >> exception stack trace --- >> >> at System.Drawing.Printing.SysPrn..cctor () [0x00000] --- End of inner >> exception stack trace --- >> >> at System.Drawing.Printing.PrinterSettings..ctor () [0x00000] >> at System.Drawing.Printing.PrintDocument..ctor () [0x00000] >> at (wrapper remoting-invoke-with-check) >> System.Drawing.Printing.PrintDocument:.ctor () >> / >> Anyone knows why this is happening? >> >> Thanks in advance, >> Marc Glenn >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > > > From mtausig at fsmat.at Wed Apr 2 07:28:53 2008 From: mtausig at fsmat.at (Mathias Tausig) Date: Wed, 2 Apr 2008 13:28:53 +0200 (CEST) Subject: [Mono-list] Crossplatform gtk# app Message-ID: <64816.195.64.3.50.1207135733.squirrel@fsmat.at> Hy! I would like to develop a crossplatform (that is linux and windows) application which uses gtk# using mono. Is there some way of sparing the windows users the hassle of installing the gtk# assemblies by somehow "statically linking" the neccesary assemblies into my application? cheers mathias P.S.: I have also posted this message to the gtk-sharp list, since I think that it can belong to both lists. Sorry for the cross-posting. From mariodc at sydec.be Wed Apr 2 07:55:02 2008 From: mariodc at sydec.be (Mario De Clippeleir) Date: Wed, 2 Apr 2008 13:55:02 +0200 Subject: [Mono-list] Windows service and Mac/Linux daemons Message-ID: Hi, I was wondering if it is possible to write a windows service in mono that works as a Mac daemon as well ? Br, Mario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080402/13b64b42/attachment.html From ildar at users.sourceforge.net Wed Apr 2 07:31:20 2008 From: ildar at users.sourceforge.net (Ildar Mulyukov) Date: Wed, 02 Apr 2008 17:31:20 +0600 Subject: [Mono-list] mono-debugger: Help! EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable Message-ID: <1207135880.32145.6@ildar.innovations.kz> Hello, I am not sure who I should ask for help. Hence writing to this list. When in mdb I "run" command, I get EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable: /usr/bin/mono Detailed output is attached. Version of the software: mono-debugger-0.60-alt1 mono-1.9-alt2 Any ideas? Thanks in advance. Best regards, Ildar -- Ildar Mulyukov, free SW designer/programmer ================================================ email: ildar at users.sourceforge.net home: http://tuganger.narod.ru/ ALT Linux Sisyphus ================================================ -------------- next part -------------- % mono --debug /usr/lib/mono/1.0/mdb.exe /usr/lib/mono/1.0/dtd2xsd.exe ?Mono Debugger (mdb) r Starting program: /usr/lib/mono/1.0/dtd2xsd.exe EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable: /usr/bin/mono at Mono.Debugger.Backend.ProcessServant.Initialize (Mono.Debugger.Backend.SingleSteppingEngine engine, Mono.Debugger.Backend.Inferior inferior, Boolean is_exec) [0x001e0] in /usr/src/RPM/BUILD/mono-debugger-0.60/backend/ProcessServant.cs:360 at (wrapper remoting-invoke-with-check) Mono.Debugger.Backend.ProcessServant:Initialize (Mono.Debugger.Backend.SingleSteppingEngine,Mono.Debugger.Backend.Inferior,bool) at Mono.Debugger.Backend.ThreadManager.HandleChildEvent (Mono.Debugger.Backend.SingleSteppingEngine engine, Mono.Debugger.Backend.Inferior inferior, Mono.Debugger.Backend.ChildEvent& cevent, System.Boolean& resume_target) [0x00012] in /usr/src/RPM/BUILD/mono-debugger-0.60/backend/ThreadManager.cs:165 at (wrapper remoting-invoke-with-check) Mono.Debugger.Backend.ThreadManager:HandleChildEvent (Mono.Debugger.Backend.SingleSteppingEngine,Mono.Debugger.Backend.Inferior,Mono.Debugger.Backend.Inferior/ChildEvent&,bool&) at Mono.Debugger.Backend.SingleSteppingEngine.ProcessEvent (Mono.Debugger.Backend.ChildEvent cevent) [0x001e0] in /usr/src/RPM/BUILD/mono-debugger-0.60/backend/SingleSteppingEngine.cs:209 at Mono.Debugger.Backend.SingleSteppingEngine.ProcessEvent (Int32 status) [0x0000c] in /usr/src/RPM/BUILD/mono-debugger-0.60/backend/SingleSteppingEngine.cs:155 at (wrapper remoting-invoke-with-check) Mono.Debugger.Backend.SingleSteppingEngine:ProcessEvent (int) at Mono.Debugger.Backend.ThreadManager.engine_thread_main () [0x000cd] in /usr/src/RPM/BUILD/mono-debugger-0.60/backend/ThreadManager.cs:318 zsh: killed mono --debug /usr/lib/mono/1.0/mdb.exe /usr/lib/mono/1.0/dtd2xsd.exe From robertj at gmx.net Wed Apr 2 09:13:10 2008 From: robertj at gmx.net (Robert Jordan) Date: Wed, 02 Apr 2008 15:13:10 +0200 Subject: [Mono-list] mono-debugger: Help! EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable In-Reply-To: <1207135880.32145.6@ildar.innovations.kz> References: <1207135880.32145.6@ildar.innovations.kz> Message-ID: Ildar Mulyukov wrote: > Hello, > > I am not sure who I should ask for help. Hence writing to this list. > > When in mdb I "run" command, I get > EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable: > /usr/bin/mono > > Detailed output is attached. > > Version of the software: > mono-debugger-0.60-alt1 > mono-1.9-alt2 Mdb is usually emitting this error if the installed mono version does not match mdb's expectations. IIRC, mdb 0.60 requires mono 1.2.6. As per README, the current mdb version (0.80) requires a post 1.9 mono from SVN, so you have 2 options: downgrade mono or compile from SVN. Robert From vvaradhan at novell.com Wed Apr 2 09:34:01 2008 From: vvaradhan at novell.com (Veerapuram Varadhan) Date: Wed, 02 Apr 2008 19:04:01 +0530 Subject: [Mono-list] Using System.Data.Common.DbProviderFactory with Mono In-Reply-To: <16349638.post@talk.nabble.com> References: <15735200.post@talk.nabble.com> <1204202707.18296.147.camel@vvaradhan.blr.novell.com> <15753892.post@talk.nabble.com> <16349638.post@talk.nabble.com> Message-ID: <1207143241.7692.104.camel@vvaradhan.blr.novell.com> Hi, On Fri, 2008-03-28 at 05:15 -0700, dr_d00m wrote: > Hi, > > I started this thread about a month ago and I still do not know how to > handle the problem. > I checked it with the new 1.9 version, but with the same result. > Is there anybody who recognized my bug report? > Or is it just a stupid mistake I made using Mono? > As with any software, bugs are part of it and we sincerely appreciate your efforts to help us clean these bugs. While we appreciate your efforts in helping us by reporting bugs, we also seek some kinda understanding that bugs are handled according to some priorities and sometimes they may not attract immediate attention. > I would be glad if anybody could give me a small hint about this... Anyway, your bug will be handled soon and more follow through on bugzilla. Thanks, V. Varadhan > Thanks, > > dr_d00m > > > dr_d00m wrote: > > > > Hi, > > > > I posted the bug as Bug 365911 to bugzilla.novell.com > > > > Thanks for any further help. > > > > > > > > Veerapuram Varadhan wrote: > >> > >> Hi, > >> > >> Can you file a bug and attach a sample console app using similar > >> providerstring? It would be easier to track and solve this through > >> bugzilla. > >> > >> Thanks, > >> > >> V. Varadhan > >> > >> On Thu, 2008-02-28 at 04:19 -0800, dr_d00m wrote: > >>> Hello, > >>> > >>> I am trying to create an application which should be designed for common > >>> database connectivity. Therefore I used the > >>> System.Data.Common.DbProviderFactory. I created my application in Visual > >>> Studio and then tried to run it under Mono. I also tested it with Moma > >>> which > >>> gave me the go-ahead in any cases. In .Net everything worked fine but > >>> under > >>> Mono it threw a weired exception. > >>> > >>> Unhandled Exception: System.Configuration.ConfigurationErrorsException: > >>> Failed to find or load the registered .Net Framework Data Provider. () > >>> () > >>> at System.Data.Common.DbProviderFactories.GetFactory > >>> (System.Data.DataRow > >>> providerRow) [0x00000] > >>> at System.Data.Common.DbProviderFactories.GetFactory (System.String > >>> providerInvariantName) [0x00000] > >>> at Connectivity.DBLoader.Load () [0x00000] > >>> > >>> I tried to google this one but without any success. > >>> > >>> The code looks like this: > >>> > >>> ... > >>> using System.Data.OracleClient; > >>> using System.Data.Common; > >>> ... > >>> > >>> DbProviderFactory factory = > >>> DbProviderFactories.GetFactory(providerString); > >>> using (conn = factory.CreateConnection()) > >>> { > >>> conn.ConnectionString = ConnectionParameter; > >>> conn.Open(); > >>> > >>> // Here the data from the database is processed. > >>> > >>> conn.Close(); > >>> } > >>> > >>> Is there anything I did not consider or is it impossible to procede like > >>> this under Mono in general? > >>> > >>> Thanks in advance for any help. > >>> > >>> Best regard, > >>> > >>> dr_d00m > >>> > >> > >> _______________________________________________ > >> Mono-list maillist - Mono-list at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/mono-list > >> > >> > > > > > From vvaradhan at novell.com Wed Apr 2 09:36:56 2008 From: vvaradhan at novell.com (Veerapuram Varadhan) Date: Wed, 02 Apr 2008 19:06:56 +0530 Subject: [Mono-list] Mono mySQL connector problems In-Reply-To: <51969bf60804020050h3198999lf89b721bd58bd70d@mail.gmail.com> References: <51969bf60804020050h3198999lf89b721bd58bd70d@mail.gmail.com> Message-ID: <1207143416.7692.107.camel@vvaradhan.blr.novell.com> Hi Piotr, Can you file a bug in our bugzilla and attach a sample describing these issues? We will also try with our samples and more tests. Thanks, V. Varadhan On Wed, 2008-04-02 at 09:50 +0200, Piotr Stulinski wrote: > Hi All > > Im struggling to understand why many of my mySQL statements work 100% > on windows and suddenly havoc occurs when i port to suse. > > A number of things that i have found with serious breakages and some > workarounds, specifically with the MySqlCommandBuilder: > > 1) For some strange reason i have to call a .ToString() once > instantiated or it wont recognised a SelectCommand exists and hence > InsertCommands fail. > > 2) GetUpdateCommand() crashes sometimes and sometimes not with a cast > exception - cannot cast from one type to another - i dont have more > information on this and i cannot fix it. > > 3) When updating 2 tables with a PK FK relationship in a sql > transaction, using 2 command builders and manually assigning the PK > from one record to another, after running commit() it crashes as the > primary key is updated in the first table but not transfered to the > child table FK...- this does however work 100% on windows. > > Is anyone else having these kinds of problems? > > Piotr > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From wberrier at novell.com Wed Apr 2 13:12:47 2008 From: wberrier at novell.com (Wade Berrier) Date: Wed, 02 Apr 2008 11:12:47 -0600 Subject: [Mono-list] Mono 1.9 Released Message-ID: <1207156367.9517.18.camel@berrier.lan> Hi, Mono 1.9 was published on March 13th of 2008: http://www.go-mono.com/mono-downloads/download.html This is our best Mono release yet. More than 400 bugs were fixed between 1.2.6 and 1.9. We branched on January 28th of 2008 and did 6 preview releases. More than 100 of those 400 bugs were fixed during the 1.9 preview cycle. To get a list of goodies and changes, check out the release notes: http://www.go-mono.com/archive/1.9/ Big thanks goes to all the bug reporters and fixers and everyone involved making this release happen. Enjoy! Wade -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080402/13e69996/attachment.bin From mark at dawebber.com Wed Apr 2 13:12:53 2008 From: mark at dawebber.com (Mark Gimelfarb) Date: Wed, 2 Apr 2008 12:12:53 -0500 Subject: [Mono-list] Issues with SqlClient and DataAdapter.Fill() under Linux Message-ID: <20080402121253.dwdvz9s1s0kww0kg@dawebber.com> Hello, all! I would like to get some feedback from the list before writing up a bug on Bugzilla. I apologize for the lengthy post beforehand, but I wanted to get as much detail in as I can to make it useful without having to go back and forth on the list. We've converted an Asterisk.Net-based set of C# IVR code to run on Linux. The code was? written using VS2k5 and .NET 2.0. Asterisk.Net has been modified to run as a daemon and to respond to each incoming connection by spawning a thread, which will then access MS SQL Server and query some data from it, processing it, and returning a resulting AGI command back to Asterisk. All commands and responses are text-based, and Asterisk.Net has no dependencies on any libraries other than mono runtime and standard class libs. The current Linux set up is Mandriva 2007.0 with mono 1.2.3.1 accessing MS SQL Server 2000 SP4 running on a W2k3 box. The process starts by issuing a SELECT query with a DataAdapter.Fill(), which returns results just fine. However, a subsequent call to a stored procedure which uses INSERT followed by SELECT returns no rows (which causes /System.IndexOutOfRangeException: There is no row at position 0/. exception while trying to iterate through the DataRow collection coming back from Fill()'ed DataTable ). We are using DataAdapter.Fill() from SqlClient to return the data back to the calling code. There could be as much as a week between errors or just one day or even one hour. The traffic does get heavy sometimes, depending on the number of simultaneous calls, but load doesn't always seem to be the issue, as we get the error below even in relatively low-load conditions. After we received the error 10 or 20 times in a row, everything seems to come back to normal for a while. This error doesn't occur on Windows under .NET 2.0 with exactly same code. Here's a snippet of the stack trace: Channel [Zap/1-1] [04/02 10:48:05] Exception caught: System.IndexOutOfRangeException: There is no row at position 0. ? at System.Data.DataRowCollection.get_Item (Int32 index) [0x00040] in /home/mandrake/rpm/BUILD/mono-1.2.3.1/mcs/class/System.Data/System.Data/DataRowCollection.cs:78 ? at Asterisk.NET.FastAGI.Scripts.myRSCIVR.IVRNewCall (System.String pcCaller, System.String pcCallee) [0x00066] in [.....]myfile.cs:372 I omitted the non-relevant path to our code with [...] The bottom of the stack is our code trying to iterate through the DataTable's DataRows coming back from Fill(). There should always be data coming back, as INSERT succeeds every time, even if we get a subsequent error. It's the SELECT that returns nothing back (Note, it's not that it returns a row with NULLs, it returns no rows whatsoever--an empty DataTable). Before I submit the Bugzilla report I would like the list's opinion on the following: 1) Has anyone had this problem before (is there another bug out there already)? I searched the Bugzilla, but couldn't find exact same or very similar issues. If someone has found a solution or a patch, that would be great too :) 2) Since the exception we get is not in Fill() itself, but rather after that, I would like to see if I can somehow get the source for the class lib and put some tracing code around fill? and use that class lib instead of the stock one to get some tracing within the Fill method of the DA, so that my Bugzilla report is most useful to the ADO.NET team. 3) What all is needed to be submitted with the report to make this issue easier to fix? This issue is not easy to reproduce at will, so I'm hoping that this is all helpful for starters. Thank you all in advance for reading this monster of a post. Regards, Mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080402/5887a2ee/attachment.html From kevinbe71 at yahoo.com Wed Apr 2 15:01:37 2008 From: kevinbe71 at yahoo.com (Kevin Berry) Date: Wed, 2 Apr 2008 12:01:37 -0700 (PDT) Subject: [Mono-list] Crossplatform gtk# app Message-ID: <345435.27611.qm@web51612.mail.re2.yahoo.com> I've never done it but there are tools to "merge" assemblies. I know this can be done with .NET so i'm assuming it'll work for mono as well. Sent from my iPhone On Apr 2, 2008, at 7:28 AM, "Mathias Tausig" wrote: Hy! I would like to develop a crossplatform (that is linux and windows) application which uses gtk# using mono. Is there some way of sparing the windows users the hassle of installing the gtk# assemblies by somehow "statically linking" the neccesary assemblies into my application? cheers mathias P.S.: I have also posted this message to the gtk-sharp list, since I think that it can belong to both lists. Sorry for the cross-posting. _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From surfzoid at gmail.com Wed Apr 2 15:21:36 2008 From: surfzoid at gmail.com (Petit Eric) Date: Wed, 2 Apr 2008 21:21:36 +0200 Subject: [Mono-list] Windows service and Mac/Linux daemons In-Reply-To: References: Message-ID: <84776a970804021221q588d494fpaeeb5fb7d9bcfd30@mail.gmail.com> 2008/4/2, Mario De Clippeleir : > > > > > Hi, > > > > I was wondering if it is possible to write a windows service in mono that > works as a Mac daemon as well ? I do it on linux, in fact it's an exe as another but run with the mono-service2 command, so after it's just a script with Start/stop > > > > Br, > > > > Mario > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From mandel at themacaque.com Wed Apr 2 19:05:46 2008 From: mandel at themacaque.com (Manuel de la Pena) Date: Thu, 03 Apr 2008 01:05:46 +0200 Subject: [Mono-list] Npsql parameter with leading '?' Message-ID: <1207177546.25250.21.camel@dhcppc6> Hi guys, I have been doing some work with IDataParameters and IDbCommands using the Npsql ADO connector. I've noticed that the Npsql adds a ':' infront of my parameters name which I have named as '?' + 'parameter_name'. I have used the '?' as it is done with the OracleClient, is this the correct behaviour/approach? I have checked the code and Npsql does accept '@' and ':' as the leading chars of the named parameters. Should '?' also be accepted? I'm sure I am not the only one that has made this error. Cheers for you great work, Manuel From timothyparez at gmail.com Wed Apr 2 19:46:16 2008 From: timothyparez at gmail.com (Timothy Parez) Date: Thu, 3 Apr 2008 01:46:16 +0200 Subject: [Mono-list] Fixed: System.Exception: Generic Error [GDI+ status: GenericError] In-Reply-To: References: Message-ID: <6660D8ED-DE6D-4707-95AB-D05F8B84E060@gmail.com> Hi, I've removed the beta and installed the current mono 1.9 stable. Everything is working just fine now :-) The libgdiplus problems have been solved. - First I ran 'make uninstall' in the old source directories - Then I downloaded the new files - Compiled and installed mono - Compiled and installed libgdiplus - Compiled and installed xsp - Compiled and installed libgdiplus A big thank you to everyone who's been working on this release !!! Timothy. On 15 Mar 2008, at 16:47, Timothy Parez wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have done a clean install of Mono 1.9 and I get the same exception > for my ASP.NET sites as with all previous builds of mono 1.9 > > Server Error in '/' Application > Generic Error [GDI+ status: GenericError] > > Description: HTTP 500. Error processing request. > > Stack Trace: > > System.Exception: Generic Error [GDI+ status: GenericError] > at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0007c] in / > usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/ > gdipFunctions.cs:216 > at System.Drawing.Image.Save (System.String filename, > System.Drawing.Imaging.ImageCodecInfo encoder, > System.Drawing.Imaging.EncoderParameters encoderParams) [0x00043] > in /usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/ > Image.cs:457 > at System.Drawing.Image.Save (System.String filename, > System.Drawing.Imaging.ImageFormat format) [0x0004c] in /usr/src/ > mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:441 > at System.Drawing.Image.Save (System.String filename) [0x00000] in / > usr/src/mono-1.9/mcs/class/System.Drawing/System.Drawing/Image.cs:427 > at (wrapper remoting-invoke-with-check) System.Drawing.Image:Save > (string) > at Arendee.ObjectBlog.GoogleImage.cacheThumbnails > (System.Collections.Generic.List`1 Images) [0x0012d] in /tmp/www- > data-temp-aspnet-0/29dc6e76/App_Web_2c54e5ea_9.cs:268 > at Arendee.ObjectBlog.GoogleImage.Get (System.String GoogleId, > System.String Album) [0x004e6] in /tmp/www-data-temp- > aspnet-0/29dc6e76/App_Web_2c54e5ea_9.cs:227 > at (wrapper managed-to-native) > System.Reflection.MonoMethod:InternalInvoke (object,object[]) > at System.Reflection.MonoMethod.Invoke (System.Object obj, > BindingFlags invokeAttr, System.Reflection.Binder binder, > System.Object[] parameters, System.Globalization.CultureInfo > culture) [0x00055] in /usr/src/mono-1.9/mcs/class/corlib/ > System.Reflection/MonoMethod.cs:149 > > Version information: Mono Version: 2.0.50727.42; ASP.NET Version: > 2.0.50727.42 > > > Check out for yourself: http://www.itcrowd.be/gallery.aspx --> > select blogshots for example. > When I add a new image to google, the first time the image is > requested, a thumbnail is created, hence the requirement for > libgdiplus. Because the blogshots gallery > contains new images it tries to create a thumbnail and fails. > > The same is true for my admin page, which requires some > System.Drawing functionality as well. > > Any ideas? > > > Timothy. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > > iD8DBQFH2++D+j5y+etesF8RAq/6AJ0c1WHzz3r+vnzGPFey+0vkuWBtUwCeIqpb > 38PoXI13yotqlGco7tZhCMo= > =JLJq > -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080403/b2550bd5/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080403/b2550bd5/attachment.bin From nagappan at gmail.com Wed Apr 2 20:22:57 2008 From: nagappan at gmail.com (Nagappan A) Date: Wed, 2 Apr 2008 17:22:57 -0700 Subject: [Mono-list] Issues with SqlClient and DataAdapter.Fill() under Linux In-Reply-To: <20080402121253.dwdvz9s1s0kww0kg@dawebber.com> References: <20080402121253.dwdvz9s1s0kww0kg@dawebber.com> Message-ID: <9d0602eb0804021722m9c1501agc39fe814cb0fbdd9@mail.gmail.com> Hi, 3) What all is needed to be submitted with the report to make this issue > easier to fix? > It will be easy to give a (small) test program to reproduce this issue. That will help to fix the issue faster. Thanks Nagappan -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080402/08c59688/attachment.html From francisco at npgsql.org Wed Apr 2 22:15:27 2008 From: francisco at npgsql.org (Francisco Figueiredo Jr.) Date: Wed, 2 Apr 2008 23:15:27 -0300 Subject: [Mono-list] Npsql parameter with leading '?' In-Reply-To: <1207177546.25250.21.camel@dhcppc6> References: <1207177546.25250.21.camel@dhcppc6> Message-ID: <438d02260804021915h474d401fpdff6f36bf0936ee@mail.gmail.com> On Wed, Apr 2, 2008 at 8:05 PM, Manuel de la Pena wrote: > Hi guys, > Hi, Manuel! > I have been doing some work with IDataParameters and IDbCommands using > the Npsql ADO connector. I've noticed that the Npsql adds a ':' infront > of my parameters name which I have named as '?' + 'parameter_name'. > Yes. Npgsql had a bug which is already fixed where it prefixed parameter name. > I have used the '?' as it is done with the OracleClient, is this the > correct behaviour/approach? > > I have checked the code and Npsql does accept '@' and ':' as the leading > chars of the named parameters. Should '?' also be accepted? I'm sure I > am not the only one that has made this error. > Npgsql only accepts @ and : as prefix for parameter placeholders. There is no work done to support ? as parameter placeholders. Is this a big issue for you? I think we can add support for this type of commandtext. At first Npgsql only supported : prefix. Later we added @ support because it would easy people migrating from SQLServer. Now, if it would easy migration from Oracle, of course we have to do something about it! :) Manuel, can you fill a feature request on our project tracker? http://pgfoundry.org/tracker/?group_id=1000140 Thanks in advance. > > > Cheers for you great work, > And thank you for your interest in Npgsql! -- Regards, Francisco Figueiredo Jr. fxjr.blogspot.com www.npgsql.org From ildar at users.sourceforge.net Thu Apr 3 02:08:54 2008 From: ildar at users.sourceforge.net (Ildar Mulyukov) Date: Thu, 03 Apr 2008 12:08:54 +0600 Subject: [Mono-list] mono-debugger: Help! EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable In-Reply-To: <1207135880.32145.6@ildar.innovations.kz> (from ildar@users.sourceforge.net on Wed Apr 2 17:31:20 2008) References: <1207135880.32145.6@ildar.innovations.kz> Message-ID: <1207202934.32145.8@ildar.innovations.kz> Hi, Robert, > Mdb is usually emitting this error if the installed mono version does > not match mdb's expectations. IIRC, mdb 0.60 requires mono 1.2.6. > As per README, the current mdb version (0.80) requires a post 1.9 > mono from SVN, so you have 2 options: downgrade mono or compile from > SVN. Thank you very much for the comprehensive answer. Best regards, Ildar -- Ildar Mulyukov, free SW designer/programmer ================================================ email: ildar at users.sourceforge.net home: http://tuganger.narod.ru/ ALT Linux Sisyphus ================================================ From mandel at themacaque.com Thu Apr 3 05:55:43 2008 From: mandel at themacaque.com (Manuel de la Pena) Date: Thu, 3 Apr 2008 10:55:43 +0100 Subject: [Mono-list] Npsql parameter with leading '?' In-Reply-To: <438d02260804021915h474d401fpdff6f36bf0936ee@mail.gmail.com> References: <1207177546.25250.21.camel@dhcppc6> <438d02260804021915h474d401fpdff6f36bf0936ee@mail.gmail.com> Message-ID: <003101c89570$e357d880$aa078980$@com> Hi Francisco, The fact of having to use '@ or ':' does not really bother me and I have already changed the parameter names in my code. I have added the feature request since it will make it easier to port code that was using Oracle to use PostgreSQL although I understand it is not an important one. Thanks for the quick replay, Manuel -----Mensaje original----- De: francisco.figueiredo.jr at gmail.com [mailto:francisco.figueiredo.jr at gmail.com] En nombre de Francisco Figueiredo Jr. Enviado el: 03 April 2008 03:15 Para: Manuel de la Pena CC: Mono-devel; Mono-list Asunto: Re: [Mono-list] Npsql parameter with leading '?' On Wed, Apr 2, 2008 at 8:05 PM, Manuel de la Pena wrote: > Hi guys, > Hi, Manuel! > I have been doing some work with IDataParameters and IDbCommands using > the Npsql ADO connector. I've noticed that the Npsql adds a ':' infront > of my parameters name which I have named as '?' + 'parameter_name'. > Yes. Npgsql had a bug which is already fixed where it prefixed parameter name. > I have used the '?' as it is done with the OracleClient, is this the > correct behaviour/approach? > > I have checked the code and Npsql does accept '@' and ':' as the leading > chars of the named parameters. Should '?' also be accepted? I'm sure I > am not the only one that has made this error. > Npgsql only accepts @ and : as prefix for parameter placeholders. There is no work done to support ? as parameter placeholders. Is this a big issue for you? I think we can add support for this type of commandtext. At first Npgsql only supported : prefix. Later we added @ support because it would easy people migrating from SQLServer. Now, if it would easy migration from Oracle, of course we have to do something about it! :) Manuel, can you fill a feature request on our project tracker? http://pgfoundry.org/tracker/?group_id=1000140 Thanks in advance. > > > Cheers for you great work, > And thank you for your interest in Npgsql! -- Regards, Francisco Figueiredo Jr. fxjr.blogspot.com www.npgsql.org From martin at novell.com Wed Apr 2 12:31:07 2008 From: martin at novell.com (Martin Baulig) Date: Wed, 02 Apr 2008 18:31:07 +0200 Subject: [Mono-list] [Mono-dev] Mono Debugger Patch that allows Remote Debugging In-Reply-To: <47E0CE12.2070708@ict.tuwien.ac.at> References: <47D928FB.7030903@ict.tuwien.ac.at> <1205427073.23498.44.camel@erandi.boston.ximian.com> <47E0CE12.2070708@ict.tuwien.ac.at> Message-ID: <1207153867.4671.80.camel@gondor.trier.ximian.com> Hello Harald, I had a look at your remote debugging patch and unfortunately, I have some bigger problems with it. There are basically three major issues which need to be resolved before I can integrate this into the main debugger release. I.) Libbfd I don't like modifying the libbfd which is shipped with the debugger very much. This makes it very complicated to upgrade the bfd to a newer version in future. I've already been asked about upgrading libbfd because this may become necessary if we add ppc support. Because of that, it's important to keep the bfd changes to an absolute minimum. It should also be easy for other people (not just me) to replace the bfd, for instance if someone wants to implement support for a new architecture. One solution for this is probably adding wrappers for each of the functions into backend/arch/bfdglue.c and do the changes there. II.) The if conditionals I'm not very happy about the fact that you basically put all of backend/server/*.c inside `if' conditionals. Most of these functions are already invoked via the `InferiorVTable', so I'd prefer if we could put all the remote debugging functions into a separate file and then simply replace the vtable when remote debugging. If you need to invoke any methods which aren't in that vtable, we can simply add them. III.) Using arch-specific code in x86-linux-ptrace.c You can't use any architecture specific code in x86-linux-ptrace.c, like accessing fields inside the `INFERIOR_REGS_TYPE'. This file is shared between i386 and x86_64, so `regs->ebx' won't even compile on the x86_64. These are the major issues, there are also a few minor cosmetic ones: * Please don't use a global variable `remove_debugging_flag', put it inside the `ServerHande' instead. * Please don't copy the private struct `InferiorHandle' from one .c file into another; we can either put it into a header file or add public accessor functions. * Do we really need to add the breakpoint code to thread-db.c ? I would really like to integrate this into the main debugger, but please understand that I also need to ensure long-term maintainability and code cleanness. Martin -- Martin Baulig - martin at novell.com Novell GmbH, D?sseldorf GF: Volker Smid, Djamel Souici; HRB 21108 (AG D?sseldorf) From mrunixus at yahoo.es Wed Apr 2 15:51:07 2008 From: mrunixus at yahoo.es (Velazquez Angel) Date: Wed, 2 Apr 2008 21:51:07 +0200 (CEST) Subject: [Mono-list] Problem with monodevelop and Oracle Message-ID: <964863.93583.qm@web26109.mail.ukl.yahoo.com> I've recently created a simple proyect to connect from mono to Oracle, what is the problem? when I compile the proyect using mono develop I get the current error: Unhandled Exception: System.Data.OracleClient.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified at System.Data.OracleClient.Oci.OciServerHandle.Attach (System.String tnsname, System.Data.OracleClient.Oci.OciErrorHandle error) [0x00055] in /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciServerHandle.cs:56 at System.Data.OracleClient.Oci.OciGlue.CreateConnection (OracleConnectionInfo conInfo) [0x00199] in /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OciGlue.cs:123 at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection (OracleConnectionInfo info) [0x00006] in /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPoolManager.cs:57 at System.Data.OracleClient.OracleConnectionPool.CreateConnection () [0x0000e] in /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:97 at System.Data.OracleClient.OracleConnectionPool.GetConnection () [0x000bb] in /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:74 at System.Data.OracleClient.OracleConnection.Open () [0x00061] in /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnection.cs:352 at (wrapper remoting-invoke-with-check) System.Data.OracleClient.OracleConnection:Open () at Test.Main (System.String[] args) [0x0000f] in /home/pmorales/Projects/atest/atest/Main.cs:15 ------------------------------------------------------------------------------------------------- but if I compile the code using this line: mcs a.cs /r:System.Data.dll /r:System.Data.OracleClient.dll the program work fine, Could anyone help me please? --------------------------------- Enviado desde Correo Yahoo! Disfruta de una bandeja de entrada m?s inteligente.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080402/51bb1a06/attachment.html From tquerci at gmail.com Wed Apr 2 16:12:22 2008 From: tquerci at gmail.com (Torello Querci) Date: Wed, 2 Apr 2008 21:12:22 +0100 Subject: [Mono-list] [Mono-dev] Problem with monodevelop and Oracle In-Reply-To: <964863.93583.qm@web26109.mail.ukl.yahoo.com> References: <964863.93583.qm@web26109.mail.ukl.yahoo.com> Message-ID: <47337b9c0804021312s68e2603etc882428171ac2803@mail.gmail.com> Sorry Velazquez but this one seems to be a runtime error causedc by a misconfigured TNS network. Have you tried to use tnsping on the same server? Regards, Torello Querci 2008/4/2, Velazquez Angel : > I've recently created a simple proyect to connect from mono to Oracle, > what is the problem? > when I compile the proyect using mono develop I get the current error: > Unhandled Exception: > System.Data.OracleClient.OracleException: ORA-12154: > TNS:could not resolve the connect identifier specified > > at System.Data.OracleClient.Oci.OciServerHandle.Attach > (System.String tnsname, > System.Data.OracleClient.Oci.OciErrorHandle error) > [0x00055] in > /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciServerHandle.cs:56 > at System.Data.OracleClient.Oci.OciGlue.CreateConnection > (OracleConnectionInfo conInfo) [0x00199] in > /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OciGlue.cs:123 > at > System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection > (OracleConnectionInfo info) [0x00006] in > /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPoolManager.cs:57 > at > System.Data.OracleClient.OracleConnectionPool.CreateConnection > () [0x0000e] in > /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:97 > at > System.Data.OracleClient.OracleConnectionPool.GetConnection > () [0x000bb] in > /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnectionPool.cs:74 > at System.Data.OracleClient.OracleConnection.Open () > [0x00061] in > /var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Data.OracleClient/System.Data.OracleClient/OracleConnection.cs:352 > at (wrapper remoting-invoke-with-check) > System.Data.OracleClient.OracleConnection:Open () > at Test.Main (System.String[] args) [0x0000f] in > /home/pmorales/Projects/atest/atest/Main.cs:15 > > ------------------------------------------------------------------------------------------------- > but if I compile the code using this line: > mcs a.cs /r:System.Data.dll /r:System.Data.OracleClient.dll > the program work fine, > Could anyone help me please? > > > ________________________________ > > Enviado desde Correo Yahoo! > Disfruta de una bandeja de entrada m?s inteligente.. > > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > From mandel at themacaque.com Thu Apr 3 06:45:54 2008 From: mandel at themacaque.com (Manuel de la Pena) Date: Thu, 03 Apr 2008 12:45:54 +0200 Subject: [Mono-list] Using monodoce for non-official mono project Message-ID: <1207219554.4868.15.camel@dhcppc6> Hi guys, I'm in a developing group that is planning to release an opensource API that we have developed. We are looking in to different ways of documenting the code. We have come across monodoc and monodocer. Is it a tool that can just be used with official mono projects??Is there any way to use it to document our API and upload the changes to our server? A pointer to were locate this info would be greatly appreciated. Cheers, Manuel From timothyparez at gmail.com Thu Apr 3 07:09:45 2008 From: timothyparez at gmail.com (Timothy Parez) Date: Thu, 3 Apr 2008 13:09:45 +0200 Subject: [Mono-list] System.Net.ProtocolViolationException: Content-Length not set at System.Net.HttpWebRequest.CommonChecks Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, The following code works fine on a Windows Server: private string Authenticate() { //Create a web request for the Google ClientLogin service HttpWebRequest authRequest = (HttpWebRequest)HttpWebRequest.Create("https://www.google.com/accounts/ClientLogin "); authRequest.KeepAlive = false; authRequest.ContentType = "application/x-www-form-urlencoded"; authRequest.Method = "POST"; authRequest.AllowWriteStreamBuffering = false; //Build the POST data StringBuilder postBuilder = new StringBuilder(); postBuilder.AppendFormat("accountType={0}", GOOGLE_ACCOUNT_TYPE); postBuilder.AppendFormat("&Email={0}", GOOGLE_USERNAME); postBuilder.AppendFormat("&Passwd={0}", GOOGLE_PASSWORD); postBuilder.AppendFormat("&service={0}", GOOGLE_SERVICE); postBuilder.AppendFormat("&source={0}", GOOGLE_SOURCE); //Convert the POST data to a byte[] byte[] data = ASCIIEncoding.ASCII.GetBytes(postBuilder.ToString()); authRequest.ContentLength = data.Length; //Get the request stream and POST the data Stream requestStream = authRequest.GetRequestStream(); requestStream.Write(data, 0, data.Length); requestStream.Close(); //Get the response HttpWebResponse authResponse = (HttpWebResponse)authRequest.GetResponse(); Stream responseStream = authResponse.GetResponseStream(); StreamReader responseReader = new StreamReader(responseStream); string response = responseReader.ReadToEnd(); responseStream.Close(); if (response.Contains("Auth")) { int index = response.LastIndexOf("=") + 1; string auth = response.Substring(index, response.Length - index); return auth; } else { throw new Exception(response); } } On Linux/Mono 1.9 however, it throws an exception: System.Net.ProtocolViolationException: Content-Length not set at System.Net.HttpWebRequest.CommonChecks (Boolean putpost) [0x0008d] in / usr/src/mono1.9-final/mono-1.9/mcs/class/System/System.Net/ HttpWebRequest.cs:651 at System.Net.HttpWebRequest.BeginGetRequestStream (System.AsyncCallback callback, System.Object state) [0x000ab] in /usr/src/mono1.9-final/ mono-1.9/mcs/class/System/System.Net/HttpWebRequest.cs:663 at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in /usr/src/ mono1.9-final/mono-1.9/mcs/class/System/System.Net/HttpWebRequest.cs: 715 at GoogleDocumentManager.Authenticate () [0x000aa] in /tmp/www- data-temp-aspnet-0/b9f31429/App_Web_4abb242d_4.cs:281 at GoogleDocumentManager.FetchData (System.String Url) [0x00015] in /tmp/ www-data-temp-aspnet-0/b9f31429/App_Web_4abb242d_4.cs:234 I've checked the ContentLength and data.Length values, they are both equal. Any ideas? Timothy. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFH9Lr5+j5y+etesF8RAjGMAJwKBLlOK9prbkE0iKPYWOiBUP9EGQCgnlFJ rnkTrPyLQl4UNZX/Bg5JPCo= =/d4Y -----END PGP SIGNATURE----- From surfzoid at gmail.com Thu Apr 3 07:56:36 2008 From: surfzoid at gmail.com (Petit Eric) Date: Thu, 3 Apr 2008 13:56:36 +0200 Subject: [Mono-list] Embedding mono on windows In-Reply-To: <6df580e50803311249g51f868c8g7f59afde46838531@mail.gmail.com> References: <6df580e50803310117v11a22cf6h9fb241fc1c16f1e1@mail.gmail.com> <6df580e50803310557w50d59acfnecb39cfb49449ae4@mail.gmail.com> <47F0E6C0.1090909@gmx.net> <6df580e50803310752n72dd5ecexdcd6f72472eba6c0@mail.gmail.com> <84776a970803310800u61b139ei81efab47c78a487d@mail.gmail.com> <6df580e50803311039le084c05mee6e737ccb719ff4@mail.gmail.com> <84776a970803311242n48ae4a21pee1e1ed70fdcfd91@mail.gmail.com> <6df580e50803311249g51f868c8g7f59afde46838531@mail.gmail.com> Message-ID: <84776a970804030456m12410b26h814a1cda4d29f544@mail.gmail.com> 2008/3/31, Damien DALY : > I didn't made it full C# because it's to make a plugin engine for an > existing C/C++ app... Actual plugin engine is C/C++, and I would like to add > C# plugins. The C# part is easy for me, but C/C++ wrapper is hard to code > since I'm a begginer in C/C++... Best way should be to use the interact methode with CIL no?, like in the like yu provide : http://www.mono-project.com/PInvoke > > If anyone can give me some samples better than those on svn, I would be > pleased :) http://www.google.fr/search?q=helloword+C%2B%2B&ie=utf-8&oe=utf-8&aq=t&rls=com.mandriva:en-US:official&client=firefox-a http://www.google.fr/search?hl=fr&client=firefox-a&rls=com.mandriva:en-US:official&hs=PN3&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=hello+world+C%2B%2B&spell=1 http://www.cppfrance.com/ http://www.developpez.com/ > > > Thanks. > > Damien > > 2008/3/31, Petit Eric : > > Damien, to have a good luke, to forget the list in your answer. > > > > > > 2008/3/31, Damien DALY : > > > > > Hi Eric, > > > > > > What I want to do is to call my custom C function from my C#. > > > > > > I'm exposing it using C function mono_add_internal_call, like it is show > on > > > sample at http://www.mono-project.com/Embedding_Mono > > > "Exposing C code to the CIL universe". > > > > Not sur to understand evry thing and had a very quick look at the > > link, but i don't think about mixed language in a single project type > > ? > > if you speak about the chapter :" Exposing C code to the CIL universe" > > it's wat i sayed, you need two part, one is a dll/so (a library) write > > in C managed code and a "wrapper" of it in C#. > > But if you just started the project, why don't just make evrything in C# ? > > > > > > > > > > So in my C code, I define a function with this code : > > > > > > static const void MonoMsg(MonoString *msg) > > > { > > > Error(mono_string_to_utf8(msg)); > > > }; > > > > > > In my C# code, I have this class : > > > > > > namespace MonoPlug > > > { > > > internal static class ClsInternal > > > { > > > > [MethodImplAttribute(MethodImplOptions.InternalCall)] > > > internal extern static void MonoMsg(string message); > > > } > > > } > > > > > > I expose my C function using : > > > > > > mono_add_internal_call("MonoPlug.ClsInternal::Msg", > MonoMsg); > > > > > > Under windows VS2008 it compiles and runs successfuly, but under linux, > I > > > have compilation errors : > > > > I gues, mono compiler is more restrictive than Crosoft one, i alredy > > see it in C# in the past, there is more warning, and not sur but some > > warning are "like" error, also it's like pointer problem, right ? > > Nota : i have no C knoweldge. > > > > > > > > MonoPlug.Test.cpp:83: erreur: invalid conversion from ?const void > > > (*)(MonoString*)" to ?const void*" > > > MonoPlug.Test.cpp:83: erreur: initializing argument 2 of ?void > > > mono_add_internal_call(const char*, const void*)" > > > > > > By focing cast to (void*) I can compile, but I have a > MissingMethodException > > > when trying to call method... > > > > > > I know they are easy errors for C/C++ developpers, but since I'm > starting > > > coding C/C++, I don't know if I can find mysself the answer... > > > > > > If you want, you can answer me in French... > > > > > > Thanks, > > > > > > Damien > > > > > > 2008/3/31, Petit Eric : > > > > 2008/3/31, Damien DALY : > > > > > > > > > Thanks Robert > > > > > > > > > > I'm also sending to list (sorry for missed messages, they are > below). > > > > > > > > > > I will try to work with these functions. > > > > > > > > > > Now, I would like to call C function from my C#, and passing > arguments > > > to > > > > > the function (like saying hello to string argument)... > > > > > > > > > > > > http://www.google.fr/search?q=dllimport&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:fr:official&client=firefox-a > > > > an Example in this file : > > > > > > > > http://cs-obexftp.svn.sourceforge.net/viewvc/cs-obexftp/trunk/src/obexftp/obexftpPINVOKE.cs?revision=151&view=markup > > > > > > > > If you are luky, try SWIG (under linux) to make the biggest work! > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > Damien > > > > > > > > > > 2008/3/31, Robert Jordan : > > > > > > Hi, > > > > > > > > > > > > Next time please reply to the list as well. > > > > > > > > > > > > Mono_set_defaults and > > > mono_parse_default_optimizations > > > > > are not public > > > > > > anymore because they were not intended to be called from user > code. > > > > > > The runtime is calling them for you. > > > > > > > > > > > > On (2): mono depends on GLib, GNOME's portable C library. This lib > > > > > > provides a lot of path functions: > > > > > > > > > > > > > > > > > > > > > http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html > > > > > > > > > > > > See g_get_current_dir, g_build_path, etc. > > > > > > > > > > > > On Windows, mono's installer is deploying this lib automatically > into > > > > > > mono's lib folder. Just link your app with "glib-2.0.lib". > > > > > > > > > > > > > > > > > > Robert > > > > > > > > > > > > > > > > > > > > > > > > Damien DALY wrote: > > > > > > > Yeah, it works ! > > > > > > > Thanks... > > > > > > > > > > > > > > Two more questions : > > > > > > > > > > > > > > 1) I'd like to execute : > > > > > > > mono_config_parse(NULL); //To load default config > > > > > > > mono_set_defaults(0, > > > > > mono_parse_default_optimizations(NULL)); //To add > > > > > > > all optimizations > > > > > > > > > > > > > > mono_config_parse is defined in mono-config.h. I have a linker > error > > > > > > > "unresolved symbol" > > > > > > > mono_set_defaults and > > > mono_parse_default_optimizations > > > > > are not defined... > > > > > > > > > > > > > > I'm using windows release with installer file " > > > > > > > mono-1.9-gtksharp-2.10.4-win32-4"... > > > > > > > > > > > > > > 2) How can I find the directory of current module executing in > C++ ? > > > > > > > This is to tell mono that it must search assemblies in a sub > folder > > > of > > > > > > > current exe... (mono_set_dirs) > > > > > > > And if you have a safe concat function for path... (like managed > > > > > > > Path.Combine) > > > > > > > And that works for any OS... :o) > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > Damien > > > > > > > > > > > > > > > > > > > > > 2008/3/31, Robert Jordan : > > > > > > >> Damien DALY wrote: > > > > > > >>> Hi, > > > > > > >>> > > > > > > >>> I'd like to embed Mono into my app, but I haven't found some > doc > > > > > > >> explaining > > > > > > >>> how to do this using Windows and VS2008 (under XP and Vista). > > > > > > >>> The starting point I have found is > > > > > > >>> http://www.mono-project.com/Embedding_Mono > > > > > > >>> > > > > > > >>> If someone has help about Ebedded Mono under Windows, I would > be > > > > > pleased > > > > > > >> to > > > > > > >>> hear about. > > > > > > >> > > > > > > >> The docs apply to Windows/Visual Studio as well, but they don't > > > explain > > > > > > >> how to setup a project to the same extent like they do for > linux or > > > > > > >> cygwin. > > > > > > >> > > > > > > >> Basically, you only need to generate an import library for > > > mono.dll, > > > > > > >> the dll that provides the embedding APIs. > > > > > > >> > > > > > > >> Get this file: > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > > > http://anonsvn.mono-project.com/viewcvs/*checkout*/trunk/mono/msvc/mono.def > > > > > > >> > > > > > > >> and create mono.lib with Visual Studio's lib.exe tool: > > > > > > >> > > > > > > >> lib /nologo /def:mono.def /out:mono.lib /machine:x86 > > > > > > >> > > > > > > >> Then link you application with mono.lib. > > > > > > >> > > > > > > >> Robert > > > > > > >> > > > > > > >> > _______________________________________________ > > > > > > >> Mono-list maillist - Mono-list at lists.ximian.com > > > > > > >> > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Mono-list maillist - Mono-list at lists.ximian.com > > > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From mangelp at gmail.com Thu Apr 3 07:59:52 2008 From: mangelp at gmail.com (=?ISO-8859-1?Q?Miguel_=C1ngel_P=E9rez?=) Date: Thu, 3 Apr 2008 13:59:52 +0200 Subject: [Mono-list] contact mono managers In-Reply-To: <69dd00070803300846w1e2e17d6ua31b86a0f4fdd346@mail.gmail.com> References: <69dd00070803300846w1e2e17d6ua31b86a0f4fdd346@mail.gmail.com> Message-ID: <8304962d0804030459v652a1d6ewc2d3a547b5a3038d@mail.gmail.com> All the information you need is here[1], see "Contacting the mono team" section. Best regards. [1] http://www.mono-project.com/StudentProjects 2008/3/30, lamya omar : > > Good Evening > > Can I know how to contact mono managers ? > > in another way What is the official mail of mono managers as I want to ask > about the google summer of code with you? > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080403/58faca53/attachment.html From mandel at themacaque.com Thu Apr 3 08:01:32 2008 From: mandel at themacaque.com (Manuel de la Pena) Date: Thu, 03 Apr 2008 14:01:32 +0200 Subject: [Mono-list] [Mono-dev] Using monodoce for non-official mono project In-Reply-To: <47F4C523.3050005@occams.info> References: <1207219554.4868.15.camel@dhcppc6> <47F4C523.3050005@occams.info> Message-ID: <1207224092.4868.17.camel@dhcppc6> Hi, That is perfect!!! Thanks, Manuel On Thu, 2008-04-03 at 07:53 -0400, Joshua Tauberer wrote: > Manuel de la Pena wrote: > > I'm in a developing group that is planning to release an opensource API > > that we have developed. We are looking in to different ways of > > documenting the code. We have come across monodoc and monodocer. Is it a > > tool that can just be used with official mono projects??Is there any way > > to use it to document our API and upload the changes to our server? > > > > A pointer to were locate this info would be greatly appreciated. > > Yes. You can use monodocer to maintain XML documentation outside of your > source files, and then monodocs2html to create static HTML documentation > from that. > > More here, though it is probably a little outdated: > http://mono-project.com/Generating_Documentation > > Some example output: > http://razor.occams.info/code/semweb/semweb-current/apidocs/SemWeb/index.html > http://www.jprl.com/Blog/archive/development/2008/OptionSet.svn.htm > (the new things in the 2nd link might not be in Mono 1.1.9, not sure) > > Jon Pryor is working on making the process a lot nicer... > From jit at occams.info Thu Apr 3 07:53:07 2008 From: jit at occams.info (Joshua Tauberer) Date: Thu, 03 Apr 2008 07:53:07 -0400 Subject: [Mono-list] [Mono-dev] Using monodoce for non-official mono project In-Reply-To: <1207219554.4868.15.camel@dhcppc6> References: <1207219554.4868.15.camel@dhcppc6> Message-ID: <47F4C523.3050005@occams.info> Manuel de la Pena wrote: > I'm in a developing group that is planning to release an opensource API > that we have developed. We are looking in to different ways of > documenting the code. We have come across monodoc and monodocer. Is it a > tool that can just be used with official mono projects??Is there any way > to use it to document our API and upload the changes to our server? > > A pointer to were locate this info would be greatly appreciated. Yes. You can use monodocer to maintain XML documentation outside of your source files, and then monodocs2html to create static HTML documentation from that. More here, though it is probably a little outdated: http://mono-project.com/Generating_Documentation Some example output: http://razor.occams.info/code/semweb/semweb-current/apidocs/SemWeb/index.html http://www.jprl.com/Blog/archive/development/2008/OptionSet.svn.htm (the new things in the 2nd link might not be in Mono 1.1.9, not sure) Jon Pryor is working on making the process a lot nicer... -- - Josh Tauberer http://razor.occams.info "Yields falsehood when preceded by its quotation! Yields falsehood when preceded by its quotation!" Achilles to Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter) From francisco at npgsql.org Thu Apr 3 10:39:04 2008 From: francisco at npgsql.org (Francisco Figueiredo Jr.) Date: Thu, 3 Apr 2008 11:39:04 -0300 Subject: [Mono-list] Npsql parameter with leading '?' In-Reply-To: <003101c89570$e357d880$aa078980$@com> References: <1207177546.25250.21.camel@dhcppc6> <438d02260804021915h474d401fpdff6f36bf0936ee@mail.gmail.com> <003101c89570$e357d880$aa078980$@com> Message-ID: <438d02260804030739h20455ec4kee1f40d91e442907@mail.gmail.com> On Thu, Apr 3, 2008 at 6:55 AM, Manuel de la Pena wrote: > Hi Francisco, > Hi, Manuel! > > The fact of having to use '@ or ':' does not really bother me and I have already changed the parameter names in my code. I have added the feature request since it will make it easier to port code that was using Oracle to use PostgreSQL although I understand it is not an important one. > Great!! Thanks for your feedback! We will work on this feature request. > Thanks for the quick replay, > You are welcome! -- Regards, Francisco Figueiredo Jr. fxjr.blogspot.com www.npgsql.org From jonpryor at vt.edu Thu Apr 3 10:39:12 2008 From: jonpryor at vt.edu (Jonathan Pryor) Date: Thu, 03 Apr 2008 14:39:12 +0000 Subject: [Mono-list] Using monodoce for non-official mono project In-Reply-To: <1207219554.4868.15.camel@dhcppc6> References: <1207219554.4868.15.camel@dhcppc6> Message-ID: <1207233552.15769.33.camel@lina.magi.jprl.com> On Thu, 2008-04-03 at 12:45 +0200, Manuel de la Pena wrote: > I'm in a developing group that is planning to release an opensource API > that we have developed. We are looking in to different ways of > documenting the code. We have come across monodoc and monodocer. Is it a > tool that can just be used with official mono projects?? monodocer can be used against any .NET assembly. It enforces a "documentation outside of source" philosophy, though it can also import any existing XML Documentation Comments you may have for your project: http://www.mono-project.com/Monodocer Monodoc is a GUI to display documentation generated by monodocer. It's a Gtk# app, and I don't know if it runs on Windows. (I suspect it doesn't at this time, due to the use of GtkHtml, but once the Gecko or WebKit HTML renderers are working a Windows port likely wouldn't be difficult.) There is also an ASP.NET app to display the documentation, though sadly there is little documentation about how to set this up: http://anonsvn.mono-project.com/source/trunk/monodoc/engine/web/ Example site: http://www.go-mono.com/docs/ monodocs2html will generate a static set of HTML pages containing documentation: http://www.mono-project.com/Generating_Documentation http://www.go-mono.com/docs/index.aspx?link=man:monodocs2html(1) http://www.go-mono.com/docs/index.aspx?link=man:mdoc-export-html(1) Example output: http://www.jprl.com/Projects/mono-fuse/docs/ http://anonsvn.mono-project.com/source/trunk/monodoc/tools/DocTest/html.expected/ See also: http://www.go-mono.com/docs/monodoc.ashx?link=man:mdoc(1) > Is there any way > to use it to document our API and upload the changes to our server? Depends on what you use. If you use monodocs2html, you just need to rsync the directory trees and you're done. The ASP.NET web app requires that you Assemble your documentation into a .zip/.tree/.source set (with mdassembler), install that into $prefix/lib/monodoc/sources on your web server, and (maybe - not sure) restart ASP.NET. See: http://www.mono-project.com/Assembler - Jon From francescocarsana at ds4.it Thu Apr 3 12:47:53 2008 From: francescocarsana at ds4.it (Ing. Francesco Carsana) Date: Thu, 03 Apr 2008 18:47:53 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: References: <47F25522.40201@ds4.it> <47F331CD.5080705@ds4.it> Message-ID: <47F50A39.7050003@ds4.it> Thank you for the example Robert! > // call AttachEvent(session); > args [0] = session; > mono_runtime_invoke (attach_event_method, NULL, > args, &exception); In this piece of code, what's the type of session? Is it a MonoObject* ? I've tried this: MonoObject* session; MonoAssembly* assembly; MonoClass* klass; MonoObject* session; MonoDomain* domain; MonoImageOpenStatus status; domain = mono_jit_init("session.dll"); assembly = mono_assembly_open("session.dll", &status); klass = mono_class_from_name(mono_assembly_get_image(assembly), "namespace", "Session"); session = mono_object_new(domain, klass); mono_runtime_object_init(session); mono_add_internal_call("ConnectionEventWrapper::UnmanagedHandler", &icall_ConnectionEventWrapper_UnmanagedHandler); gpointer args[1]; args[0] = session; mono_runtime_invoke(attach_event_method, NULL, args, &exception); Is it right? In this way I can't catch the event in C++: it compiles but it doesn't work. The Session class in session.dll raise the event but the function icall_ConnectionEventWrapper_UnmanagedHandler is never called... Is there something wrong? Thank you. Francesco. From cdhowie at gmail.com Thu Apr 3 13:20:07 2008 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 3 Apr 2008 13:20:07 -0400 Subject: [Mono-list] Getting CPU, Disk, RAM information using P/Invoke or other technique in C# using Mono with Linux In-Reply-To: <84776a970803300505j214d5911s9a4f1739d2d57a4b@mail.gmail.com> References: <002101c88982$84ff8070$0400a8c0@Arudra> <84776a970803300505j214d5911s9a4f1739d2d57a4b@mail.gmail.com> Message-ID: <3d2f29dc0804031020x5ddf795fl66ae8f4cdf7ceb33@mail.gmail.com> On Sun, Mar 30, 2008 at 8:05 AM, Petit Eric wrote: > Damed, mono list email is never in first position here is my reponse > where only JP Trosclaire had : > " > In the "bigest lines" > System.threading.thread.process.start("lshw>~/tmp/info.txt") or > "lshw",">~/tmp/info.txt" ; > String AllInfo = System.IO.ReadAllText("lshw>~/tmp/info.txt") > " You'd be better served creating a Process object and opening its standard output and reading directly from that. No temporary files, more efficient, etc. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Thu Apr 3 13:22:30 2008 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 3 Apr 2008 13:22:30 -0400 Subject: [Mono-list] pthreads in mono In-Reply-To: <20080328172148.GN22705@debian.org> References: <1206452557.7160.288.camel@studio> <20080328121009.GL22705@debian.org> <3d2f29dc0803280842x1b128398l71afcd37e9c6afa9@mail.gmail.com> <20080328172148.GN22705@debian.org> Message-ID: <3d2f29dc0804031022r1b47eed5n442c9a909887a36e@mail.gmail.com> On Fri, Mar 28, 2008 at 1:21 PM, Paolo Molaro wrote: > On 03/28/08 Chris Howie wrote: > > Note that it's not that simple though. The signature specifies a > > pthread_t*, not a pthead_t**. It wants a pointer to a structure that > > will be filled in, not a pointer to a pointer (as is IntPtr&). The > > code as writted above will certainly corrupt the memory next to the > > location that the "handler" local is stored in, unless > > sizeof(pthread_t) is <= IntPtr.Size. > > Sure and my code is correct and won't generate any memory corruption > because all the sane operating systems have pthread_t as an integer or a > pointer. You're free to look for an operating system where the above is > incorrect. When you have found it (you might need to write you own, as > even OSX got this bit right...) you will have to port mono to it first. Ah, I was not aware of this so I was trying to make sure all of the bases were covered. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From swami at giveexam.com Thu Apr 3 14:45:23 2008 From: swami at giveexam.com (Swaminathan Saikumar) Date: Thu, 3 Apr 2008 11:45:23 -0700 Subject: [Mono-list] Web garden on Mono Message-ID: <82692d4a0804031145u7d962b89p4c5acbd5b77b2768@mail.gmail.com> In the ASP.NET/IIS world, a web garden (multiple CPUs) are handled with a separate process for every processor. Does Mono have an equivalent mechanism for taking advantage of multiple CPUs? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080403/d38b94fb/attachment-0001.html From derek at spathi.com Thu Apr 3 18:51:17 2008 From: derek at spathi.com (Derek Ekins) Date: Thu, 3 Apr 2008 23:51:17 +0100 Subject: [Mono-list] mod_mono error on apache2 Message-ID: <565709cd0804031551n18eb9e7bn4e9b3b9413296d7d@mail.gmail.com> I have installed mod_mono on ubuntu 7.10 following the instructions from here http://frugalcoder.us/post/2008/02/Setting-up-mod_mono-(ASPNet-20)-on-Ubuntu-710-(Gutsy-Gibbon).aspx when I try and load an aspx page I get a 503 error and this in the log file: [error] Failed running '/usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/.mod_mono_server2 --applications /samples:/usr/share/asp.net2-demos --nonstop --appconfigdir /etc/mono-server2 (null) (null) (null) (null) (null)'. Reason: Exec format error Any ideas what to do? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080403/8b5425e2/attachment.html From alessandro.denardi at gmail.com Fri Apr 4 07:15:10 2008 From: alessandro.denardi at gmail.com (Alessandro) Date: Fri, 4 Apr 2008 13:15:10 +0200 Subject: [Mono-list] (MonoDevelop 1.9_5 on Mac) Message-ID: I hope to have posted in the right list. I downloaded MonoDevelop 1.9_5 binary for Mac (that should include Gtk#). When I try to compile the Gnome# 2.0 project example I get some errors because the Gtk and Gnome namespaces can't be found. The references to those namespaces are set correctly, but however they don't appear in the list of the selectable assemblies. So if I remove the references to include them again I'm not able to find them. Actually among the 6 references of the project, only System appears in that list. Thanks in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080404/9f29e682/attachment.html From alessandro.denardi at gmail.com Fri Apr 4 07:18:20 2008 From: alessandro.denardi at gmail.com (Alessandro) Date: Fri, 4 Apr 2008 13:18:20 +0200 Subject: [Mono-list] (MonoDevelop 1.9_5 on Mac) can't compile Gnome# 2 project example Message-ID: (sorry I forgot the subject) I hope to have posted in the right list. I downloaded MonoDevelop 1.9_5 binary for Mac (that should include Gtk#). When I try to compile the Gnome# 2.0 project example I get some errors because the Gtk and Gnome namespaces can't be found. The references to those namespaces are set correctly, but however they don't appear in the list of the selectable assemblies. So if I remove the references to include them again I'm not able to find them. Actually among the 6 references of the project, only System appears in that list. Thanks in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080404/77191361/attachment.html From alessandro.denardi at gmail.com Fri Apr 4 10:22:04 2008 From: alessandro.denardi at gmail.com (Alessandro) Date: Fri, 4 Apr 2008 16:22:04 +0200 Subject: [Mono-list] (MonoDevelop 1.9_5 on Mac) can't compile Gnome# 2 project example In-Reply-To: References: Message-ID: On Fri, Apr 4, 2008 at 1:18 PM, Alessandro wrote: > (sorry I forgot the subject) > I hope to have posted in the right list. > > I downloaded MonoDevelop 1.9_5 binary for Mac (that should include Gtk#). > When I try to compile the Gnome# 2.0 project example I get some errors because the Gtk and Gnome namespaces can't be found. > The references to those namespaces are set correctly, but however they don't appear in the list of the selectable assemblies. > So if I remove the references to include them again I'm not able to find them. > Actually among the 6 references of the project, only System appears in that list. > > Thanks in advance for your help. > > > I've found the right list about MonoDevelop. Sorry for the intrusion. From lindsay at softlog.com.au Sat Apr 5 06:56:36 2008 From: lindsay at softlog.com.au (Lindsay Mathieson) Date: Sat, 5 Apr 2008 20:56:36 +1000 Subject: [Mono-list] mono/monodevelop on ubuntu Message-ID: <200804052056.36465.lindsay@softlog.com.au> Is there any reason why the std mono packages are so far behind on ubuntu? is there a ubuntu repository with the mono 1.0 release? -- Lindsay Mathieson From fcorreia at gmail.com Sat Apr 5 07:20:21 2008 From: fcorreia at gmail.com (Filipe Correia) Date: Sat, 5 Apr 2008 12:20:21 +0100 Subject: [Mono-list] mono/monodevelop on ubuntu In-Reply-To: <200804052056.36465.lindsay@softlog.com.au> References: <200804052056.36465.lindsay@softlog.com.au> Message-ID: <4ff60e1c0804050420i21b99384l453154cba714f9d4@mail.gmail.com> Seems like someone is working on it: https://bugs.launchpad.net/ubuntu/+source/monodevelop/+bug/209012 Cheers, Filipe On Sat, Apr 5, 2008 at 11:56 AM, Lindsay Mathieson wrote: > Is there any reason why the std mono packages are so far behind on ubuntu? is > there a ubuntu repository with the mono 1.0 release? > -- > Lindsay Mathieson > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From lindsay at softlog.com.au Sat Apr 5 08:07:07 2008 From: lindsay at softlog.com.au (Lindsay Mathieson) Date: Sat, 5 Apr 2008 22:07:07 +1000 Subject: [Mono-list] mono/monodevelop on ubuntu In-Reply-To: <4ff60e1c0804050420i21b99384l453154cba714f9d4@mail.gmail.com> References: <200804052056.36465.lindsay@softlog.com.au> <4ff60e1c0804050420i21b99384l453154cba714f9d4@mail.gmail.com> Message-ID: <200804052207.07932.lindsay@softlog.com.au> On Saturday 05 April 2008 21:20:21 Filipe Correia wrote: > Seems like someone is working on it: > https://bugs.launchpad.net/ubuntu/+source/monodevelop/+bug/209012 > > Cheers, > Filipe Thanks Filipe, this will probably motivate me to try the Hardy Heron Beta (gulp) > > On Sat, Apr 5, 2008 at 11:56 AM, Lindsay Mathieson > > wrote: > > Is there any reason why the std mono packages are so far behind on > > ubuntu? is there a ubuntu repository with the mono 1.0 release? > > -- > > Lindsay Mathieson > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list -- Lindsay Mathieson From surfzoid at gmail.com Sat Apr 5 09:13:13 2008 From: surfzoid at gmail.com (Petit Eric) Date: Sat, 5 Apr 2008 15:13:13 +0200 Subject: [Mono-list] Mono 1.9 / MD Idea Message-ID: <84776a970804050613l553fe60dy8199abd2f6738e6d@mail.gmail.com> Hi folk I have folowed this step and have a little trouble. My system is MDV 2008, after a fresh install i had Mono 1.25 and MD , located in /usr/ dir, i think about trying mono 1.9, so uninstall all rpm, download the linux generic install from mono and install it in /opt/ dir. When starting MD in the good environment (/opt/) i have error message about file in /usr/lib/monodevelop So i delete/clean evrything in ~/.config about MD/Mono and then no more problem, so i conclude there is some config file with absolute path and/or environment var. It isn't possible to use the startup path than the one in the config files? From derek at spathi.com Sun Apr 6 18:46:01 2008 From: derek at spathi.com (Derek Ekins) Date: Sun, 6 Apr 2008 23:46:01 +0100 Subject: [Mono-list] gladeui-sharp compile error Message-ID: <565709cd0804061546i6b0a7f2bif30d174ac90bd2e1@mail.gmail.com> I am trying to compile gladeui-sharp and am getting the following error: checking for GLADEUI... configure: error: Package requirements (libgladeui-1.0 >= 2.90.0) were not met: No package 'libgladeui-1.0' found I can't seem to find any info about this. What am I missing here? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080406/a184e6fc/attachment.html From igor at ubuntu.org.ni Sun Apr 6 22:10:26 2008 From: igor at ubuntu.org.ni (Igor Guerrero Fonseca) Date: Sun, 06 Apr 2008 22:10:26 -0400 Subject: [Mono-list] gladeui-sharp compile error In-Reply-To: <565709cd0804061546i6b0a7f2bif30d174ac90bd2e1@mail.gmail.com> References: <565709cd0804061546i6b0a7f2bif30d174ac90bd2e1@mail.gmail.com> Message-ID: <1207534226.15537.6.camel@igorlaptop> On Sun, 2008-04-06 at 23:46 +0100, Derek Ekins wrote: > I am trying to compile gladeui-sharp and am getting the following > error: > > checking for GLADEUI... configure: error: Package requirements > (libgladeui-1.0 >= 2.90.0) were not met: > No package 'libgladeui-1.0' found > > I can't seem to find any info about this. > What am I missing here? Since gladeui-sharp depends on the C gladeui library you need to install the C library development package for your distribution... in Debian or Ubuntu you have libgladeui-1.1-dev for SuSE or Fedora you should have something called libgladeui-1.0-devel. You can always check if you have that package in this directory: /usr/lib/pkgconfig/ There you must find(if you have it installed) a file named libgladeui-1.0.pc, and inside that file the version of the library. -- Igor Guerrero Fonseca From gaofeng860918 at gmail.com Mon Apr 7 00:44:33 2008 From: gaofeng860918 at gmail.com (GAO FENG) Date: Mon, 7 Apr 2008 12:44:33 +0800 Subject: [Mono-list] Problem on compiling Mono on windows Message-ID: <27dfeb6c0804062144i5869fe4ei5d3967d01db36fa3@mail.gmail.com> now i have followed the instruction to install cygwin and download mono source via svn.The configure command has succeeded,but the make one has failed~ the report is: making all in mini make[3]:entering directory '/usr/src/mono/mono/mono/mini' ../../mono/monoburg/monoburg -c 1 -p -3 ./inseedl.brg ./inssel-float.brg ./inssel-long32.brg ./inssel-86.brg -d inssel.h -s inssel.c make[3]:***[inssel.c] error 57 ...... make:***[all] error 2 I'm so confused about it ~who can help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080407/3192cfb5/attachment.html From francisco at npgsql.org Mon Apr 7 01:58:24 2008 From: francisco at npgsql.org (Francisco Figueiredo Jr.) Date: Mon, 7 Apr 2008 02:58:24 -0300 Subject: [Mono-list] Npgsql2 Beta3 Released! Message-ID: <438d02260804062258j3deaa33aga2df1937059c5a90@mail.gmail.com> Hi, all!! The Npgsql Development Team is proud to announce the Npgsql2 Beta3 release! Npgsql is a .Net Data provider written 100% in C# which allows .net programs to talk to postgresql backends. Npgsql is licensed under BSD. More info can be obtained from http://www.npgsql.org This release is one of the better done for Npgsql ever. One of the big highlights of it is the great job on scalability done by Jon Hanna. Npgsql, by default, doesn't cache all the data read from database before delivering it to clients. Now it is delivered on demand which gives a big benefit regarding used memory and consequently in scalability as application servers will be able to use the memory which was being used by Npgsql in past. You can see some details here: http://npgsql.projects.postgresql.org/docs/manual/preloadScalabilty.html You can see full changelog and release notes here: http://pgfoundry.org/frs/shownotes.php?release_id=1124 You can dowload it from here: http://downloads.npgsql.org Direct links: http://pgfoundry.org/frs/download.php/1733/Npgsql2.0beta3-bin-mono2.0.tar.bz2 http://pgfoundry.org/frs/download.php/1730/Npgsql2.0beta3-bin-EntityFrameworkBeta3.zip http://pgfoundry.org/frs/download.php/1729/Npgsql2.0beta3-bin-ms.net2.0.zip http://pgfoundry.org/frs/download.php/1732/Npgsql2.0beta3-src.zip I'd like to thank God for allowing me to do that. I'd like to thank Josh Cooley for all his help. Jon Hanna for his great job adding on demand data fetching, Alaric Dailey, David Bachmann and Hiroshi Saito for all their feedback and patches and all users who sent bug reports, comments and fixes. We couldn't make it without your help. Thank you very much! Please, give it a try and let us know if you have any problems. Check out our forums: http://forums.npgsql.org -- Regards, Francisco Figueiredo Jr. fxjr.blogspot.com www.npgsql.org From krapfenbauer at ict.tuwien.ac.at Mon Apr 7 03:30:32 2008 From: krapfenbauer at ict.tuwien.ac.at (Harald Krapfenbauer) Date: Mon, 07 Apr 2008 09:30:32 +0200 Subject: [Mono-list] [Mono-dev] Mono Debugger Patch that allows Remote Debugging In-Reply-To: <1207153867.4671.80.camel@gondor.trier.ximian.com> References: <47D928FB.7030903@ict.tuwien.ac.at> <1205427073.23498.44.camel@erandi.boston.ximian.com> <47E0CE12.2070708@ict.tuwien.ac.at> <1207153867.4671.80.camel@gondor.trier.ximian.com> Message-ID: <47F9CD98.9070405@ict.tuwien.ac.at> Hello Martin, I understand all of the problems you have with integrating the patch. It is partly a hack (though it works of course), and I wonder if all of these problems can be solved so that integration would be possible. Would you be willing to work on it together with me? I'm currently busy with other stuff, and I don't know when I can spend time on the debugger again. Best regards, Harald Martin Baulig wrote: > Hello Harald, > > I had a look at your remote debugging patch and unfortunately, I have > some bigger problems with it. There are basically three major issues > which need to be resolved before I can integrate this into the main > debugger release. > > I.) Libbfd > > I don't like modifying the libbfd which is shipped with the debugger > very much. This makes it very complicated to upgrade the bfd to a newer > version in future. > > I've already been asked about upgrading libbfd because this may become > necessary if we add ppc support. Because of that, it's important to > keep the bfd changes to an absolute minimum. It should also be easy for > other people (not just me) to replace the bfd, for instance if someone > wants to implement support for a new architecture. > > One solution for this is probably adding wrappers for each of the > functions into backend/arch/bfdglue.c and do the changes there. > > II.) The if conditionals > > I'm not very happy about the fact that you basically put all of > backend/server/*.c inside `if' conditionals. > > Most of these functions are already invoked via the `InferiorVTable', so > I'd prefer if we could put all the remote debugging functions into a > separate file and then simply replace the vtable when remote debugging. > > If you need to invoke any methods which aren't in that vtable, we can > simply add them. > > III.) Using arch-specific code in x86-linux-ptrace.c > > You can't use any architecture specific code in x86-linux-ptrace.c, like > accessing fields inside the `INFERIOR_REGS_TYPE'. > > This file is shared between i386 and x86_64, so `regs->ebx' won't even > compile on the x86_64. > > These are the major issues, there are also a few minor cosmetic ones: > > * Please don't use a global variable `remove_debugging_flag', put it > inside the `ServerHande' instead. > > * Please don't copy the private struct `InferiorHandle' from one .c file > into another; we can either put it into a header file or add public > accessor functions. > > * Do we really need to add the breakpoint code to thread-db.c ? > > I would really like to integrate this into the main debugger, but please > understand that I also need to ensure long-term maintainability and code > cleanness. > > Martin > > -- > Martin Baulig - martin at novell.com > Novell GmbH, D?sseldorf > GF: Volker Smid, Djamel Souici; HRB 21108 (AG D?sseldorf) > > > -- Harald Krapfenbauer Project assistant Vienna University of Technology, Institute of Computer Technology Gusshausstra?e 27-29, 1040 Vienna, Austria Phone: +43-1-58801-38472, Fax: +43-1-58801-38499 Email: krapfenbauer at ict.tuwien.ac.at, WWW: http://www.ict.tuwien.ac.at Skype: harald.krapfenbauer From gcollic at gmail.com Mon Apr 7 04:12:01 2008 From: gcollic at gmail.com (Guillaume Collic) Date: Mon, 7 Apr 2008 10:12:01 +0200 Subject: [Mono-list] Problem on compiling Mono on windows In-Reply-To: <27dfeb6c0804062144i5869fe4ei5d3967d01db36fa3@mail.gmail.com> References: <27dfeb6c0804062144i5869fe4ei5d3967d01db36fa3@mail.gmail.com> Message-ID: <440a1de0804070112j60ef0be8mc446b84210dcbb18@mail.gmail.com> Hello, I'm only a beginner, but I think it may be easier to build from the daily tarballs. You can find them at http://mono.ximian.com/daily/ Guillaume Collic On 07/04/2008, GAO FENG wrote: > > now i have followed the instruction to install cygwin and download mono > source via svn.The configure command has succeeded,but the make one has > failed~ > the report is: > making all in mini > make[3]:entering directory '/usr/src/mono/mono/mono/mini' > ../../mono/monoburg/monoburg -c 1 -p -3 ./inseedl.brg ./inssel-float.brg > ./inssel-long32.brg ./inssel-86.brg -d inssel.h -s inssel.c > make[3]:***[inssel.c] error 57 > ...... > make:***[all] error 2 > > I'm so confused about it ~who can help me? > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080407/93125fdd/attachment.html From francescocarsana at ds4.it Mon Apr 7 04:13:59 2008 From: francescocarsana at ds4.it (Ing. Francesco Carsana) Date: Mon, 07 Apr 2008 10:13:59 +0200 Subject: [Mono-list] Mono Embedding: invoking methods Message-ID: <47F9D7C7.5080306@ds4.it> Hi! I'm working with Mono Embedding and I'm trying to invoke this CIL method from C: public static void AttachConnectEvent(Session _s); where Session is a class: public sealed class Session { ... public static void AttachConnectEvent(Session _s); ... } I write this C code to inkove AttachConnectEvent: MonoDomain *domain; MonoAssembly *assembly; MonoImageOpenStatus status; MonoClass *klass; MonoObject *object; MonoMethod* attachConnectEvent; domain = mono_jit_init("Session.dll"); assembly = mono_assembly_open("Session.dll", &status); klass = mono_class_from_name(mono_assembly_get_image(assembly), "Session", "Session"); object = mono_object_new(domain, klass); mono_runtime_object_init(object); attachConnect = mono_class_get_method_from_name(klass, "AttachConnectEvent", 1); gpointer args[1]; args[0] = object; mono_runtime_invoke(attachConnectEvent, NULL, args, NULL); Is it correct? In particular, is it rith to assign args[0] = object? Thank You. Francesco. From lluis at novell.com Mon Apr 7 05:41:07 2008 From: lluis at novell.com (Lluis Sanchez Gual) Date: Mon, 07 Apr 2008 11:41:07 +0200 Subject: [Mono-list] [MonoDevelop] Mono 1.9 / MD Idea In-Reply-To: <84776a970804050613l553fe60dy8199abd2f6738e6d@mail.gmail.com> References: <84776a970804050613l553fe60dy8199abd2f6738e6d@mail.gmail.com> Message-ID: <1207561267.5384.41.camel@portador.aticatac-centre> El ds 05 de 04 del 2008 a les 15:13 +0200, en/na Petit Eric va escriure: > Hi folk > I have folowed this step and have a little trouble. > My system is MDV 2008, after a fresh install i had Mono 1.25 and MD , > located in /usr/ dir, i think about trying mono 1.9, so uninstall all > rpm, download the linux generic install from mono and install it in > /opt/ dir. > > When starting MD in the good environment (/opt/) i have error message > about file in /usr/lib/monodevelop Knowing the error message you got would be helpful. > > So i delete/clean evrything in ~/.config about MD/Mono and then no > more problem, so i conclude there is some config file with absolute > path and/or environment var. > > It isn't possible to use the startup path than the one in the config files? Well, I don't know which config path is that. Lluis. From francisco at npgsql.org Mon Apr 7 06:26:52 2008 From: francisco at npgsql.org (Francisco Figueiredo Jr.) Date: Mon, 7 Apr 2008 07:26:52 -0300 Subject: [Mono-list] [ANN] Npgsql2 Beta3 Released!! - Correction Message-ID: <438d02260804070326u2ecfccd2x874048490c961c20@mail.gmail.com> Hi, all!! The Npgsql Development Team is proud to announce the Npgsql2 Beta3 release! Npgsql is a .Net Data provider written 100% in C# which allows .net programs to talk to postgresql backends. Npgsql is licensed under BSD. More info can be obtained from http://www.npgsql.org This release is one of the better done for Npgsql ever. One of the big highlights of it is the great job on scalability done by Jon Hanna. Npgsql, by default, doesn't cache all the data read from database before delivering it to clients. Now it is delivered on demand which gives a big benefit regarding used memory and consequently in scalability as application servers will be able to use the memory which was being used by Npgsql in past. You can see some details here: http://npgsql.projects.postgresql.org/docs/manual/preloadScalabilty.html Another highlight is the release of a version with support for Entity Framework beta3. (http://en.wikipedia.org/wiki/ADO.NET_Entity_Framework and http://msdn2.microsoft.com/en-us/library/aa697427(VS.80).aspx) Thanks Josh Cooley for this! This support is available on .net 3.5 and is our first release with this type of support. Please, give it a try and let us know what you get. You can see full changelog and release notes here: http://pgfoundry.org/frs/shownotes.php?release_id=1124 You can dowload it from here: http://downloads.npgsql.org Direct links: http://pgfoundry.org/frs/download.php/1733/Npgsql2.0beta3-bin-mono2.0.tar.bz2 http://pgfoundry.org/frs/download.php/1730/Npgsql2.0beta3-bin-EntityFrameworkBeta3.zip http://pgfoundry.org/frs/download.php/1729/Npgsql2.0beta3-bin-ms.net2.0.zip http://pgfoundry.org/frs/download.php/1732/Npgsql2.0beta3-src.zip I'd like to thank God for allowing me to do that. I'd like to thank Josh Cooley for all his help. Jon Hanna for his great job adding on demand data fetching, Alaric Dailey, David Bachmann and Hiroshi Saito for all their feedback and patches and all users who sent bug reports, comments and fixes. We couldn't make it without your help. Thank you very much! Please, give it a try and let us know if you have any problems. Check out our forums: http://forums.npgsql.org -- Regards, Francisco Figueiredo Jr. fxjr.blogspot.com www.npgsql.org From surfzoid at gmail.com Mon Apr 7 08:08:35 2008 From: surfzoid at gmail.com (Petit Eric) Date: Mon, 7 Apr 2008 14:08:35 +0200 Subject: [Mono-list] [MonoDevelop] Mono 1.9 / MD Idea In-Reply-To: <1207561267.5384.41.camel@portador.aticatac-centre> References: <84776a970804050613l553fe60dy8199abd2f6738e6d@mail.gmail.com> <1207561267.5384.41.camel@portador.aticatac-centre> Message-ID: <84776a970804070508h460ac9ebn9ba84cf6847bd29c@mail.gmail.com> 2008/4/7, Lluis Sanchez Gual : > > El ds 05 de 04 del 2008 a les 15:13 +0200, en/na Petit Eric va escriure: > > > Hi folk > > I have folowed this step and have a little trouble. > > My system is MDV 2008, after a fresh install i had Mono 1.25 and MD , > > located in /usr/ dir, i think about trying mono 1.9, so uninstall all > > rpm, download the linux generic install from mono and install it in > > /opt/ dir. > > > > When starting MD in the good environment (/opt/) i have error message > > about file in /usr/lib/monodevelop > > > Knowing the error message you got would be helpful. I know, but i'm sory, i didn't make backup of config file, just erase all. > > > > > > So i delete/clean evrything in ~/.config about MD/Mono and then no > > more problem, so i conclude there is some config file with absolute > > path and/or environment var. > > > > It isn't possible to use the startup path than the one in the config files? > > > Well, I don't know which config path is that. > > > Lluis. > > > From surfzoid at gmail.com Mon Apr 7 08:09:49 2008 From: surfzoid at gmail.com (Petit Eric) Date: Mon, 7 Apr 2008 14:09:49 +0200 Subject: [Mono-list] [MonoDevelop] Mono 1.9 / MD Idea In-Reply-To: <84776a970804070508h460ac9ebn9ba84cf6847bd29c@mail.gmail.com> References: <84776a970804050613l553fe60dy8199abd2f6738e6d@mail.gmail.com> <1207561267.5384.41.camel@portador.aticatac-centre> <84776a970804070508h460ac9ebn9ba84cf6847bd29c@mail.gmail.com> Message-ID: <84776a970804070509j41cd47b4u5d4f5ca37b0f4af5@mail.gmail.com> 2008/4/7, Petit Eric : > 2008/4/7, Lluis Sanchez Gual : > > > > > El ds 05 de 04 del 2008 a les 15:13 +0200, en/na Petit Eric va escriure: > > > > > Hi folk > > > I have folowed this step and have a little trouble. > > > My system is MDV 2008, after a fresh install i had Mono 1.25 and MD , > > > located in /usr/ dir, i think about trying mono 1.9, so uninstall all > > > rpm, download the linux generic install from mono and install it in > > > /opt/ dir. > > > > > > When starting MD in the good environment (/opt/) i have error message > > > about file in /usr/lib/monodevelop > > > > > > Knowing the error message you got would be helpful. > > I know, but i'm sory, i didn't make backup of config file, just erase all. > > > > > > > > > > > > So i delete/clean evrything in ~/.config about MD/Mono and then no > > > more problem, so i conclude there is some config file with absolute > > > path and/or environment var. > > > > > > It isn't possible to use the startup path than the one in the config files? > > > > > > Well, I don't know which config path is that. Perhap's i will can try to re install rpm, rename /opt/mono and start the /bin/monodevelop ... As soon as possible. > > > > > > Lluis. > > > > > > > From robertj at gmx.net Mon Apr 7 15:08:49 2008 From: robertj at gmx.net (Robert Jordan) Date: Mon, 07 Apr 2008 21:08:49 +0200 Subject: [Mono-list] Mono Embedding: manage events In-Reply-To: <47F50A39.7050003@ds4.it> References: <47F25522.40201@ds4.it> <47F331CD.5080705@ds4.it> <47F50A39.7050003@ds4.it> Message-ID: Ing. Francesco Carsana wrote: > Thank you for the example Robert! > > > // call AttachEvent(session); > > args [0] = session; > > mono_runtime_invoke (attach_event_method, NULL, > > args, &exception); > > In this piece of code, what's the type of session? > Is it a MonoObject* ? > I've tried this: > > MonoObject* session; > MonoAssembly* assembly; > MonoClass* klass; > MonoObject* session; > MonoDomain* domain; > MonoImageOpenStatus status; > > domain = mono_jit_init("session.dll"); > assembly = mono_assembly_open("session.dll", &status); > klass = mono_class_from_name(mono_assembly_get_image(assembly), > "namespace", "Session"); > session = mono_object_new(domain, klass); > mono_runtime_object_init(session); > > mono_add_internal_call("ConnectionEventWrapper::UnmanagedHandler", > &icall_ConnectionEventWrapper_UnmanagedHandler); > > gpointer args[1]; > args[0] = session; > mono_runtime_invoke(attach_event_method, NULL, > args, &exception); > > Is it right? > In this way I can't catch the event in C++: > it compiles but it doesn't work. > The Session class in session.dll raise the event but > the function icall_ConnectionEventWrapper_UnmanagedHandler is > never called... > Is there something wrong? Since you're creating the Session object inside the code above, I wonder how the event is fired at all. Your code is equivalent to Session s = new Session (); s.SomeEvent += someHandler; This code does not fire any events, unless there is some external stimulus in your real code. Robert From igor.moochnick at gmail.com Mon Apr 7 11:23:35 2008 From: igor.moochnick at gmail.com (Igor Moochnick) Date: Mon, 7 Apr 2008 11:23:35 -0400 Subject: [Mono-list] Pash - cross platform PowerShell is out in the wild! Announcement. Message-ID: <185090590804070823m28bae691h51ffe8389e471b7@mail.gmail.com> Pash - http://pash.sourceforge.net/ PowerShell open source cross-platform reimplementation. About the name Pash = PoSH (PowerShell) + bash (one of the Unix shells) Goals The main goal is to provide a rich shell environment for other operating systems as well as to provide a hostable scripting engine for rich applications. The user experience should be seamless for people who are used to Windows version of PowerShell. The scrips, cmdlets and providers should runs AS-IS (*if they are not using Windows-specific functionality*). The rich applications that host PowerShell should run on any other operating system AS-IS. Secondary goal: the scripts should run across the machines and different OS's seamlesly (but following all the security guidelines). Environment The current implementation of Pash is written using pure .Net 2.0. It compiles on VS 2008 as well as on Mono. So all the developers can choose the environment that fits their needs and preferences. The produced assemblies can be executed "right out of the box" on Windows, *Linux, Mac (or others)*without any additional recompilation. *Note:* for Windows Mobile and Windows CE the produced code should be recompiled against the .NET Compact Framework. Progress You're welcome to get the source code and contribute to the Pash public effort @ *http://sourceforge.net/projects/pash*. ~50% of public PowerShell classes defined. ~40% of framework functionality operational. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080407/bf23fca4/attachment.html From mandel at themacaque.com Tue Apr 8 03:33:12 2008 From: mandel at themacaque.com (Manuel de la Pena) Date: Tue, 08 Apr 2008 09:33:12 +0200 Subject: [Mono-list] [Mono-dev] CS0019 for value type != null In-Reply-To: <1207613765.622.12.camel@localhost> References: <1207613765.622.12.camel@localhost> Message-ID: <1207639992.24353.12.camel@dhcppc6> Hello, I don't know if I have this correct, but until 2.0 value types were not nullables. I have trid this solution my self but you could try this alternative code: Nullable dt = new Nullable(null); or alternatively DateTime? dt = null; and later do the check if(dt != null) Console.WriteLine(dt + ""); I any way tried you code and the error code is CS0165(use of unassigned local var) rather than CS0019 (Operator 'operator' cannot be applied to operands of type 'type' and 'type'). IS the code you sent the exact code that is giving you the problem? Hope it helps, Manuel On Mon, 2008-04-07 at 17:16 -0700, Casey Marshall wrote: > I've noticed that on a recent SVN build of mono, I get a CS0019 error > if > I try to compare a value type against null. E.g.: > > DateTime dt; > if (dt != null) > Console.WriteLine(dt); > > As far as I can tell, this is the correct behavior, since a value type > can't be null. I'm concerned, though, because this behavior seems to > have been introduced recently in SVN, AND it looks like MS's compiler > doesn't reject this statement (well, I haven't seen it accept it, but > this is existing code which apparently compiles fine under Visual > Studio). > > So, my question is, what's going on here? Does anyone know what the > semantics are if the compiler generates a conditional based on a > `valuetype CMP null' test? > > Thanks. > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list From matthias at lmme.de Tue Apr 8 05:10:23 2008 From: matthias at lmme.de (Matthias Lechner) Date: Tue, 8 Apr 2008 11:10:23 +0200 Subject: [Mono-list] Using exported C++ classes in managed code Message-ID: Hi list, I want to use a C++ library which exports classes (not plain functions) within a C# program using mono. From what I have found, the only possibility right now is to write a wrapper which re-exports the class members as plain functions... Do you see any other options? C++/CLI is not supported by mono right now, right? Best regards, Matthias From sergiosamayoa at icon.com.gt Fri Apr 4 12:03:17 2008 From: sergiosamayoa at icon.com.gt (ssamayoa) Date: Fri, 4 Apr 2008 09:03:17 -0700 (PDT) Subject: [Mono-list] Using System.Data.Common.DbProviderFactory with Mono In-Reply-To: <1207143241.7692.104.camel@vvaradhan.blr.novell.com> References: <15735200.post@talk.nabble.com> <1204202707.18296.147.camel@vvaradhan.blr.novell.com> <15753892.post@talk.nabble.com> <16349638.post@talk.nabble.com> <1207143241.7692.104.camel@vvaradhan.blr.novell.com> Message-ID: <16492564.post@talk.nabble.com> > As with any software, bugs are part of it and we sincerely appreciate > your efforts to help us clean these bugs. While we appreciate your > efforts in helping us by reporting bugs, we also seek some kinda > understanding that bugs are handled according to some priorities and > sometimes they may not attract immediate attention. I cant belive that nobody else has this problem! -- View this message in context: http://www.nabble.com/Using-System.Data.Common.DbProviderFactory-with-Mono-tp15735200p16492564.html Sent from the Mono - General mailing list archive at Nabble.com. From achint.kishore at netprophetsglobal.com Sat Apr 5 07:23:22 2008 From: achint.kishore at netprophetsglobal.com (Achint Kishore) Date: Sat, 5 Apr 2008 16:53:22 +0530 Subject: [Mono-list] Using C#.Net 2.0 WebBrowser Control / Supporting Mono Message-ID: <6b21b73c0804050423p6d3c9554kdc07bf923e7b566f@mail.gmail.com> Dear All, I am developing an windows application which will host an HTML page in webBrowser control embedded in the window form. As we know that Mono fully supports C#.Net 1.1, but I just want to make sure if I develop this application using C#.Net 2.0, will it support Mono? Or will I have to start using C#.Net 1.1. Early reply would be very satifactory. Thanks and Regards, -- Achint Kishore :: +91 9990187515 Software Developer, NetProphets Cyberworks Pvt. Ltd. B 1, Sector 60, NOIDA, U.P. 201 301 P : +91 120 4261 050/1/2/3 Extn. 30 F : +91 120 4261 054 This e-mail, together with any attachments, is confidential, and may be privileged. It may be read, copied and used only by the intended recipient. Access to this e-mail or any of its attachments by anyone else and disclosure or copying of its contents or any action taken (or not taken) in reliance on it, is unauthorized and may be unlawful. If you have received it in error, please notify the sender immediately by e-mail or telephone. Please then delete it from your computer without making any copies or disclosing it to any other person. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080405/6895783d/attachment-0001.html From bvpurandare at gmail.com Mon Apr 7 10:47:20 2008 From: bvpurandare at gmail.com (Bhupesh Purandare) Date: Mon, 7 Apr 2008 10:47:20 -0400 Subject: [Mono-list] Mono 1.2.6 x86-64 for Red Hat Linux Fedora Core Message-ID: Hi folks, I need to install mono 1.2.6 on a x86-64 bit machine with Red Hat Linux Fedora Core 7. Where can I find it ? Thanks a lot in advance for any information. Bhupesh Purandare ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080407/0d511afc/attachment-0001.html From amartinez at atc.ugr.es Tue Apr 8 06:22:18 2008 From: amartinez at atc.ugr.es (amartinez at atc.ugr.es) Date: Tue, 8 Apr 2008 12:22:18 +0200 (CEST) Subject: [Mono-list] Plain HTML access with Gecko Sharp? Message-ID: <44149.193.145.230.7.1207650138.squirrel@atc.ugr.es> Hello, all! Is it possible to access the plain HTML source using Gecko-sharp's WebControl? I can see no way to do this in the documentation. Thanks in advance! -- Antonio Martinez From kornelpal at gmail.com Tue Apr 8 06:47:52 2008 From: kornelpal at gmail.com (=?ISO-8859-1?B?S29ybulsIFDhbA==?=) Date: Tue, 8 Apr 2008 12:47:52 +0200 Subject: [Mono-list] Using exported C++ classes in managed code References: Message-ID: <002601c89965$ffd9f580$c9bbc5d9@kornelpal.hu> Hi, .NET Framework supports COM objects being marshaled as managed objects. By now Mono has very good COM interop support thanks to Jonathan Chambers. You should try it out: http://www.mono-project.com/COM_Interop Korn?l ----- Original Message ----- From: "Matthias Lechner" To: Sent: Tuesday, April 08, 2008 11:10 AM Subject: [Mono-list] Using exported C++ classes in managed code > > Hi list, > > I want to use a C++ library which exports classes (not plain functions) > within a C# program using mono. From what I have found, the only > possibility right now is to write a wrapper which re-exports the class > members as plain functions... > > Do you see any other options? C++/CLI is not supported by mono right now, > right? > > Best regards, > Matthias > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From achint.kishore at netprophetsglobal.com Tue Apr 8 07:23:01 2008 From: achint.kishore at netprophetsglobal.com (Achint Kishore) Date: Tue, 8 Apr 2008 16:53:01 +0530 Subject: [Mono-list] Does Mono supports C#.Net 2.0 webbrowser? Message-ID: <6b21b73c0804080423k6f1d3589i986a7d3bcdfd1717@mail.gmail.com> Hi All, I m involved in a project which hosts html page on webbrowser control of windows application which is made in C#.Net 2.0. Does anybody have idea if Mono fully supports all the feature of C#.Net 2.0 WebBrowser control? An early reply would be highly appreciated. Thanks and Regards, -- Achint Kishore :: 9990187515 Software Developer, NetProphets Cyberworks Pvt. Ltd. B 1, Sector 60, NOIDA, U.P. 201 301 P : +91 120 4261 050/1/2/3 Extn. 30 F : +91 120 4261 054 This e-mail, together with any attachments, is confidential, and may be privileged. It may be read, copied and used only by the intended recipient. Access to this e-mail or any of its attachments by anyone else and disclosure or copying of its contents or any action taken (or not taken) in reliance on it, is unauthorized and may be unlawful. If you have received it in error, please notify the sender immediately by e-mail or telephone. Please then delete it from your computer without making any copies or disclosing it to any other person. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080408/37fb6666/attachment.html From lindsay at softlog.com.au Tue Apr 8 07:54:52 2008 From: lindsay at softlog.com.au (Lindsay Mathieson) Date: Tue, 8 Apr 2008 21:54:52 +1000 Subject: [Mono-list] monodevelop Message-ID: <200804082154.52985.lindsay@softlog.com.au> Is this the correct list for monodevelop issues? -- Lindsay Mathieson From jonpryor at vt.edu Tue Apr 8 07:08:27 2008 From: jonpryor at vt.edu (Jonathan Pryor) Date: Tue, 08 Apr 2008 07:08:27 -0400 Subject: [Mono-list] Using exported C++ classes in managed code In-Reply-To: <002601c89965$ffd9f580$c9bbc5d9@kornelpal.hu> References: <002601c89965$ffd9f580$c9bbc5d9@kornelpal.hu> Message-ID: <1207652907.5391.22.camel@lina.magi.jprl.com> On Tue, 2008-04-08 at 12:47 +0200, Korn?l P?l wrote: > Hi, > > .NET Framework supports COM objects being marshaled as managed objects. > > By now Mono has very good COM interop support thanks to Jonathan Chambers. > You should try it out: > http://www.mono-project.com/COM_Interop Alas COM interop support requires COM-like classes -- interface based, reference counted, etc. It doesn't permit immediate reuse of existing C++ code unless that code was already providing COM objects... Beyond that, for binding arbitrary C++ code the "state of the art" hasn't progressed much: manual C wrappers and SWIG are currently it. - Jon From timothy.howard at gmail.com Tue Apr 8 09:25:26 2008 From: timothy.howard at gmail.com (Tim Howard) Date: Tue, 8 Apr 2008 09:25:26 -0400 Subject: [Mono-list] Using C#.Net 2.0 WebBrowser Control / Supporting Mono In-Reply-To: <6b21b73c0804050423p6d3c9554kdc07bf923e7b566f@mail.gmail.com> References: <6b21b73c0804050423p6d3c9554kdc07bf923e7b566f@mail.gmail.com> Message-ID: <8d21a9d40804080625v6d31c202h989b2af5f48b9ed5@mail.gmail.com> This page me be helpful: *http://www.mono-project.com/WebBrowser* cheers, tim On Sat, Apr 5, 2008 at 7:23 AM, Achint Kishore < achint.kishore at netprophetsglobal.com> wrote: > Dear All, > > I am developing an windows application which will host an HTML page in > webBrowser control embedded in the window form. As we know that Mono fully > supports C#.Net 1.1, but I just want to make sure if I develop this > application using C#.Net 2.0, will it support Mono? Or will I have to start > using C#.Net 1.1. > > Early reply would be very satifactory. > > Thanks and Regards, > > -- > > Achint Kishore :: +91 9990187515 > > Software Developer, > > NetProphets Cyberworks Pvt. Ltd. > > B 1, Sector 60, NOIDA, U.P. 201 301 > P : +91 120 4261 050/1/2/3 Extn. 30 > F : +91 120 4261 054 > > This e-mail, together with any attachments, is confidential, and may be > privileged. It may be read, copied and used only by the intended recipient. > Access to this e-mail or any of its attachments by anyone else and > disclosure or copying of its contents or any action taken (or not taken) in > reliance on it, is unauthorized and may be unlawful. If you have received it > in error, please notify the sender immediately by e-mail or telephone. > Please then delete it from your computer without making any copies or > disclosing it to any other person. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080408/4bb4e6cb/attachment.html From timothy.howard at gmail.com Tue Apr 8 09:28:47 2008 From: timothy.howard at gmail.com (Tim Howard) Date: Tue, 8 Apr 2008 09:28:47 -0400 Subject: [Mono-list] Using exported C++ classes in managed code In-Reply-To: <1207652907.5391.22.camel@lina.magi.jprl.com> References: <002601c89965$ffd9f580$c9bbc5d9@kornelpal.hu> <1207652907.5391.22.camel@lina.magi.jprl.com> Message-ID: <8d21a9d40804080628s4fb83151l3503b535434e49e3@mail.gmail.com> Seems like there is an awesome opportunity there for some template magic. :) Thinking of the Boost.Python library makes me wish there was something similar for C#. On Tue, Apr 8, 2008 at 7:08 AM, Jonathan Pryor wrote: > On Tue, 2008-04-08 at 12:47 +0200, Korn?l P?l wrote: > > Hi, > > > > .NET Framework supports COM objects being marshaled as managed objects. > > > > By now Mono has very good COM interop support thanks to Jonathan > Chambers. > > You should try it out: > > http://www.mono-project.com/COM_Interop > > Alas COM interop support requires COM-like classes -- interface based, > reference counted, etc. It doesn't permit immediate reuse of existing > C++ code unless that code was already providing COM objects... > > Beyond that, for binding arbitrary C++ code the "state of the art" > hasn't progressed much: manual C wrappers and SWIG are currently it. > > - Jon > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080408/961bbae7/attachment.html From lluis at novell.com Tue Apr 8 10:30:43 2008 From: lluis at novell.com (Lluis Sanchez Gual) Date: Tue, 08 Apr 2008 16:30:43 +0200 Subject: [Mono-list] monodevelop In-Reply-To: <200804082154.52985.lindsay@softlog.com.au> References: <200804082154.52985.lindsay@softlog.com.au> Message-ID: <1207665043.4938.33.camel@portador.aticatac-centre> Please use http://lists.ximian.com/mailman/listinfo/monodevelop-list El dt 08 de 04 del 2008 a les 21:54 +1000, en/na Lindsay Mathieson va escriure: > Is this the correct list for monodevelop issues? From monkey at jpobst.com Tue Apr 8 10:42:09 2008 From: monkey at jpobst.com (Jonathan Pobst) Date: Tue, 08 Apr 2008 09:42:09 -0500 Subject: [Mono-list] Does Mono supports C#.Net 2.0 webbrowser? In-Reply-To: <6b21b73c0804080423k6f1d3589i986a7d3bcdfd1717@mail.gmail.com> References: <6b21b73c0804080423k6f1d3589i986a7d3bcdfd1717@mail.gmail.com> Message-ID: <47FB8441.5010505@jpobst.com> Mono does not support *all* features of the WebBrowser control. It is currently under active development and gets more complete wi