From stifu at free.fr Sun Feb 1 04:43:27 2009 From: stifu at free.fr (Stifu) Date: Sun, 1 Feb 2009 01:43:27 -0800 (PST) Subject: [Mono-list] GDI+ status: InvalidParameter In-Reply-To: <21772704.post@talk.nabble.com> References: <21772704.post@talk.nabble.com> Message-ID: <21773172.post@talk.nabble.com> Hello! French here too. Just in case, make sure libgdiplus is installed... Also, if you could upload your project, I could check if I can get it to work. sonatine wrote: > > hello > > I a newbie and a french ( 2 firsts problems )... > I 'm on Linux (Ubuntu) for 2 weeks now and i want to use some C# software > I develop my-self no windows. > MoMa said it's all ok, under monodevelop the build result is : > " > Compilation de la solution CalculPoint > > Compilation du projet: CalculPoint (Debug|Any CPU) > Ex?cution de la compilation principale... > Compilation Termin?e -- 0 Erreur, 0 Avertissement > > ---------------------- Fini ---------------------- > > Compilation r?ussie. > System.Deployment est introuvable ou est invalide." > > So the build is OK but System.Deployment can't be found or is invalid. > > and when I want to execute my solution : > > I have this message : > Unhandled Exception: System.ArgumentException: A null reference or invalid > value was found [GDI+ status: InvalidParameter] > at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:219 > at System.Drawing.Image.InitFromStream (System.IO.Stream stream) > [0x000be] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:298 > at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean > keepAlive) [0x00011] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:162 > at System.Drawing.Icon.GetInternalBitmap () [0x00036] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:552 > at System.Drawing.Icon.ToBitmap () [0x0001b] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:574 > at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap () > at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd > hwnd, System.Drawing.Icon icon) [0x00021] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1168 > at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, > System.Drawing.Icon icon) [0x0000d] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5138 > at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, > System.Drawing.Icon icon) [0x00000] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:994 > at System.Windows.Forms.Form.CreateHandle () [0x0007f] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1946 > at System.Windows.Forms.Control.CreateControl () [0x00044] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3711 > at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x0003e] > in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4923 > at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00071] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2404 > at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3372 > at (wrapper remoting-invoke-with-check) > System.Windows.Forms.Control:set_Visible (bool) > at System.Windows.Forms.Application.RunLoop (Boolean Modal, > System.Windows.Forms.ApplicationContext context) [0x00059] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:736 > at System.Windows.Forms.Application.Run > (System.Windows.Forms.ApplicationContext context) [0x00014] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:635 > at System.Windows.Forms.Application.Run (System.Windows.Forms.Form > mainForm) [0x00000] in > /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:623 > at CalculPoint.Program.Main () [0x0000b] in > /home/dimitri/Bureau/Calcul/Calcul/CalculPoint/CalculPoint/Program.cs:17 > > Can someone help me ? > > Please ........ > > Someone tell me to uninstall and reinstall Mono ( but i did a bad thing > and i had to reinstall ubuntu instead ) > > Thank you > > Dimitri, frog newbie > -- View this message in context: http://www.nabble.com/GDI%2B-status%3A-InvalidParameter-tp21772704p21773172.html Sent from the Mono - General mailing list archive at Nabble.com. From surfzoid at gmail.com Sun Feb 1 04:57:43 2009 From: surfzoid at gmail.com (Petit Eric) Date: Sun, 1 Feb 2009 10:57:43 +0100 Subject: [Mono-list] GDI+ status: InvalidParameter In-Reply-To: <21773172.post@talk.nabble.com> References: <21772704.post@talk.nabble.com> <21773172.post@talk.nabble.com> Message-ID: <84776a970902010157hb4e5ddcy31d90905e302796c@mail.gmail.com> 2009/2/1 Stifu : > > Hello! > French here too. > > Just in case, make sure libgdiplus is installed... > Also, if you could upload your project, I could check if I can get it to > work. > > > sonatine wrote: >> >> hello >> >> I a newbie and a french ( 2 firsts problems )... >> I 'm on Linux (Ubuntu) for 2 weeks now and i want to use some C# software >> I develop my-self no windows. >> MoMa said it's all ok, under monodevelop the build result is : >> " >> Compilation de la solution CalculPoint >> >> Compilation du projet: CalculPoint (Debug|Any CPU) >> Ex?cution de la compilation principale... >> Compilation Termin?e -- 0 Erreur, 0 Avertissement If your solution came from VS2008/2005 and was not cleaned before, del the bin directory and in the ref, remove "Deploy" assembly (it is only VS but "optional", then compil again through MonoDevelop. >> >> ---------------------- Fini ---------------------- >> >> Compilation r?ussie. >> System.Deployment est introuvable ou est invalide." >> >> So the build is OK but System.Deployment can't be found or is invalid. >> >> and when I want to execute my solution : >> >> I have this message : >> Unhandled Exception: System.ArgumentException: A null reference or invalid >> value was found [GDI+ status: InvalidParameter] >> at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:219 >> at System.Drawing.Image.InitFromStream (System.IO.Stream stream) >> [0x000be] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:298 >> at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean >> keepAlive) [0x00011] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:162 >> at System.Drawing.Icon.GetInternalBitmap () [0x00036] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:552 >> at System.Drawing.Icon.ToBitmap () [0x0001b] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:574 >> at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap () >> at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd >> hwnd, System.Drawing.Icon icon) [0x00021] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1168 >> at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, >> System.Drawing.Icon icon) [0x0000d] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5138 >> at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, >> System.Drawing.Icon icon) [0x00000] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:994 >> at System.Windows.Forms.Form.CreateHandle () [0x0007f] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1946 >> at System.Windows.Forms.Control.CreateControl () [0x00044] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3711 >> at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x0003e] >> in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4923 >> at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00071] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2404 >> at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3372 >> at (wrapper remoting-invoke-with-check) >> System.Windows.Forms.Control:set_Visible (bool) >> at System.Windows.Forms.Application.RunLoop (Boolean Modal, >> System.Windows.Forms.ApplicationContext context) [0x00059] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:736 >> at System.Windows.Forms.Application.Run >> (System.Windows.Forms.ApplicationContext context) [0x00014] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:635 >> at System.Windows.Forms.Application.Run (System.Windows.Forms.Form >> mainForm) [0x00000] in >> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:623 >> at CalculPoint.Program.Main () [0x0000b] in >> /home/dimitri/Bureau/Calcul/Calcul/CalculPoint/CalculPoint/Program.cs:17 >> >> Can someone help me ? >> >> Please ........ >> >> Someone tell me to uninstall and reinstall Mono ( but i did a bad thing >> and i had to reinstall ubuntu instead ) >> >> Thank you >> >> Dimitri, frog newbie >> > > -- > View this message in context: http://www.nabble.com/GDI%2B-status%3A-InvalidParameter-tp21772704p21773172.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From kumpera at gmail.com Sun Feb 1 10:23:33 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Sun, 1 Feb 2009 13:23:33 -0200 Subject: [Mono-list] Memory leak In-Reply-To: <200902010322.02699.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> Message-ID: <8cca42d80902010723x52e2785eua6dfe7a7e79d3151@mail.gmail.com> On Sun, Feb 1, 2009 at 1:22 AM, Jon Harrop wrote: > > I understand that Mono's new garbage collector has been delayed until Mono > 2.9 > but someone else mentioned that even this new GC will still not be accurate > and, therefore, is likely to leak memory indefinitely as well. Is that > correct? > Yes, toy programs designed to leak memory will still do with the new GC. In practice a GC with conservative stack scanning has a larger working set dude to floating garbage, but it's quite rare to cause pathological leaks such as the one you crafted. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090201/78580361/attachment-0001.html From jon at ffconsultancy.com Sun Feb 1 10:57:16 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sun, 1 Feb 2009 15:57:16 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <8cca42d80902010723x52e2785eua6dfe7a7e79d3151@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <8cca42d80902010723x52e2785eua6dfe7a7e79d3151@mail.gmail.com> Message-ID: <200902011557.16574.jon@ffconsultancy.com> On Sunday 01 February 2009 15:23:33 Rodrigo Kumpera wrote: > On Sun, Feb 1, 2009 at 1:22 AM, Jon Harrop wrote: > > I understand that Mono's new garbage collector has been delayed until > > Mono 2.9 > > but someone else mentioned that even this new GC will still not be > > accurate and, therefore, is likely to leak memory indefinitely as well. > > Is that correct? > > Yes, toy programs designed to leak memory will still do with the new GC. In > practice a GC with conservative stack scanning has a larger working set dude > to floating garbage, but it's quite rare to cause pathological > leaks such as the one you crafted. Are you saying that larger programs that use this queue implementation will not leak? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From kumpera at gmail.com Sun Feb 1 12:52:16 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Sun, 1 Feb 2009 15:52:16 -0200 Subject: [Mono-list] Memory leak In-Reply-To: <200902011557.16574.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <8cca42d80902010723x52e2785eua6dfe7a7e79d3151@mail.gmail.com> <200902011557.16574.jon@ffconsultancy.com> Message-ID: <8cca42d80902010952m2d1b3732m9c982f1ebb161f9c@mail.gmail.com> On Sun, Feb 1, 2009 at 1:57 PM, Jon Harrop wrote: > On Sunday 01 February 2009 15:23:33 Rodrigo Kumpera wrote: > > On Sun, Feb 1, 2009 at 1:22 AM, Jon Harrop > wrote: > > > I understand that Mono's new garbage collector has been delayed until > > > Mono 2.9 > > > but someone else mentioned that even this new GC will still not be > > > accurate and, therefore, is likely to leak memory indefinitely as well. > > > Is that correct? > > > > Yes, toy programs designed to leak memory will still do with the new GC. > In > > practice a GC with conservative stack scanning has a larger working set > dude > > to floating garbage, but it's quite rare to cause pathological > > leaks such as the one you crafted. > > Are you saying that larger programs that use this queue implementation will > not leak? > This kind of leaks are usually caused by unused stack slots that retain the dead value. Regular code will overwrite those stack slots on method calls and let the GC collect. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090201/3befc87c/attachment.html From lupus at ximian.com Mon Feb 2 13:05:50 2009 From: lupus at ximian.com (Paolo Molaro) Date: Mon, 2 Feb 2009 19:05:50 +0100 Subject: [Mono-list] Memory leak In-Reply-To: <200902010322.02699.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> Message-ID: <20090202180550.GD8859@debian.org> On 02/01/09 Jon Harrop wrote: > This code creates a queue represented by a cyclic list and repeatedly adds and > takes one element at a time (so there are always either 1 or 2 elements in > the queue). Running on Mono 2.2, this program leaks, consuming all 4Gb of my > memory in only 60 seconds. If your description of the code is correct, it shouldn't "leak" even with the Boehm GC. Write the equivalent code in C#, for example. My guess is that either your code doesn't do what you describe or there is a bug triggered by F# in the runtime and what is actually leaking is not managed memory. Post the equivalent C# code and we can easily check which case it is. > I understand that Mono's new garbage collector has been delayed until Mono 2.9 > but someone else mentioned that even this new GC will still not be accurate > and, therefore, is likely to leak memory indefinitely as well. Is that > correct? There are various degrees of GC precisions: the current GC is already precise wrt heap objects and basically only thread stacks are scanned conservatively. The new GC does the same (though there are a few more little-used memory locations that are scanned precisely). Precise scanning of the managed stack frames is planned for a subsequent release (it requires JIT changes as well). lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From lupus at ximian.com Mon Feb 2 13:17:21 2009 From: lupus at ximian.com (Paolo Molaro) Date: Mon, 2 Feb 2009 19:17:21 +0100 Subject: [Mono-list] Mono does not have tail calls? In-Reply-To: <200901310038.21083.jon@ffconsultancy.com> References: <200901310038.21083.jon@ffconsultancy.com> Message-ID: <20090202181721.GE8859@debian.org> On 01/31/09 Jon Harrop wrote: > I had long since held the belief that Mono supports tail calls but when I > recently came to actually test that I discovered that Mono does not, in fact, > have tail calls. > > Specifically, I ran the following simple test code: > > let even odd n = odd(n+1) Please post the generated IL code in a bug report. We have a similar test in tests/even-odd.il and it has been working for years in mono. lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From jon at ffconsultancy.com Mon Feb 2 13:46:02 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Mon, 2 Feb 2009 18:46:02 +0000 Subject: [Mono-list] Mono does not have tail calls? In-Reply-To: <20090202181721.GE8859@debian.org> References: <200901310038.21083.jon@ffconsultancy.com> <20090202181721.GE8859@debian.org> Message-ID: <200902021846.02690.jon@ffconsultancy.com> On Monday 02 February 2009 18:17:21 Paolo Molaro wrote: > On 01/31/09 Jon Harrop wrote: > > I had long since held the belief that Mono supports tail calls but when I > > recently came to actually test that I discovered that Mono does not, in > > fact, have tail calls. > > > > Specifically, I ran the following simple test code: > > > > let even odd n = odd(n+1) > > Please post the generated IL code in a bug report. > We have a similar test in tests/even-odd.il and it has been working for > years in mono. Your test uses only mutual tail recursion and not general tail calls because your branch locations are static. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From alan.battersby at ntlworld.com Mon Feb 2 14:05:15 2009 From: alan.battersby at ntlworld.com (alan battersby) Date: Mon, 02 Feb 2009 19:05:15 +0000 Subject: [Mono-list] Problem using monodocer Message-ID: <498743EB.5020601@ntlworld.com> Hi , I followed the online info to generate some documentation using monodocer, see below monodocer -path:docs -assembly:OTPaths/bin/Debug/basic.dll This seemed to work ok in that files where created. I then ran monodoc to edit these files. monodoc --edit docs I could see the links in the treeview but whenever I select a link monodoc crashes with a segmentation fault Loading uncompiled help from docs using Gecko using Gecko Segmentation fault I chased a link on the web that seemed to suggest the problem was with Gecko so I tried monodoc --engine GtkHtml --edit docs but still crashes with trace shown below. Am I doing something wrong or is there a major bug here? Alan Loading uncompiled help from docs using GtkHtml using GtkHtml Trying: root:/extra-help-source-basic Trying: N:Utils ######### Error loading url N:Utils - excpetion below: ######### System.ArgumentNullException: Argument cannot be null. Parameter name: path at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.String name) [0x00000] at Monodoc.HelpSource.GetHelpXmlWithChanges (System.String id) [0x00000] at Monodoc.EcmaHelpSource.RenderNamespaceLookup (System.String nsurl, Monodoc.Node& match_node) [0x00000] at Monodoc.RootTree.RenderUrl (System.String url, Monodoc.Node& match_node) [0x00000] at Monodoc.Browser.LoadUrl (System.String url) [0x00000] +----------------------------------------------+ | Here we should locate the provider for the | | link. Maybe using this document as a base? | | Maybe having a locator interface? The short| | urls are not very useful to locate types | +----------------------------------------------+ Marshaling changed signal Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object at Monodoc.EcmaHelpSource.GetTextFromUrl (System.String url) [0x00000] at Monodoc.EcmaHelpSource.RenderTypeLookup (System.String prefix, System.String ns, System.String type, System.String member, Monodoc.Node& match_node) [0x00000] at Monodoc.RootTree.TypeLookup (System.String url, Monodoc.Node& match_node) [0x00000] at Monodoc.RootTree.RenderUrl (System.String url, Monodoc.Node& match_node) [0x00000] at Monodoc.TreeBrowser.RowActivated (System.Object sender, System.EventArgs a) [0x00000] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal) at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) at Gtk.Application.gtk_main() at Gtk.Application.Run() at Monodoc.Driver.Main(System.String[] args) From xaviblas at gmail.com Mon Feb 2 14:48:16 2009 From: xaviblas at gmail.com (Xavi de Blas) Date: Mon, 2 Feb 2009 20:48:16 +0100 Subject: [Mono-list] Help on compiling an wsdl Message-ID: <256a87490902021148i1bb50363u36f35e2c3d2b308a@mail.gmail.com> Hello, can anyone compile this? i'm stuck: http://svn.gnome.org/svn/chronojump/trunk/chronojump_server/chronojumpServerCSharp.cs http://svn.gnome.org/svn/chronojump/trunk/chronojump_server/chronojumpServer.asmx i think you have to rename the chronojumpServerCSharp.cs to chronojumpServer.cs and then call xsp2, and then do: wsdl2 http://localhost:8080/chronojumpServer.asmx i cannot do it (not found errors) and i'm using a "hand-made" file that gives me some errors on primitive serialization thanks a lot, bye! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090202/676a16e5/attachment.html From jonpryor at vt.edu Mon Feb 2 14:55:02 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Mon, 02 Feb 2009 19:55:02 +0000 Subject: [Mono-list] Problem using monodocer In-Reply-To: <498743EB.5020601@ntlworld.com> References: <498743EB.5020601@ntlworld.com> Message-ID: <1233604502.5501.6.camel@lina> On Mon, 2009-02-02 at 19:05 +0000, alan battersby wrote: > but still crashes with trace shown below. > > Am I doing something wrong or is there a major bug here? There's a bug there. :-/ - Jon From xaviblas at gmail.com Tue Feb 3 10:16:30 2009 From: xaviblas at gmail.com (Xavi de Blas) Date: Tue, 3 Feb 2009 16:16:30 +0100 Subject: [Mono-list] Help on compiling an wsdl In-Reply-To: <256a87490902021148i1bb50363u36f35e2c3d2b308a@mail.gmail.com> References: <256a87490902021148i1bb50363u36f35e2c3d2b308a@mail.gmail.com> Message-ID: <256a87490902030716l7a861aeo782fe27ae5c04f9@mail.gmail.com> Ok, done using the web service bye! thanks 2009/2/2 Xavi de Blas : > Hello, can anyone compile this? i'm stuck: > > http://svn.gnome.org/svn/chronojump/trunk/chronojump_server/chronojumpServerCSharp.cs > > http://svn.gnome.org/svn/chronojump/trunk/chronojump_server/chronojumpServer.asmx > > i think you have to rename the chronojumpServerCSharp.cs to > chronojumpServer.cs and then call xsp2, and then do: > > wsdl2 http://localhost:8080/chronojumpServer.asmx > > > i cannot do it (not found errors) and i'm using a "hand-made" file that > gives me some errors on primitive serialization > > thanks a lot, bye! > From twiest at novell.com Tue Feb 3 17:47:22 2009 From: twiest at novell.com (Thomas Wiest) Date: Tue, 03 Feb 2009 15:47:22 -0700 Subject: [Mono-list] Announcing Mono 2.4 Preview 2... Message-ID: <4988C97A.80000@novell.com> Hey Everyone, We've just released Mono 2.4 Preview 2 today! Please help us out by giving it a try with your applications. As always, you can get the preview/RC releases here: http://mono.ximian.com/monobuild/preview/download-preview/ Please report any bugs that you may find using our Bugs page, AND reply to this thread with the bug numbers so we can track them: http://www.mono-project.com/Bugs You can see the bugs we're tracking for Mono 2.4 here: https://bugzilla.novell.com/buglist.cgi?query_format=advanced&classification=Mono&target_milestone=2.4.x&order=bugs.bug_status%2Cbugs.bug_severity The earlier you file the bugs and reply to this message, the more likely your bugs will get fixed. Special attention is given to regressions, so if you can tell us a version of Mono where the bug worked and you add [Regression] to the beginning of the summary of the bug, then it is much more likely your bug will get fixed. Please help the Mono team to make 2.4 the best ever. Thanks! Mono QA From vicente.gonzalez at togasoluciones.com Tue Feb 3 19:34:16 2009 From: vicente.gonzalez at togasoluciones.com (vgserrat) Date: Tue, 3 Feb 2009 16:34:16 -0800 (PST) Subject: [Mono-list] Mono Develope Suse and Dialogic Message-ID: <21822190.post@talk.nabble.com> Hi My name is Vicente Gonz?lez. I am in the point to start a new application and adventure in my job. I am deciding which platform to use, we will make a telephony software using Dialogic software for linux and I have to decide if we use Red Hat or Suse. Dialogic software runs in both platforms and specially in suse in the following versions: ? SUSE Linux Enterprise Server 9 Service Pack 4 with reconfigured Kernel 2.6.5 ? SUSE Linux Enterprise Server 9 Service Pack 3 with reconfigured Kernel 2.6.5 ? SUSE Linux Professional Release 9.3 with Kernel 2.6.11 I see Mono project very powerfull and all the manager aplications will be developed using Mono. I want to hear from you what is the future of Mono in Red Hat. I see the binaries of Mono in Red Hat have this announce: Binaries for this platform have been discontinued. Builds may be available from unsupported downloads or we may be looking for a volunteer to maintain packages. I dont want to have problems in this year with Red Hat and Mono so I want to hear you opinion about the future of Mono and Red Hat that maybe will be not good because Microsoft and Novell agreement. Another question is .. where can I get the Suse Linux versions listed up and if Mono 2.0 runs in these versions? Thank you -- View this message in context: http://www.nabble.com/Mono-Develope-Suse-and-Dialogic-tp21822190p21822190.html Sent from the Mono - General mailing list archive at Nabble.com. From davidcanar at gmail.com Tue Feb 3 22:06:50 2009 From: davidcanar at gmail.com (David Canar) Date: Tue, 3 Feb 2009 20:06:50 -0700 Subject: [Mono-list] Qyoto project dead ? In-Reply-To: <200901131328.16902.mono-devel@arnorehn.de> References: <200901131328.16902.mono-devel@arnorehn.de> Message-ID: On Tue, Jan 13, 2009 at 5:28 AM, Arno Rehn wrote: > Hi, > > No, Qyoto isn't dead at all. It's actively being developed in the kdebindings > module of KDE and packaged with each KDE release in the kdebindings tarball. > We currently have support for akonadi, khtml, kdelibs, ktexteditor, nepomuk, > plasma, qscintilla, qtscript, qttest, qtuitools, qtwebkit, qt and soprano. > The maintainer of qyoto.org has apparently lost interest in the project and > took the website down. Sorry about that. I didn't take the website down, the domain expired and I didn't renew it. For those interested on the website, the site is still up in a backup server: http://ekarchive.elikirk.com/david/qyoto There is also another project using a different approach for those interested in Qt 4 development using C# for Windows: http://code.google.com/p/qt4dotnet/ This new project compiles Qt Jambi into a .NET library using ikvm. So far it only works on Windows (but technically it should on Linux and Mac). It is still in its early stages but several examples work (still crashes here and there though). David. > We plan to come up with something on KDE techbase and > put a short describtion on mono-project.com. > If you want to take a look at it, use the kdebindings module from the KDE 4.x > releases or get the latest sources from > svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebindings . > Good to see people being interested in that project =) > If you reply to this, please CC me as I'm not subscribed to the list. > > -- > Arno Rehn > arno at arnorehn.de > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From mono-devel at arnorehn.de Wed Feb 4 11:40:29 2009 From: mono-devel at arnorehn.de (Arno Rehn) Date: Wed, 4 Feb 2009 17:40:29 +0100 Subject: [Mono-list] Qyoto project dead ? Message-ID: <200902041740.29723.mono-devel@arnorehn.de> On Wednesday 04 February 2009 04:06:50 you wrote: > On Tue, Jan 13, 2009 at 5:28 AM, Arno Rehn wrote: > > Hi, > > > > No, Qyoto isn't dead at all. It's actively being developed in the > > kdebindings module of KDE and packaged with each KDE release in the > > kdebindings tarball. We currently have support for akonadi, khtml, > > kdelibs, ktexteditor, nepomuk, plasma, qscintilla, qtscript, qttest, > > qtuitools, qtwebkit, qt and soprano. The maintainer of qyoto.org has > > apparently lost interest in the project and took the website down. > > Sorry about that. I didn't take the website down, the domain expired > and I didn't renew it. For those interested on the website, the site > is still up in a backup server: > > http://ekarchive.elikirk.com/david/qyoto Oh, ok. > There is also another project using a different approach for those > interested in Qt 4 development using C# for Windows: > > http://code.google.com/p/qt4dotnet/ > > This new project compiles Qt Jambi into a .NET library using ikvm. So > far it only works on Windows (but technically it should on Linux and > Mac). > > It is still in its early stages but several examples work (still > crashes here and there though). Yes, I tried a similiar approach at the beginning of the development of Qyoto. There were a few problems with that. First, it is slow. Damn slow. Second, IKVM depends on classpath and a stripped version of openjdk. So you'd always need QtJambi, Classpath, OpenJDK-stripped and IKVM. In comparison to that Qyoto only needs the Smoke lib, which is also reused by many more qt bindings. Our target for 4.3 is also a working Qyoto for Windows, so I truly hope this project will not be needed =) > > We plan to come up with something on KDE techbase and > > put a short describtion on mono-project.com. > > If you want to take a look at it, use the kdebindings module from the KDE > > 4.x releases or get the latest sources from > > svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebindings . > > Good to see people being interested in that project =) > > If you reply to this, please CC me as I'm not subscribed to the list. -- Arno Rehn arno at arnorehn.de From kardosbalint at gmail.com Wed Feb 4 12:55:34 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Wed, 4 Feb 2009 18:55:34 +0100 Subject: [Mono-list] GDI+ and Mono 2.0.1 Message-ID: Hi, I have written a small HttpHandler which automatically generates text on the fly with a custom font, added to the System.Drawing.Font.PrivateFontCollection. with Ms.net 3.5sp1, it works fine. with Mono 2.0.1, on Vista, it dies with: Stacktrace: at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipDeletePrivateFontCollection (intptr&) <0x00004> at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipDeletePrivateFontCollection (intptr&) <0xffffffff> at System.Drawing.Text.PrivateFontCollection.Dispose (bool) [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class\System.Drawing\System.Drawing.Text\PrivateFontCollection.cs:80 on Linux, it dies with: System.Exception: Generic Error [GDI+ status: GenericError] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] at System.Drawing.Image.Save (System.String filename, System.Drawing.Imaging.ImageCodecInfo encoder, System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000] at System.Drawing.Image.Save (System.String filename, System.Drawing.Imaging.ImageFormat format) [0x00000] none of the which are further traceable. Any clues on how to further debug? thank you, b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090204/a4ed9039/attachment.html From sebastien.pouliot at gmail.com Wed Feb 4 13:12:01 2009 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Wed, 04 Feb 2009 13:12:01 -0500 Subject: [Mono-list] GDI+ and Mono 2.0.1 In-Reply-To: References: Message-ID: <1233771121.9198.255.camel@mizar.home> On Wed, 2009-02-04 at 18:55 +0100, B?lint Kardos wrote: > Hi, > > > I have written a small HttpHandler which automatically generates text > on the fly with a custom font, added to the > System.Drawing.Font.PrivateFontCollection. > > > with Ms.net 3.5sp1, it works fine. > > > with Mono 2.0.1, > on Vista, it dies with: > > > Stacktrace: > > > at (wrapper managed-to-native) > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection (intptr&) > <0x00004> > at (wrapper managed-to-native) > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection (intptr&) > <0xffffffff> > at System.Drawing.Text.PrivateFontCollection.Dispose (bool) > [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class > \System.Drawing\System.Drawing.Text\PrivateFontCollection.cs:80 > > > > > on Linux, it dies with: > > > System.Exception: Generic Error [GDI+ status: GenericError] > at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] > at System.Drawing.Image.Save (System.String filename, System.Drawing.Imaging.ImageCodecInfo encoder, System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000] > at System.Drawing.Image.Save (System.String filename, System.Drawing.Imaging.ImageFormat format) [0x00000] > > none of the which are further traceable. ?This is likely two different issues. I recall (it was a _long_ time ago) some win32 specific behavior wrt ?PrivateFontCollection - explaining the first case. I suspect the later error (on Linux) is due to something else. > Any clues on how to further debug? > thank you, Try to create a test case outside your HTTP handler (i.e. a small EXE). Then use "mono --debug app.exe" to get a bit more information and fill a bug report on http://bugzilla.novell.com Thanks, Sebastien From kardosbalint at gmail.com Wed Feb 4 13:27:50 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Wed, 4 Feb 2009 19:27:50 +0100 Subject: [Mono-list] GDI+ and Mono 2.0.1 In-Reply-To: <1233771121.9198.255.camel@mizar.home> References: <1233771121.9198.255.camel@mizar.home> Message-ID: Hi Sebastien, thanks for your reply! I only want to deploy it on the Linux server, so I'm working on this part first. I found the solution, it had no rights to write to a given folder. It now executes, but the output file is just 192 bytes long, and only has the header of the PNG stream. The whole process is the following: 1) open a 24bit PNG file 2) add the text 3) save the file to a given directory 4) send it to the out stream Image.FromFile would throw an exception if it would not find the original file, the TextWriter would throw an exception if it would not find the font, so I can't find any reason why it's not working. I don't know, possibly I'm missing some required .so files? I installed everything from the mono packages, and have libpng installed as well. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Wed, Feb 4, 2009 at 19:12, Sebastien Pouliot wrote: > On Wed, 2009-02-04 at 18:55 +0100, B?lint Kardos wrote: > > Hi, > > > > > > I have written a small HttpHandler which automatically generates text > > on the fly with a custom font, added to the > > System.Drawing.Font.PrivateFontCollection. > > > > > > with Ms.net 3.5sp1, it works fine. > > > > > > with Mono 2.0.1, > > on Vista, it dies with: > > > > > > Stacktrace: > > > > > > at (wrapper managed-to-native) > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection (intptr&) > > <0x00004> > > at (wrapper managed-to-native) > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection (intptr&) > > <0xffffffff> > > at System.Drawing.Text.PrivateFontCollection.Dispose (bool) > > [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1\mcs\class > > \System.Drawing\System.Drawing.Text\PrivateFontCollection.cs:80 > > > > > > > > > > on Linux, it dies with: > > > > > > System.Exception: Generic Error [GDI+ status: GenericError] > > at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] > > at System.Drawing.Image.Save (System.String filename, > System.Drawing.Imaging.ImageCodecInfo encoder, > System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000] > > at System.Drawing.Image.Save (System.String filename, > System.Drawing.Imaging.ImageFormat format) [0x00000] > > > > none of the which are further traceable. > > ?This is likely two different issues. I recall (it was a _long_ time > ago) some win32 specific behavior wrt ?PrivateFontCollection - > explaining the first case. > > I suspect the later error (on Linux) is due to something else. > > > Any clues on how to further debug? > > thank you, > > Try to create a test case outside your HTTP handler (i.e. a small EXE). > Then use "mono --debug app.exe" to get a bit more information and fill a > bug report on http://bugzilla.novell.com > > Thanks, > Sebastien > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090204/f4aa9ebf/attachment-0001.html From sebastien.pouliot at gmail.com Wed Feb 4 14:02:55 2009 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Wed, 04 Feb 2009 14:02:55 -0500 Subject: [Mono-list] GDI+ and Mono 2.0.1 In-Reply-To: References: <1233771121.9198.255.camel@mizar.home> Message-ID: <1233774175.9198.264.camel@mizar.home> On Wed, 2009-02-04 at 19:27 +0100, B?lint Kardos wrote: > Hi Sebastien, > > > thanks for your reply! > I only want to deploy it on the Linux server, so I'm working on this > part first. > > > I found the solution, it had no rights to write to a given folder. Yep, a bit lame but this is how GDI+/SD reports such permission issues. > It now executes, but the output file is just 192 bytes long, and only > has the header of the PNG stream. My previous suggestion still applies. Once you have a small EXE it will be much easier to debug (and/or trace) to see what's going on. > The whole process is the following: > > > 1) open a 24bit PNG file > 2) add the text > 3) save the file to a given directory > 4) send it to the out stream > > > Image.FromFile would throw an exception if it would not find the > original file, > the TextWriter would throw an exception if it would not find the font, TextWriter / font ? not likely ;-) > so I can't find any reason why it's not working. Try to remove step 2 (adding the text) and see if a copy of the original file is saved (or just an header). > > I don't know, possibly I'm missing some required .so files? > I installed everything from the mono packages, and have libpng > installed as well. Possible but unlikely, since you would have hit an exception (or a crash). > > > > > ?dv?zlettel > with regards > > Kardos B?lint > _______________________________________ > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > On Wed, Feb 4, 2009 at 19:12, Sebastien Pouliot > wrote: > On Wed, 2009-02-04 at 18:55 +0100, B?lint Kardos wrote: > > Hi, > > > > > > I have written a small HttpHandler which automatically > generates text > > on the fly with a custom font, added to the > > System.Drawing.Font.PrivateFontCollection. > > > > > > with Ms.net 3.5sp1, it works fine. > > > > > > with Mono 2.0.1, > > on Vista, it dies with: > > > > > > Stacktrace: > > > > > > at (wrapper managed-to-native) > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > (intptr&) > > <0x00004> > > at (wrapper managed-to-native) > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > (intptr&) > > <0xffffffff> > > at System.Drawing.Text.PrivateFontCollection.Dispose > (bool) > > [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1 > \mcs\class > > \System.Drawing\System.Drawing.Text > \PrivateFontCollection.cs:80 > > > > > > > > > > on Linux, it dies with: > > > > > > System.Exception: Generic Error [GDI+ status: GenericError] > > at System.Drawing.GDIPlus.CheckStatus (Status status) > [0x00000] > > at System.Drawing.Image.Save (System.String filename, > System.Drawing.Imaging.ImageCodecInfo encoder, > System.Drawing.Imaging.EncoderParameters encoderParams) > [0x00000] > > at System.Drawing.Image.Save (System.String filename, > System.Drawing.Imaging.ImageFormat format) [0x00000] > > > > none of the which are further traceable. > > > ?This is likely two different issues. I recall (it was a > _long_ time > ago) some win32 specific behavior wrt ?PrivateFontCollection - > explaining the first case. > > I suspect the later error (on Linux) is due to something else. > > > Any clues on how to further debug? > > thank you, > > > Try to create a test case outside your HTTP handler (i.e. a > small EXE). > Then use "mono --debug app.exe" to get a bit more information > and fill a > bug report on http://bugzilla.novell.com > > Thanks, > Sebastien > > > > From adrien.dessemond at gmail.com Wed Feb 4 14:22:07 2009 From: adrien.dessemond at gmail.com (Adrien Dessemond) Date: Wed, 4 Feb 2009 14:22:07 -0500 Subject: [Mono-list] Announcing Mono 2.4 Preview 2... Message-ID: On Wed, Feb 4, 2009 at 1:27 PM, wrote: Hi, > From: Thomas Wiest > Subject: [Mono-list] Announcing Mono 2.4 Preview 2... > > Hey Everyone, > > We've just released Mono 2.4 Preview 2 today! > > Please help us out by giving it a try with your applications. Do you still provide some statistics on the Mono framework somewhere (how many classes are fully/partially implemented, covered areas by the Mono framework, gaps with MS.Net...)? At worst, where could this information be extracted from? Thanks, Adrien From jonathan.gagnon at croesus.com Wed Feb 4 15:26:14 2009 From: jonathan.gagnon at croesus.com (Jonathan Gagnon) Date: Wed, 4 Feb 2009 15:26:14 -0500 Subject: [Mono-list] pdb2mdb Message-ID: <87868D9412664926B6EFEF67840ECDD3@unigiciel.com> Hi, I've been using the pdb2mdb tool for a while to convert my pdb files to the mdb format recognized by mono. Now it seems that the mdb file format has changed and that this tool no longer works with recent versions of mono (I get a warning telling me that the symbol file has an incorrect version). I thought that I just had to use a more recent version of the Mono.CompilerServices.SymbolWriter.dll to fix the problem, but I still get this warning message. Any idea what I could do to make pdb2mdb work with the latest version of mono? Is this tool (pdb2mdb) still available somewhere in the sources? Thanks, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090204/acae3589/attachment.html From rweiss at chesapeakebay.net Wed Feb 4 15:49:57 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Wed, 4 Feb 2009 12:49:57 -0800 (PST) Subject: [Mono-list] Trying to run SQL Server Integration Services - Problem Message-ID: <21839331.post@talk.nabble.com> All, I am getting the following error: ** (ssis.exe:17939): WARNING **: string/stringbuilder marshalling conversion 29 not implemented Unhandled Exception: System.NotImplementedException: string/stringbuilder marshalling conversion 29 not implemented at (wrapper managed-to-native) System.Runtime.Remoting.Proxies.RealProxy:InternalGetTransparentProxy (string) at System.Runtime.Remoting.Proxies.RealProxy.GetTransparentProxy () [0x00000] at System.Runtime.Remoting.RemotingServices.CreateClientProxyForComInterop (System.Type type) [0x00000] at System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType (System.Type type) [0x00000] at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_object_new_specific (intptr) at Microsoft.SqlServer.Dts.Runtime.Application..ctor () [0x00000] I had to copy the DLLs out of my development machine's GAC (it's a standard windows development machine) for All of the SQL Server stuff to get to this point. I am VERY new to mono, but have been developing on the .Net platform since its inception, so please bear with my learning curve. First, what does this error mean? And second, is there a resolution? Here is the code that is running that produces the above error, it wsa compiled on the Windows Dev box: static void Main(string[] args) { Application app = new Application(); MyEventListener eventListener = new MyEventListener(); Package package = app.LoadPackage("test", eventListener); Variables vars = package.Variables; DTSExecResult result = package.Execute(null, null, eventListener, null, null); } We are running mono 1.9.1 on a RHEL 5.3 x86_64 box. Thanks in advance for any help, Rob Weiss. -- View this message in context: http://www.nabble.com/Trying-to-run-SQL-Server-Integration-Services---Problem-tp21839331p21839331.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Wed Feb 4 16:44:03 2009 From: robertj at gmx.net (Robert Jordan) Date: Wed, 04 Feb 2009 22:44:03 +0100 Subject: [Mono-list] pdb2mdb In-Reply-To: <87868D9412664926B6EFEF67840ECDD3@unigiciel.com> References: <87868D9412664926B6EFEF67840ECDD3@unigiciel.com> Message-ID: Hi, Jonathan Gagnon wrote: > Any idea what I could do to make pdb2mdb work with the latest version of > mono? Is this tool (pdb2mdb) still available somewhere in the sources? Unfortunately, I've lost the sources together with my harddisk, but they are likely available in the list's archive at http://lists.ximian.com/pipermail/mono-devel-list/ 2006 or 2007. Robert From jonathan.gagnon at croesus.com Wed Feb 4 17:01:29 2009 From: jonathan.gagnon at croesus.com (Jonathan Gagnon) Date: Wed, 4 Feb 2009 17:01:29 -0500 Subject: [Mono-list] pdb2mdb In-Reply-To: References: <87868D9412664926B6EFEF67840ECDD3@unigiciel.com> Message-ID: Actually, I have the sources, but even if I recompile the application, I still get the same error message and I don't know how to fix it. I thought that by using the Mono.CompilerServices.SymbolWriter.dll library that comes with mono 2.2, I would be able to fix the problem, but that doesn't work. I got the sources from svn last year I think (they were located in the /trunk/MonoVS/MonoAddin folder), but they seem to have been deleted from there because the MonoVS folder no longer exists in the trunk. Jonathan -----Message d'origine----- De?: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] De la part de Robert Jordan Envoy??: Wednesday, February 04, 2009 4:44 PM ??: Mono-list at lists.ximian.com Objet?: Re: [Mono-list] pdb2mdb Hi, Jonathan Gagnon wrote: > Any idea what I could do to make pdb2mdb work with the latest version of > mono? Is this tool (pdb2mdb) still available somewhere in the sources? Unfortunately, I've lost the sources together with my harddisk, but they are likely available in the list's archive at http://lists.ximian.com/pipermail/mono-devel-list/ 2006 or 2007. Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From robertj at gmx.net Wed Feb 4 18:15:28 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 05 Feb 2009 00:15:28 +0100 Subject: [Mono-list] pdb2mdb In-Reply-To: References: <87868D9412664926B6EFEF67840ECDD3@unigiciel.com> Message-ID: Jonathan Gagnon wrote: > Actually, I have the sources, but even if I recompile the application, I > still get the same error message and I don't know how to fix it. > > I thought that by using the Mono.CompilerServices.SymbolWriter.dll library > that comes with mono 2.2, I would be able to fix the problem, but that > doesn't work. Try the attached version. You must copy Mono.Cecil.dll and Mono.CompilerServices.SymbolWriter.dll into the directory containing the extracted files and then call make make test The makefile (gnu) assumes that csc (>= MS.NET 2.0) and mono is in PATH. "make test" works for me with Mono 2.4 and SVN HEAD. Robert -------------- next part -------------- A non-text attachment was scrubbed... Name: pdb2mdb-20090205.tar.gz Type: application/x-gzip Size: 2568 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090205/59a34384/attachment-0001.gz From escanda at gmail.com Wed Feb 4 18:43:30 2009 From: escanda at gmail.com (Alan Escandarani) Date: Wed, 4 Feb 2009 21:43:30 -0200 Subject: [Mono-list] mails Message-ID: <1dfe8b900902041543u513a5b48s9a07b1d781277ebd@mail.gmail.com> hey i don't want to recive your mails, dissuscribe me PLEASE ! thank you bye -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090204/8149ae6c/attachment.html From cdhowie at gmail.com Wed Feb 4 18:51:15 2009 From: cdhowie at gmail.com (Chris Howie) Date: Wed, 4 Feb 2009 18:51:15 -0500 Subject: [Mono-list] mails In-Reply-To: <1dfe8b900902041543u513a5b48s9a07b1d781277ebd@mail.gmail.com> References: <1dfe8b900902041543u513a5b48s9a07b1d781277ebd@mail.gmail.com> Message-ID: <3d2f29dc0902041551mb3e4118m8d637e8601363c0@mail.gmail.com> On Wed, Feb 4, 2009 at 6:43 PM, Alan Escandarani wrote: > hey i don't want to recive your mails, dissuscribe me PLEASE ! You can do this yourself by following the link at the bottom of every message you receive from the list. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From ikruis at gmail.com Wed Feb 4 19:54:58 2009 From: ikruis at gmail.com (SE1) Date: Wed, 4 Feb 2009 16:54:58 -0800 (PST) Subject: [Mono-list] Qyoto project dead ? In-Reply-To: <200902041740.29723.mono-devel@arnorehn.de> References: <200902041740.29723.mono-devel@arnorehn.de> Message-ID: <21843093.post@talk.nabble.com> Arno Rehn-6 wrote: > > On Wednesday 04 February 2009 04:06:50 you wrote: >> On Tue, Jan 13, 2009 at 5:28 AM, Arno Rehn >> wrote: >> > Hi, >> > >> > No, Qyoto isn't dead at all. It's actively being developed in the >> > kdebindings module of KDE and packaged with each KDE release in the >> > kdebindings tarball. We currently have support for akonadi, khtml, >> > kdelibs, ktexteditor, nepomuk, plasma, qscintilla, qtscript, qttest, >> > qtuitools, qtwebkit, qt and soprano. The maintainer of qyoto.org has >> > apparently lost interest in the project and took the website down. >> >> Sorry about that. I didn't take the website down, the domain expired >> and I didn't renew it. For those interested on the website, the site >> is still up in a backup server: >> >> http://ekarchive.elikirk.com/david/qyoto > Oh, ok. > >> There is also another project using a different approach for those >> interested in Qt 4 development using C# for Windows: >> >> http://code.google.com/p/qt4dotnet/ >> >> This new project compiles Qt Jambi into a .NET library using ikvm. So >> far it only works on Windows (but technically it should on Linux and >> Mac). >> >> It is still in its early stages but several examples work (still >> crashes here and there though). > Yes, I tried a similiar approach at the beginning of the development of > Qyoto. > There were a few problems with that. First, it is slow. Damn slow. Second, > IKVM depends on classpath and a stripped version of openjdk. So you'd > always > need QtJambi, Classpath, OpenJDK-stripped and IKVM. > In comparison to that Qyoto only needs the Smoke lib, which is also reused > by > many more qt bindings. Our target for 4.3 is also a working Qyoto for > Windows, > so I truly hope this project will not be needed =) > > ... > Besides that, Qyoto does work quite fine on Windows at the moment already, it just needs a little tweaking of the build process and some patches to behave properly with the MS.NET GC. It might be slightly out-of-date on current development, but on my wiki I've a page that describes how to do it: http://imaginary-project.net/wiki/qyoto Ilmar Kruis -- View this message in context: http://www.nabble.com/Qyoto-project-dead---tp21427284p21843093.html Sent from the Mono - General mailing list archive at Nabble.com. From jonathan.gagnon at croesus.com Thu Feb 5 09:16:46 2009 From: jonathan.gagnon at croesus.com (Jonathan Gagnon) Date: Thu, 5 Feb 2009 09:16:46 -0500 Subject: [Mono-list] pdb2mdb In-Reply-To: References: <87868D9412664926B6EFEF67840ECDD3@unigiciel.com> Message-ID: <3EBEB696E01240F9B0F10A1C2A9FEF1B@unigiciel.com> That works for me as well with mono 2.2. Thanks, Jonathan -----Message d'origine----- De?: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] De la part de Robert Jordan Envoy??: Wednesday, February 04, 2009 6:15 PM ??: Mono-list at lists.ximian.com Objet?: Re: [Mono-list] pdb2mdb Jonathan Gagnon wrote: > Actually, I have the sources, but even if I recompile the application, I > still get the same error message and I don't know how to fix it. > > I thought that by using the Mono.CompilerServices.SymbolWriter.dll library > that comes with mono 2.2, I would be able to fix the problem, but that > doesn't work. Try the attached version. You must copy Mono.Cecil.dll and Mono.CompilerServices.SymbolWriter.dll into the directory containing the extracted files and then call make make test The makefile (gnu) assumes that csc (>= MS.NET 2.0) and mono is in PATH. "make test" works for me with Mono 2.4 and SVN HEAD. Robert From rweiss at chesapeakebay.net Thu Feb 5 10:06:52 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Thu, 5 Feb 2009 07:06:52 -0800 (PST) Subject: [Mono-list] IronPython Running SSIS Package Message-ID: <21853152.post@talk.nabble.com> After reading up on how to run ssis packages on mono, I came across a how to using IronPython. Running it, I got this: ** (C:\PROGRA~2\Mono-2.2\lib\IPCE\ipy\ipy.exe:4420): WARNING **: string/stringbu ilder marshalling conversion 29 not implemented Traceback (most recent call last): File Microsoft.SqlServer.ManagedDTS, line unknown, in .ctor NotImplementedError: string/stringbuilder marshalling conversion 29 not implemen ted ** (C:\PROGRA~2\Mono-2.2\lib\IPCE\ipy\ipy.exe:4420): WARNING **: Shutting down f inalizer thread timed out. Does anyone have any idea as to why/what is causing this issue? I have the same problem when running against the same dll using a C# implementation of the same code that is executing in IronPython. I figured that if there was a IronPython article on how to run ssis packages, that it would work, so I think it must be a config problem on my machines. My dev box is Windows running Mono 2.2 and my prod box id RHEL running Mono 2.2 - what could be wrong? I am finding the DLLs ok, otherwise I would not be getting this far. Help!! It I can get it to work in any fashion, I will publish the code for everyone to use, so they don't suffer my frustrations!! TIA, Rob Weiss -- View this message in context: http://www.nabble.com/IronPython-Running-SSIS-Package-tp21853152p21853152.html Sent from the Mono - General mailing list archive at Nabble.com. From matio at hotmail.co.uk Thu Feb 5 11:39:19 2009 From: matio at hotmail.co.uk (matio) Date: Thu, 5 Feb 2009 08:39:19 -0800 (PST) Subject: [Mono-list] Gecko Message-ID: <21853479.post@talk.nabble.com> I've been using gecko & c#, is there a way: 1) To download files 2) On right click see options like copy, paste, page source -- View this message in context: http://www.nabble.com/Gecko-tp21853479p21853479.html Sent from the Mono - General mailing list archive at Nabble.com. From charlie at nunit.com Thu Feb 5 15:18:20 2009 From: charlie at nunit.com (Charlie Poole) Date: Thu, 5 Feb 2009 12:18:20 -0800 Subject: [Mono-list] Managed C++ Code Samples Message-ID: <000001c987ce$e417fd80$6401a8c0@ferrari> My current scripts for running the NUnit samples for both old-stype managed C++ and newer C++/CLI require VisualStudio. Is there any usable alternative that folks here know of? Charlie From stifu at free.fr Thu Feb 5 16:48:01 2009 From: stifu at free.fr (Stifu) Date: Thu, 5 Feb 2009 13:48:01 -0800 (PST) Subject: [Mono-list] Missing libraries for .NET program In-Reply-To: <21860481.post@talk.nabble.com> References: <21860481.post@talk.nabble.com> Message-ID: <21861904.post@talk.nabble.com> If I'm not mistaken, "PresentationFramework" refers to WPF, which is not supported by Mono, and the support of which is not planned either. Sturmrabe wrote: > > Hello, > > I am trying to make a .NET framework program run under Mono on an Ubuntu > 8.10 (Intrepid Ibex) system, but I have problems with some > "PresentationFramework" it misses or can't run. The version of the > "mono-runtime" package included in this distribution is: > 1.9.1+dfsg-4ubuntu2. At first it complained: > > ** (CharacterBuilder.exe:7789): WARNING **: Could not load file or > assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35' or one of its dependencies. > The entry point method could not be loaded > > I tried to fix that by copying some files over from a .NET framework > installation und putting the files under /windows/Program Files > (x86)/Reference Assemblies/Microsoft/Framework/V3.0 into the MONO_PATH. > Now it complains: > > Unhandled Exception: System.TypeInitializationException: An exception was > thrown by the type initializer for Character_Builder.App ---> > System.InvalidProgramException: Invalid IL code in > SmartAssembly.SmartExceptionsCore.UnhandledException:? > (System.Exception): IL_000a: ret > > Does anyone have an idea how I may get around this? > -- View this message in context: http://www.nabble.com/Missing-libraries-for-.NET-program-tp21860481p21861904.html Sent from the Mono - General mailing list archive at Nabble.com. From sanfordarmstrong at gmail.com Thu Feb 5 17:10:11 2009 From: sanfordarmstrong at gmail.com (Sandy Armstrong) Date: Thu, 05 Feb 2009 14:10:11 -0800 Subject: [Mono-list] Missing libraries for .NET program In-Reply-To: <21861904.post@talk.nabble.com> References: <21860481.post@talk.nabble.com> <21861904.post@talk.nabble.com> Message-ID: <498B63C3.7060208@gmail.com> That being said, depending on what you need from that, it *may* be available in mono-olive. Sandy On 02/05/2009 01:48 PM, Stifu wrote: > If I'm not mistaken, "PresentationFramework" refers to WPF, which is not > supported by Mono, and the support of which is not planned either. > > > Sturmrabe wrote: >> Hello, >> >> I am trying to make a .NET framework program run under Mono on an Ubuntu >> 8.10 (Intrepid Ibex) system, but I have problems with some >> "PresentationFramework" it misses or can't run. The version of the >> "mono-runtime" package included in this distribution is: >> 1.9.1+dfsg-4ubuntu2. At first it complained: >> >> ** (CharacterBuilder.exe:7789): WARNING **: Could not load file or >> assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35' or one of its dependencies. >> The entry point method could not be loaded >> >> I tried to fix that by copying some files over from a .NET framework >> installation und putting the files under /windows/Program Files >> (x86)/Reference Assemblies/Microsoft/Framework/V3.0 into the MONO_PATH. >> Now it complains: >> >> Unhandled Exception: System.TypeInitializationException: An exception was >> thrown by the type initializer for Character_Builder.App ---> >> System.InvalidProgramException: Invalid IL code in >> SmartAssembly.SmartExceptionsCore.UnhandledException:? >> (System.Exception): IL_000a: ret >> >> Does anyone have an idea how I may get around this? >> > From cdhowie at gmail.com Thu Feb 5 17:24:49 2009 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 5 Feb 2009 17:24:49 -0500 Subject: [Mono-list] Gecko In-Reply-To: <21853479.post@talk.nabble.com> References: <21853479.post@talk.nabble.com> Message-ID: <3d2f29dc0902051424x3e4d610bubca7cc2ec1d71024@mail.gmail.com> On Thu, Feb 5, 2009 at 11:39 AM, matio wrote: > I've been using gecko & c#, is there a way: > 1) To download files > 2) On right click see options like copy, paste, page source None that I have found. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From ryan at webcohesion.com Thu Feb 5 22:40:42 2009 From: ryan at webcohesion.com (Ryan Heaton) Date: Thu, 5 Feb 2009 19:40:42 -0800 (PST) Subject: [Mono-list] linkage question Message-ID: <21863604.post@talk.nabble.com> Apologies in advance for what should be a pretty basic question. I'm new at C# and mono development. So I've got some library that I've compiled, in my case it's called "full.dll". In that library is defined a class, "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService". Now I want to write an executable that uses an instance of Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService. I compile that to a file "full.exe". Now, when I try to run it, e.g.: mono full.exe I get an error saying that "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService" can't be loaded: ** (full.exe:19687): WARNING **: The class Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService could not be loaded, used in full, Version=0.0.0.0, Culture=neutral Unhandled Exception: System.TypeLoadException: Could not load type 'System.InvalidProgramException' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. So I guess it's not linking the dll to the exe at runtime. What's my problem? How do I reference that dll when I invoke mono? I'm developing on Ubuntu Intrepid. -- View this message in context: http://www.nabble.com/linkage-question-tp21863604p21863604.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Fri Feb 6 05:02:25 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Fri, 6 Feb 2009 10:02:25 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <20090202180550.GD8859@debian.org> References: <200902010322.02699.jon@ffconsultancy.com> <20090202180550.GD8859@debian.org> Message-ID: <117799f00902060202y2462651fs213cd1e6c79b5b22@mail.gmail.com> Hi guys, Someone emailed me a C# version of the 'leaking' program (leak.cs). As was stated by Rodrigo, this bug is caused by stack slots not being overrwritten. I've attached a non leaking version (recurse.cs) which adds some recursion so the stack slots are overrwritten. This version exhibits no leak and will run forever. Jon, so if your application is 'leaking' on mono, it's not due to the list implementation, unless of course your application performs all it's operations in the same stack slot. Alan. On Mon, Feb 2, 2009 at 6:05 PM, Paolo Molaro wrote: > On 02/01/09 Jon Harrop wrote: > > This code creates a queue represented by a cyclic list and repeatedly > adds and > > takes one element at a time (so there are always either 1 or 2 elements > in > > the queue). Running on Mono 2.2, this program leaks, consuming all 4Gb of > my > > memory in only 60 seconds. > > If your description of the code is correct, it shouldn't "leak" even with > the Boehm GC. Write the equivalent code in C#, for example. My guess is > that either your code doesn't do what you describe or there is a bug > triggered by F# in the runtime and what is actually leaking is not > managed memory. Post the equivalent C# code and we can easily check > which case it is. > > > I understand that Mono's new garbage collector has been delayed until > Mono 2.9 > > but someone else mentioned that even this new GC will still not be > accurate > > and, therefore, is likely to leak memory indefinitely as well. Is that > > correct? > > There are various degrees of GC precisions: the current GC is already > precise wrt heap objects and basically only thread stacks are scanned > conservatively. The new GC does the same (though there are > a few more little-used memory locations that are scanned precisely). > Precise scanning of the managed stack frames is planned for a subsequent > release (it requires JIT changes as well). > > lupus > > -- > ----------------------------------------------------------------- > lupus at debian.org debian/rules > lupus at ximian.com Monkeys do it better > _______________________________________________ > 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/20090206/d0697512/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: leak.cs Type: text/x-csharp Size: 959 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090206/d0697512/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: recurse.cs Type: text/x-csharp Size: 1081 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090206/d0697512/attachment-0001.bin From rweiss at chesapeakebay.net Fri Feb 6 08:03:01 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Fri, 6 Feb 2009 05:03:01 -0800 (PST) Subject: [Mono-list] linkage question In-Reply-To: <21863604.post@talk.nabble.com> References: <21863604.post@talk.nabble.com> Message-ID: <21872011.post@talk.nabble.com> Do you have a reference to the Full.dll in your project? Make sure that full.dll is in the same dir as the execution dir. How did you compile the app? Can you post the code? If you can get your hands on MS Visual Studio IDE, write the app, compile the app and debug the app there first, then just copy the output bin to the target machine. This is how I develop for the mono platform right now with no issues. Plus VS IDE has alot of the RAD stuff built in, so its harder to make a mistake, if you are new to the language - IMHO. Ryan Heaton wrote: > > Apologies in advance for what should be a pretty basic question. I'm new > at C# and mono development. > > So I've got some library that I've compiled, in my case it's called > "full.dll". In that library is defined a class, > "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService". > > Now I want to write an executable that uses an instance of > Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService. I > compile that to a file "full.exe". Now, when I try to run it, e.g.: > > mono full.exe > > I get an error saying that > "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService" can't be > loaded: > > ** (full.exe:19687): WARNING **: The class > Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService could not > be loaded, used in full, Version=0.0.0.0, Culture=neutral > > Unhandled Exception: System.TypeLoadException: Could not load type > 'System.InvalidProgramException' from assembly 'mscorlib, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089'. > > > So I guess it's not linking the dll to the exe at runtime. What's my > problem? How do I reference that dll when I invoke mono? > > I'm developing on Ubuntu Intrepid. > -- View this message in context: http://www.nabble.com/linkage-question-tp21863604p21872011.html Sent from the Mono - General mailing list archive at Nabble.com. From rweiss at chesapeakebay.net Fri Feb 6 08:04:18 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Fri, 6 Feb 2009 05:04:18 -0800 (PST) Subject: [Mono-list] linkage question In-Reply-To: <21863604.post@talk.nabble.com> References: <21863604.post@talk.nabble.com> Message-ID: <21872028.post@talk.nabble.com> Ahhh... make sure that the Full.exe and the Full.dll are NOT the same class name or they are in different namspaces, if they are. Ryan Heaton wrote: > > Apologies in advance for what should be a pretty basic question. I'm new > at C# and mono development. > > So I've got some library that I've compiled, in my case it's called > "full.dll". In that library is defined a class, > "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService". > > Now I want to write an executable that uses an instance of > Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService. I > compile that to a file "full.exe". Now, when I try to run it, e.g.: > > mono full.exe > > I get an error saying that > "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService" can't be > loaded: > > ** (full.exe:19687): WARNING **: The class > Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService could not > be loaded, used in full, Version=0.0.0.0, Culture=neutral > > Unhandled Exception: System.TypeLoadException: Could not load type > 'System.InvalidProgramException' from assembly 'mscorlib, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089'. > > > So I guess it's not linking the dll to the exe at runtime. What's my > problem? How do I reference that dll when I invoke mono? > > I'm developing on Ubuntu Intrepid. > -- View this message in context: http://www.nabble.com/linkage-question-tp21863604p21872028.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Fri Feb 6 08:07:50 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 6 Feb 2009 08:07:50 -0500 Subject: [Mono-list] linkage question In-Reply-To: <21863604.post@talk.nabble.com> References: <21863604.post@talk.nabble.com> Message-ID: <3d2f29dc0902060507y64fe41a3p74e37a47a91651ec@mail.gmail.com> On Thu, Feb 5, 2009 at 10:40 PM, Ryan Heaton wrote: > Unhandled Exception: System.TypeLoadException: Could not load type > 'System.InvalidProgramException' from assembly 'mscorlib, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089'. Uhh, should this be happening on a vanilla Mono install? The runtime is trying to throw an exception type defined in the corlib, but it's not there. This seems shady... -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From robertj at gmx.net Fri Feb 6 08:48:52 2009 From: robertj at gmx.net (Robert Jordan) Date: Fri, 06 Feb 2009 14:48:52 +0100 Subject: [Mono-list] linkage question In-Reply-To: <21863604.post@talk.nabble.com> References: <21863604.post@talk.nabble.com> Message-ID: Ryan Heaton wrote: > Apologies in advance for what should be a pretty basic question. I'm new at > C# and mono development. > > So I've got some library that I've compiled, in my case it's called > "full.dll". In that library is defined a class, > "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService". > > Now I want to write an executable that uses an instance of > Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService. I compile > that to a file "full.exe". Now, when I try to run it, e.g.: Mono does not distinguish between assemblies with the same base name, like "foo.exe" and "foo.dll". Renaming the assemblies won't help either, so you must recompile one of them with /out:notfoo.{dll|exe} option. Robert From tcmichals at yahoo.com Fri Feb 6 10:09:18 2009 From: tcmichals at yahoo.com (tcmichals) Date: Fri, 6 Feb 2009 07:09:18 -0800 (PST) Subject: [Mono-list] AOT with 2.0.1 Message-ID: <21874279.post@talk.nabble.com> I was trying out aot. using the instructions on the web site: # Do a full AOT: $ mono --aot=full mscorlib.dll $ mono --aot=full sample.exe # Run, but request that Mono never tries to JIT: $ mono --full-aot sample.exe I tried mono --aot=full /usr/lib/mono/1.0/mscorlib.dll and get a segfault, I'm doing something wrong? -- View this message in context: http://www.nabble.com/AOT-with-2.0.1-tp21874279p21874279.html Sent from the Mono - General mailing list archive at Nabble.com. From balint at cardos.hu Fri Feb 6 10:43:21 2009 From: balint at cardos.hu (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Fri, 6 Feb 2009 16:43:21 +0100 Subject: [Mono-list] mono 2.2 on ubuntu? Message-ID: Hi, does anyone know a repository where i can find the latest mono for ubuntu? thanks, b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090206/5e27849a/attachment.html From kardosbalint at gmail.com Fri Feb 6 10:43:52 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Fri, 6 Feb 2009 16:43:52 +0100 Subject: [Mono-list] mono 2.2 on ubuntu? In-Reply-To: References: Message-ID: Hi, does anyone know a repository where i can find the latest mono for ubuntu? thanks, b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090206/bdba46f9/attachment.html From mysql.jorge at decimal.pt Fri Feb 6 11:01:03 2009 From: mysql.jorge at decimal.pt (Jorge Bastos) Date: Fri, 6 Feb 2009 16:01:03 -0000 Subject: [Mono-list] linkage question In-Reply-To: References: <21863604.post@talk.nabble.com> Message-ID: <000001c98874$1d0d8920$57289b60$@jorge@decimal.pt> > > Mono does not distinguish between assemblies with the same base name, > like "foo.exe" and "foo.dll". Renaming the assemblies won't help > either, > so you must recompile one of them with /out:notfoo.{dll|exe} option. > Make sure the .dll is in the same path as the .exe file From ryan at webcohesion.com Fri Feb 6 12:05:48 2009 From: ryan at webcohesion.com (Ryan Heaton) Date: Fri, 6 Feb 2009 10:05:48 -0700 Subject: [Mono-list] linkage question In-Reply-To: References: <21863604.post@talk.nabble.com> Message-ID: Thanks to everybody who replied. My problem turned out to be solved by Robert's suggestion: I had to rename my executable from full.exe to fulltest.exe or something. However, I'm still not clear as to how Mono resolves references to other libraries. It's clear that it loads all libraries that are in the same directory as the executable. But does that mean that for any given executable, all libraries have to be in the same directory? Is there no way to link libraries that are in a different directory? Just FYI, I'm coming from a Java background, so I'm used to classpath arguments on the command line... Thanks! -Ryan On Fri, Feb 6, 2009 at 6:48 AM, Robert Jordan wrote: > Ryan Heaton wrote: >> Apologies in advance for what should be a pretty basic question. I'm new at >> C# and mono development. >> >> So I've got some library that I've compiled, in my case it's called >> "full.dll". In that library is defined a class, >> "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService". >> >> Now I want to write an executable that uses an instance of >> Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService. I compile >> that to a file "full.exe". Now, when I try to run it, e.g.: > > Mono does not distinguish between assemblies with the same base name, > like "foo.exe" and "foo.dll". Renaming the assemblies won't help either, > so you must recompile one of them with /out:notfoo.{dll|exe} option. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From robertj at gmx.net Fri Feb 6 12:46:18 2009 From: robertj at gmx.net (Robert Jordan) Date: Fri, 06 Feb 2009 18:46:18 +0100 Subject: [Mono-list] linkage question In-Reply-To: References: <21863604.post@talk.nabble.com> Message-ID: Hey, Ryan Heaton wrote: > Thanks to everybody who replied. My problem turned out to be solved > by Robert's suggestion: I had to rename my executable from full.exe to > fulltest.exe or something. > > However, I'm still not clear as to how Mono resolves references to > other libraries. It's clear that it loads all libraries that are in > the same directory as the executable. But does that mean that for any This is correct. > given executable, all libraries have to be in the same directory? Is > there no way to link libraries that are in a different directory? If the APIs exposed by the assemblies are stable, the GAC could be used for sharing them among applications. Otherwise there is no straightforward (see man mono) way to influence the load path. > Just FYI, I'm coming from a Java background, so I'm used to classpath > arguments on the command line... Well, .NET has a precise distinction between stable assembly/APIs and local or unstable assemblies. So everything not being "stable" must be local. This kind of loader behavior was introduced to avoid a condition known as DLL hell, the sister of the CLASSPATH disease ;-) Robert From ryan at webcohesion.com Fri Feb 6 12:52:26 2009 From: ryan at webcohesion.com (Ryan Heaton) Date: Fri, 6 Feb 2009 10:52:26 -0700 Subject: [Mono-list] linkage question In-Reply-To: References: <21863604.post@talk.nabble.com> Message-ID: Interesting. How exactly does an API get identified as "stable"? Some kind of compiler flag? And how does one install a stable assembly into the GAC? Just curious; I doubt I'll be using the GAC. Thanks! -Ryan On Fri, Feb 6, 2009 at 10:46 AM, Robert Jordan wrote: > Hey, > > Ryan Heaton wrote: >> Thanks to everybody who replied. My problem turned out to be solved >> by Robert's suggestion: I had to rename my executable from full.exe to >> fulltest.exe or something. >> >> However, I'm still not clear as to how Mono resolves references to >> other libraries. It's clear that it loads all libraries that are in >> the same directory as the executable. But does that mean that for any > > This is correct. > >> given executable, all libraries have to be in the same directory? Is >> there no way to link libraries that are in a different directory? > > If the APIs exposed by the assemblies are stable, the GAC could be > used for sharing them among applications. Otherwise there is > no straightforward (see man mono) way to influence the load path. > >> Just FYI, I'm coming from a Java background, so I'm used to classpath >> arguments on the command line... > > Well, .NET has a precise distinction between stable assembly/APIs and > local or unstable assemblies. So everything not being "stable" must be > local. This kind of loader behavior was introduced to avoid a condition > known as DLL hell, the sister of the CLASSPATH disease ;-) > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From jonpryor at vt.edu Fri Feb 6 13:20:24 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Fri, 06 Feb 2009 13:20:24 -0500 Subject: [Mono-list] linkage question In-Reply-To: References: <21863604.post@talk.nabble.com> Message-ID: <1233944424.20018.20.camel@lina> On Fri, 2009-02-06 at 10:52 -0700, Ryan Heaton wrote: > Interesting. How exactly does an API get identified as "stable"? Some > kind of compiler flag? By the author saying that it's stable, signing the assembly (see sn(1)), and installing it into the GAC (gacutil /i, which requires that the assembly be signed). > And how does one install a stable assembly into the GAC? gacutil /i. > Just curious; I doubt I'll be using the GAC. The GAC should not be used lightly. Placing an assembly into the GAC is saying "the public API will never change [for this primary version] in an incompatible manner." Thus, for example, you can't rename existing types or members, or change the accessibility of members from public to non-public, change the types of members (e.g. field to a property), etc. Any of which may be needed for "cleanliness" reasons, bug fixes, and the like. Which isn't to say that the GAC shouldn't be used -- Gtk# has a stable API, and certainly should use the GAC to simplify dependencies for other applications -- but some care and thought needs to be used before deciding to place assemblies into the GAC. - Jon From welemon at gmail.com Fri Feb 6 23:01:25 2009 From: welemon at gmail.com (william lee) Date: Sat, 7 Feb 2009 12:01:25 +0800 Subject: [Mono-list] AOT with 2.0.1 In-Reply-To: <21874279.post@talk.nabble.com> References: <21874279.post@talk.nabble.com> Message-ID: <19e010960902062001g5646d96r21c44e25e009f10e@mail.gmail.com> I got the same error.mono --aot=full /usr/lib/mono/2.0/mscorlib.dll Got a seg fault. Mono 2.2 OpenSUSE11.1 Thanks, William L. On Fri, Feb 6, 2009 at 11:09 PM, tcmichals wrote: > > I was trying out aot. using the instructions on the web site: > # Do a full AOT: > $ mono --aot=full mscorlib.dll > $ mono --aot=full sample.exe > > # Run, but request that Mono never tries to JIT: > $ mono --full-aot sample.exe > > I tried mono --aot=full /usr/lib/mono/1.0/mscorlib.dll > and get a segfault, I'm doing something wrong? > > -- > View this message in context: > http://www.nabble.com/AOT-with-2.0.1-tp21874279p21874279.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090207/70520aaa/attachment.html From jon at ffconsultancy.com Sat Feb 7 04:19:04 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 09:19:04 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902060202y2462651fs213cd1e6c79b5b22@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <20090202180550.GD8859@debian.org> <117799f00902060202y2462651fs213cd1e6c79b5b22@mail.gmail.com> Message-ID: <200902070919.04275.jon@ffconsultancy.com> On Friday 06 February 2009 10:02:25 Alan McGovern wrote: > Hi guys, > > Someone emailed me a C# version of the 'leaking' program (leak.cs). As was > stated by Rodrigo, this bug is caused by stack slots not being > overrwritten. I've attached a non leaking version (recurse.cs) which adds > some recursion so the stack slots are overrwritten. This version exhibits > no leak and will run forever. The essence of your workaround seems to be in passing the queue around as a superfluous function argument. Your use of recursion is actually a red herring. You can see this by factoring out the initialization code into a separation function in the code below, which also works around the bug but without having to introduce unnecessary recursion. > Jon, so if your application is 'leaking' on mono, it's not due to the list > implementation, Are you saying that these bugs in Mono afflict a wider class of data structures than queues, graphs, lazy lists and closures? Do you have other code samples that also leak indefinitely? > unless of course your application performs all it's operations in the same > stack slot. Your description is vague but, if my interpretation is correct, the following is another trivial counter example that introduces new functions "push" and "pop" with their own stack frames but still leaks on Mono: using System; class Leak { class Cell { public A content; public Cell next; } static Cell tail = null; static void push(int[] x) { var tail2 = tail; var cell = new Cell { content = x, next = tail2.next }; tail2.next = cell; tail = cell; } static void pop() { var tail3 = tail; tail3.next = tail3.next.next; } static void Main() { var cell = new Cell { content = new int[0], next = null }; cell.next = cell; tail = cell; while (true) { push(new[] { 1, 2, 3, 4 }); pop(); } } } -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From jon at ffconsultancy.com Sat Feb 7 05:27:16 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 10:27:16 +0000 Subject: [Mono-list] Task Parallel Library Message-ID: <200902071027.16593.jon@ffconsultancy.com> Microsoft's TPL is a famous example of a real library that makes heavy use of queues. I wanted to see if this library was also afflicted by these memory leaks in Mono but, unfortunately, Mono 2.2 cannot start the TPL: $ mono Program.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Threading.Tasks.TaskManager ---> System.EntryPointNotFoundException: GetCurrentProcess at (wrapper managed-to-native) System.Threading.Internal.NativeMethods:GetCurrentProcess () at System.Threading.Internal.Platform.get_ProcessorCount () [0x00000] at System.Threading.Tasks.TaskManagerPolicy..ctor () [0x00000] at System.Threading.Tasks.TaskManager..ctor () [0x00000] at System.Threading.Tasks.TaskManager..cctor () [0x00000] --- End of inner exception stack trace --- at System.Threading.Tasks.Future.Create[Int32] (System.Func`1 valueSelector) [0x00000] at Program.fib (Int32 _arg1) [0x00000] at .$Program._main () [0x00000] Has anyone managed to get the TPL running on Mono? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From m.j.hutchinson at gmail.com Sat Feb 7 05:35:40 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 7 Feb 2009 05:35:40 -0500 Subject: [Mono-list] Task Parallel Library In-Reply-To: <200902071027.16593.jon@ffconsultancy.com> References: <200902071027.16593.jon@ffconsultancy.com> Message-ID: On Sat, Feb 7, 2009 at 5:27 AM, Jon Harrop wrote: > > Microsoft's TPL is a famous example of a real library that makes heavy use of > queues. I wanted to see if this library was also afflicted by these memory > leaks in Mono but, unfortunately, Mono 2.2 cannot start the TPL: > > $ mono Program.exe > > Unhandled Exception: System.TypeInitializationException: An exception was > thrown by the type initializer for System.Threading.Tasks.TaskManager ---> > System.EntryPointNotFoundException: GetCurrentProcess > at (wrapper managed-to-native) > System.Threading.Internal.NativeMethods:GetCurrentProcess () > at System.Threading.Internal.Platform.get_ProcessorCount () [0x00000] > at System.Threading.Tasks.TaskManagerPolicy..ctor () [0x00000] > at System.Threading.Tasks.TaskManager..ctor () [0x00000] > at System.Threading.Tasks.TaskManager..cctor () [0x00000] > --- End of inner exception stack trace --- > at System.Threading.Tasks.Future.Create[Int32] (System.Func`1 valueSelector) > [0x00000] > at Program.fib (Int32 _arg1) [0x00000] > at .$Program._main () [0x00000] > > Has anyone managed to get the TPL running on Mono? It appears to be P/Invoking Windows API, so I doubt it's possible without faking the GetCurrentProcess C API. -- Michael Hutchinson http://mjhutchinson.com From m.j.hutchinson at gmail.com Sat Feb 7 05:42:06 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 7 Feb 2009 05:42:06 -0500 Subject: [Mono-list] Task Parallel Library In-Reply-To: References: <200902071027.16593.jon@ffconsultancy.com> Message-ID: On Sat, Feb 7, 2009 at 5:35 AM, Michael Hutchinson wrote: > On Sat, Feb 7, 2009 at 5:27 AM, Jon Harrop wrote: > >> Has anyone managed to get the TPL running on Mono? > > It appears to be P/Invoking Windows API, so I doubt it's possible > without faking the GetCurrentProcess C API. Though you could also try Mono's implementation: http://code.google.com/p/mono-soc-2008/source/browse/#svn/trunk/parallelfx -- Michael Hutchinson http://mjhutchinson.com From alan.mcgovern at gmail.com Sat Feb 7 08:08:57 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 13:08:57 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902070919.04275.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <20090202180550.GD8859@debian.org> <117799f00902060202y2462651fs213cd1e6c79b5b22@mail.gmail.com> <200902070919.04275.jon@ffconsultancy.com> Message-ID: <117799f00902070508k51b04c38o421f59fc804b8f9e@mail.gmail.com> Hi, Could you point out the mistake i made in porting your example to C#, because it leaks forever on MS.NET too. Thanks, Alan. using System; class Leak { class Cell { public A content; public Cell next; } static Cell tail = null; static void Push(int[] x) { var tail2 = tail; var cell = new Cell { content = x, next = tail2.next }; tail2.next = cell; tail = cell; } static void Pop() { var tail3 = tail; tail3.next = tail3.next.next; } static void Main() { var cell = new Cell { content = new int[0], next = null }; cell.next = cell; tail = cell; while (true) { Push(new int[] { 1, 2, 3, 4 }); Pop(); } } } From alan.mcgovern at gmail.com Sat Feb 7 08:11:41 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 13:11:41 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902070508k51b04c38o421f59fc804b8f9e@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <20090202180550.GD8859@debian.org> <117799f00902060202y2462651fs213cd1e6c79b5b22@mail.gmail.com> <200902070919.04275.jon@ffconsultancy.com> <117799f00902070508k51b04c38o421f59fc804b8f9e@mail.gmail.com> Message-ID: <117799f00902070511v5efedac2l48062e233cb4b6c1@mail.gmail.com> Hey, Sorry, i meant to say what mistake did *you* make porting it to C# as it leaks indefinitely under MS.NET too. Alan. On Sat, Feb 7, 2009 at 1:08 PM, Alan McGovern wrote: > Hi, > > Could you point out the mistake i made in porting your example to C#, > because it leaks forever on MS.NET too. > > Thanks, > Alan. > > > using System; > > class Leak > { > class Cell > { > public A content; > public Cell next; > } > > static Cell tail = null; > > static void Push(int[] x) > { > var tail2 = tail; > var cell = new Cell { content = x, next = tail2.next }; > tail2.next = cell; > tail = cell; > } > > static void Pop() > { > var tail3 = tail; > tail3.next = tail3.next.next; > } > > static void Main() > { > var cell = new Cell { content = new int[0], next = null }; > cell.next = cell; > tail = cell; > > while (true) > { > Push(new int[] { 1, 2, 3, 4 }); > Pop(); > } > } > } > From jon at ffconsultancy.com Sat Feb 7 08:30:45 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 13:30:45 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902070511v5efedac2l48062e233cb4b6c1@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <117799f00902070508k51b04c38o421f59fc804b8f9e@mail.gmail.com> <117799f00902070511v5efedac2l48062e233cb4b6c1@mail.gmail.com> Message-ID: <200902071330.45491.jon@ffconsultancy.com> On Saturday 07 February 2009 13:11:41 you wrote: > Hey, > > Sorry, i meant to say what mistake did *you* make porting it to C# as > it leaks indefinitely under MS.NET too. I tested the code I that posted (which is not quite the code you just quoted and attributed to me) and it works fine under .NET 3.5 on x86 here. What version of .NET are you running? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From alan.mcgovern at gmail.com Sat Feb 7 08:47:01 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 13:47:01 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071330.45491.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <117799f00902070508k51b04c38o421f59fc804b8f9e@mail.gmail.com> <117799f00902070511v5efedac2l48062e233cb4b6c1@mail.gmail.com> <200902071330.45491.jon@ffconsultancy.com> Message-ID: <117799f00902070547t721bfbe5o62a3ddcf1f4cdbf8@mail.gmail.com> Well, the code you pasted in your email is definitely leaking on my system under MS.NET 3.5 x86. Did you paste the wrong code in your email? The code I pasted in my response was one i was messing around with locally, I didn't actually mean to paste it in. Alan. On Sat, Feb 7, 2009 at 1:30 PM, Jon Harrop wrote: > On Saturday 07 February 2009 13:11:41 you wrote: >> Hey, >> >> Sorry, i meant to say what mistake did *you* make porting it to C# as >> it leaks indefinitely under MS.NET too. > > I tested the code I that posted (which is not quite the code you just quoted > and attributed to me) and it works fine under .NET 3.5 on x86 here. > > What version of .NET are you running? > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > From jon at ffconsultancy.com Sat Feb 7 09:00:30 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 14:00:30 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902070547t721bfbe5o62a3ddcf1f4cdbf8@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071330.45491.jon@ffconsultancy.com> <117799f00902070547t721bfbe5o62a3ddcf1f4cdbf8@mail.gmail.com> Message-ID: <200902071400.30732.jon@ffconsultancy.com> On Saturday 07 February 2009 13:47:01 you wrote: > Well, the code you pasted in your email is definitely leaking on my > system under MS.NET 3.5 x86. Did you paste the wrong code in your > email? No, I pasted the correct code in my e-mail and I compiled it with MS Visual C# 2008 Express to run it on .NET. However, I just noticed that Mono only leaks if the code is compiled using Mono's C# compiler and *not* if you give Mono the assembly produced by MS Visual C#. Perhaps you did the opposite and tried to run the output of Mono's C# compiler under .NET without recompiling the C# source code using MS' tools? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From alan.mcgovern at gmail.com Sat Feb 7 09:04:28 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 14:04:28 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071400.30732.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071330.45491.jon@ffconsultancy.com> <117799f00902070547t721bfbe5o62a3ddcf1f4cdbf8@mail.gmail.com> <200902071400.30732.jon@ffconsultancy.com> Message-ID: <117799f00902070604g1e4a528agf8905ef18464bb9@mail.gmail.com> Hi, I found the issue. Turns out that MS.NET is hitting the boehm "Embarrassing Failure Scenario", in particular part 3: The problem is not limited to what is normally referred to as "conservative" garbage collection. *It could also be caused by having the garbage collector accidentally trace from a dead compiler-generated variable*, or by promoting a queue element to a generation that is effectively not collected. This data structure is safe only with a system that is carefully designed to prevent any form of extra space retention (cf. [Appel?]). If you compile the code without optimisations, it leaks indefinitely. If you compile with optimisations, the compiler generated variable is being optimised away and so it doesn't leak. So, as was stated before and as is stated in the boehm docs, this issue is *not* limited to conservative garbage collectors. It looks like mono could *probably* avoid the issue if it's optimisation pass was able to nuke the same dead variable. It'd be interesting to compare the IL of the version which does not leak under mono with the version that does leak and see what the difference is. Alan. On Sat, Feb 7, 2009 at 2:00 PM, Jon Harrop wrote: > On Saturday 07 February 2009 13:47:01 you wrote: >> Well, the code you pasted in your email is definitely leaking on my >> system under MS.NET 3.5 x86. Did you paste the wrong code in your >> email? > > No, I pasted the correct code in my e-mail and I compiled it with MS Visual C# > 2008 Express to run it on .NET. > > However, I just noticed that Mono only leaks if the code is compiled using > Mono's C# compiler and *not* if you give Mono the assembly produced by MS > Visual C#. Perhaps you did the opposite and tried to run the output of Mono's > C# compiler under .NET without recompiling the C# source code using MS' > tools? > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090207/35175df0/attachment-0001.html From jon at ffconsultancy.com Sat Feb 7 09:35:40 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 14:35:40 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071400.30732.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <117799f00902070547t721bfbe5o62a3ddcf1f4cdbf8@mail.gmail.com> <200902071400.30732.jon@ffconsultancy.com> Message-ID: <200902071435.40928.jon@ffconsultancy.com> On Saturday 07 February 2009 14:00:30 Jon Harrop wrote: > Perhaps you did the opposite and tried to run the output of Mono's C# > compiler under .NET without recompiling the C# source code using MS' tools? I just tested that myself and even that does not leak under .NET so I do not understand the discrepancy. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From alan.mcgovern at gmail.com Sat Feb 7 09:34:03 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 14:34:03 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071435.40928.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <117799f00902070547t721bfbe5o62a3ddcf1f4cdbf8@mail.gmail.com> <200902071400.30732.jon@ffconsultancy.com> <200902071435.40928.jon@ffconsultancy.com> Message-ID: <117799f00902070634p4a0c296cgb25e4af062d9aaa7@mail.gmail.com> You tried compiling in VS with both optimisations off and optimisations on and then running the resulting exe under MS.NET? The former leaks and the latter doesn't. I can attach both assemblies if you wish. Alan. On Sat, Feb 7, 2009 at 2:35 PM, Jon Harrop wrote: > On Saturday 07 February 2009 14:00:30 Jon Harrop wrote: > > Perhaps you did the opposite and tried to run the output of Mono's C# > > compiler under .NET without recompiling the C# source code using MS' > tools? > > I just tested that myself and even that does not leak under .NET so I do > not > understand the discrepancy. > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > _______________________________________________ > 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/20090207/4790c48f/attachment.html From jon at ffconsultancy.com Sat Feb 7 09:40:56 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 14:40:56 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902070634p4a0c296cgb25e4af062d9aaa7@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071435.40928.jon@ffconsultancy.com> <117799f00902070634p4a0c296cgb25e4af062d9aaa7@mail.gmail.com> Message-ID: <200902071440.56910.jon@ffconsultancy.com> On Saturday 07 February 2009 14:34:03 you wrote: > You tried compiling in VS with both optimisations off and optimisations on > and then running the resulting exe under MS.NET? Yes. > The former leaks and the latter doesn't. Both leak under Mono and neither leak under .NET for me. > I can attach both assemblies if you wish. Please do. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From jon at ffconsultancy.com Sat Feb 7 09:43:47 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 14:43:47 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071440.56910.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <117799f00902070634p4a0c296cgb25e4af062d9aaa7@mail.gmail.com> <200902071440.56910.jon@ffconsultancy.com> Message-ID: <200902071443.47704.jon@ffconsultancy.com> On Saturday 07 February 2009 14:40:56 Jon Harrop wrote: > On Saturday 07 February 2009 14:34:03 you wrote: > > You tried compiling in VS with both optimisations off and optimisations > > on and then running the resulting exe under MS.NET? > > Yes. > > > The former leaks and the latter doesn't. > > Both leak under Mono and neither leak under .NET for me. > > > I can attach both assemblies if you wish. > > Please do. I found the discrepancy: I can get my code to leak on .NET by turning optimizations off and running it in the debugger. If I run the unoptimized without debugging then it does not leak. Nor does the optimized version. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From alan.mcgovern at gmail.com Sat Feb 7 09:40:15 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 14:40:15 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071440.56910.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071435.40928.jon@ffconsultancy.com> <117799f00902070634p4a0c296cgb25e4af062d9aaa7@mail.gmail.com> <200902071440.56910.jon@ffconsultancy.com> Message-ID: <117799f00902070640r2ed6b881nbc69b5ebec9cacb5@mail.gmail.com> Remove the .d from the end. Google doesn't like me attaching .exe files. View the IL in reflector, you'll see they are pretty much identical, one has just optimised the while loop into a more efficient structure. leak.exe leaks when you double click on it, noleak.exe doesn't. Alan. On Sat, Feb 7, 2009 at 2:40 PM, Jon Harrop wrote: > On Saturday 07 February 2009 14:34:03 you wrote: > > You tried compiling in VS with both optimisations off and optimisations > on > > and then running the resulting exe under MS.NET? > > Yes. > > > The former leaks and the latter doesn't. > > Both leak under Mono and neither leak under .NET for me. > > > I can attach both assemblies if you wish. > > Please do. > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090207/008ca5a4/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: leak.exe.d Type: application/octet-stream Size: 5120 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090207/008ca5a4/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: noleak.exe.d Type: application/octet-stream Size: 5120 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090207/008ca5a4/attachment-0003.obj From jon at ffconsultancy.com Sat Feb 7 10:10:46 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 7 Feb 2009 15:10:46 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902070604g1e4a528agf8905ef18464bb9@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071400.30732.jon@ffconsultancy.com> <117799f00902070604g1e4a528agf8905ef18464bb9@mail.gmail.com> Message-ID: <200902071510.46590.jon@ffconsultancy.com> On Saturday 07 February 2009 14:04:28 you wrote: > If you compile the code without optimisations, it leaks indefinitely. If > you compile with optimisations, the compiler generated variable is being > optimised away and so it doesn't leak. Can you clarify: are you referring to Mono/gmcs or .NET/VC# here? > So, as was stated before and as is stated in the boehm docs, this issue is > *not* limited to conservative garbage collectors. Yes. However, conveying bogus roots to the GC is most certainly a serious bug. Fortunately, it is easily fixed: just nullify reference types when liveness analysis proves they are no longer reachable. In this case, I suspect Mono is leaving a pointer to an unreachable temporary in the stack frame of the "Main" function and the conservative scan has to assume that it is a genuine root. Unfortunately, that bogus root does not correspond to anything in the C# source code so the programmers only hope to avoid this bug is to randomly rewrite their code and hope that the compiler's rearrangements do not reintroduce the problem (e.g. by inlining). -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From tcmichals at yahoo.com Sat Feb 7 10:07:03 2009 From: tcmichals at yahoo.com (tcmichals) Date: Sat, 7 Feb 2009 07:07:03 -0800 (PST) Subject: [Mono-list] AOT with 2.0.1 In-Reply-To: <19e010960902062001g5646d96r21c44e25e009f10e@mail.gmail.com> References: <21874279.post@talk.nabble.com> <19e010960902062001g5646d96r21c44e25e009f10e@mail.gmail.com> Message-ID: <21889280.post@talk.nabble.com> Yes, this is the same version and os SUSE 11.1 I was following the URL at http://www.mono-project.com/AOT I got the same error.mono --aot=full /usr/lib/mono/2.0/mscorlib.dll Got a seg fault. Mono 2.2 OpenSUSE11.1 Thanks, William L. On Fri, Feb 6, 2009 at 11:09 PM, tcmichals wrote: > > I was trying out aot. using the instructions on the web site: > # Do a full AOT: > $ mono --aot=full mscorlib.dll > $ mono --aot=full sample.exe > > # Run, but request that Mono never tries to JIT: > $ mono --full-aot sample.exe > > I tried mono --aot=full /usr/lib/mono/1.0/mscorlib.dll > and get a segfault, I'm doing something wrong? > -- View this message in context: http://www.nabble.com/AOT-with-2.0.1-tp21874279p21889280.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Sat Feb 7 10:24:06 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 15:24:06 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <200902071510.46590.jon@ffconsultancy.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071400.30732.jon@ffconsultancy.com> <117799f00902070604g1e4a528agf8905ef18464bb9@mail.gmail.com> <200902071510.46590.jon@ffconsultancy.com> Message-ID: <117799f00902070724x67233e7bkd09115a65f13e303@mail.gmail.com> Hi, Can you clarify: are you referring to Mono/gmcs or .NET/VC# here? I have always been talking about VS/.NET. In this case, I suspect Mono is leaving a pointer to an unreachable > temporary > in the stack frame of the "Main" function and the conservative scan has to > assume that it is a genuine root. I suspect this is exactly what was stated in the third response on this thread. > Unfortunately, that bogus root does not > correspond to anything in the C# source code so the programmers only hope > to > avoid this bug is to randomly rewrite their code and hope that the > compiler's > rearrangements do not reintroduce the problem (e.g. by inlining). No need to do that, just follow the documented workaround and null the 'next' pointer when detaching from the list. static void pop() { var current = tail; var next = tail.next; var nextnext = tail.next.next; current.next = nextnext; next.next = null; } This fixes the issue under MS.NET and under Mono. Alan. > > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090207/b5b7ce04/attachment.html From alan.mcgovern at gmail.com Sat Feb 7 10:25:06 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sat, 7 Feb 2009 15:25:06 +0000 Subject: [Mono-list] Memory leak In-Reply-To: <117799f00902070724x67233e7bkd09115a65f13e303@mail.gmail.com> References: <200902010322.02699.jon@ffconsultancy.com> <200902071400.30732.jon@ffconsultancy.com> <117799f00902070604g1e4a528agf8905ef18464bb9@mail.gmail.com> <200902071510.46590.jon@ffconsultancy.com> <117799f00902070724x67233e7bkd09115a65f13e303@mail.gmail.com> Message-ID: <117799f00902070725r2e05fdem3cb17365758859da@mail.gmail.com> Also, can you ensure that you are not compiling under 'release' mode when trying to replicate my results. You need to be in Debug mode I believe. Alan. On Sat, Feb 7, 2009 at 3:24 PM, Alan McGovern wrote: > Hi, > > Can you clarify: are you referring to Mono/gmcs or .NET/VC# here? > > I have always been talking about VS/.NET. > > In this case, I suspect Mono is leaving a pointer to an unreachable >> temporary >> in the stack frame of the "Main" function and the conservative scan has to >> assume that it is a genuine root. > > > I suspect this is exactly what was stated in the third response on this > thread. > > >> Unfortunately, that bogus root does not >> correspond to anything in the C# source code so the programmers only hope >> to >> avoid this bug is to randomly rewrite their code and hope that the >> compiler's >> rearrangements do not reintroduce the problem (e.g. by inlining). > > No need to do that, just follow the documented workaround and null the > 'next' pointer when detaching from the list. > > > static void pop() > { > var current = tail; > var next = tail.next; > var nextnext = tail.next.next; > current.next = nextnext; > next.next = null; > } > > This fixes the issue under MS.NET and under Mono. > > Alan. > > >> >> >> -- >> Dr Jon Harrop, Flying Frog Consultancy Ltd. >> http://www.ffconsultancy.com/?e >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090207/d6d57ab7/attachment.html From tcmichals at yahoo.com Sat Feb 7 14:59:31 2009 From: tcmichals at yahoo.com (tcmichals) Date: Sat, 7 Feb 2009 11:59:31 -0800 (PST) Subject: [Mono-list] AOT with 2.0.1 In-Reply-To: <21874279.post@talk.nabble.com> References: <21874279.post@talk.nabble.com> Message-ID: <21892232.post@talk.nabble.com> Also just tested with 2.2 tcmichals at linux-kx0n:~/exampleMono> mono -O=all --full-aot helloWorld.exe Failed to load AOT module '/usr/lib/mono/1.0/mscorlib.dll.so' in aot-only mode. tcmichals at linux-kx0n:~/exampleMono> mono -O=all helloWorld.exe Hello World tcmichals at linux-kx0n:~/exampleMono> mono -O=all --aot --full-aot helloWorld.exe ** ERROR **: Attempting to allocate from the global code manager while running with --aot-only. aborting... ** (process:4568): WARNING (recursed) **: Thread (nil) may have been prematurely finalized Stacktrace: ** (process:4568): WARNING (recursed) **: Thread (nil) may have been prematurely finalized Mono JIT compiler version 2.2 (tarball Fri Jan 9 17:41:21 UTC 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com -- View this message in context: http://www.nabble.com/AOT-with-2.0.1-tp21874279p21892232.html Sent from the Mono - General mailing list archive at Nabble.com. From angarato.surion at gmail.com Sat Feb 7 17:00:21 2009 From: angarato.surion at gmail.com (Angarato Surion) Date: Sat, 7 Feb 2009 14:00:21 -0800 (PST) Subject: [Mono-list] how can i make the dht work in monotorrent/bitshar Message-ID: <21892122.post@talk.nabble.com> how can i make the dht work in monotorrent/bitsharp ? only from enigne.dhtengine.start(); ? -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html Sent from the Mono - General mailing list archive at Nabble.com. From welemon at gmail.com Sat Feb 7 21:56:50 2009 From: welemon at gmail.com (william lee) Date: Sun, 8 Feb 2009 10:56:50 +0800 Subject: [Mono-list] mono Trunk in OpenSUSE11.1 i586 Message-ID: <19e010960902071856h5a49a967j9c1570429c451d28@mail.gmail.com> Hi,I'm trying to get the trunk version of mono to test my app, but failed to add the repository. I found there is a trunk binay download at: http://mono.ximian.com/monobuild/snapshot/download-trunk/ to tell me to add into software repository. I added http://mono.ximian.com/monobuild/snapshot/download-trunk/suse-110-i586 in my OpenSUSE 11.1 Yast. But it complains "unable to create Repository from......". I guess it only work out for SUSE11.0, right? Can I get the trunk build without build from source any way, for 11.1? I appreciate it. Thanks, William L. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090208/4475b41a/attachment.html From stevelukemccarthy at gmail.com Sat Feb 7 23:47:47 2009 From: stevelukemccarthy at gmail.com (stevemcc) Date: Sat, 7 Feb 2009 20:47:47 -0800 (PST) Subject: [Mono-list] Learning Mono just like .NET? Message-ID: <21895778.post@talk.nabble.com> So I am a college student interested in programming. I've done some programming, just a little bit in java, python, VB, and php. I noticed theres a lot of demand for .NET developers and I use linux most of the time. Is mono close enough .net that learning mono would prepare me for an eventually job that might require me to develop using .NET and windows. Or are they close, but still different beasts? -- View this message in context: http://www.nabble.com/Learning-Mono-just-like-.NET--tp21895778p21895778.html Sent from the Mono - General mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Sun Feb 8 00:24:54 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sun, 8 Feb 2009 00:24:54 -0500 Subject: [Mono-list] Learning Mono just like .NET? In-Reply-To: <21895778.post@talk.nabble.com> References: <21895778.post@talk.nabble.com> Message-ID: On Sat, Feb 7, 2009 at 11:47 PM, stevemcc wrote: > > So I am a college student interested in programming. I've done some > programming, just a little bit in java, python, VB, and php. I noticed > theres a lot of demand for .NET developers and I use linux most of the time. > Is mono close enough .net that learning mono would prepare me for an > eventually job that might require me to develop using .NET and windows. Or > are they close, but still different beasts? It's entirely possible to write an app on .NET and deploy the compiled binary *unmodified* on Mono, or vice versa. Close enough for you? :-) Although you'd have to be aware of the differences between the platforms and the platform-specific APIs that are available on them, all the core knowledge is completely transferable either way. GUI toolkits and the IDEs are the main differences, but that said, I'm (experimentally) running MonoDevelop on Windows/.NET using GTK# right now. -- Michael Hutchinson http://mjhutchinson.com From awilliam at whitemice.org Sun Feb 8 00:52:43 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Sun, 08 Feb 2009 00:52:43 -0500 Subject: [Mono-list] Learning Mono just like .NET? In-Reply-To: <21895778.post@talk.nabble.com> References: <21895778.post@talk.nabble.com> Message-ID: <1234072363.20635.22.camel@linux-m3mt> On Sat, 2009-02-07 at 20:47 -0800, stevemcc wrote: > So I am a college student interested in programming. I've done some > programming, just a little bit in java, python, VB, and php. I noticed > theres a lot of demand for .NET developers and I use linux most of the time. > Is mono close enough .net that learning mono would prepare me for an > eventually job that might require me to develop using .NET and windows. Absolutely, yes. Especially since there is effectively no Mono specific / .NET-on-LINUX documentation. I've used just the O'Reilly .NET related texts and been very productive with Mono. > Or are they close, but still different beasts? There are platform specific bits; but the bulk of your code/programming will be unaffected by platform. The primary issue will be with OS integration (like System.Management) and issues with UI stuff (but widget libraries are always a pain and a moving target). Also there are some parts of .NET that aren't available in Mono (like WCF, WPF, WWF, CAS, & System.Management) as well as the occasional thing that just won't build (like DbLinq ). From xsloader at xs.guild.gs Sun Feb 8 02:54:15 2009 From: xsloader at xs.guild.gs (xsloader) Date: Sat, 7 Feb 2009 23:54:15 -0800 (PST) Subject: [Mono-list] about quoted 2byte-characters in System.Data.Odbc.OdbcCommand Message-ID: <21896672.post@talk.nabble.com> I'm writing a data converter using ODBC. Following is a part of my code: using System.Data.Odbc; OdbcConnection connection=new OdbcConnection("Driver={Microsoft Access Driver (*.mdb)};DBQ=a.mdb"); connection.Open(); reader=new OdbcCommand("select * from \"?\"",connection).ExecuteReader(); reader.Read(); Creation of reader fails on Mono 2.0, but OK in 1.9.1. To analyze the problem, I modified the source code of libmdbodbc.so to show the query string. On 1.9.1, it showed: select * from "?" but on 2.0, it showed: select * from "'-?" These two strings are completely different. So I tried to use old version to determine what change had caused this difference. Firstly I used System.Data.dll in the eariest snap shot http://mono.ximian.com/daily/monocharge-20080615.tar.gz, but it showed select * from "'-?". Nextly I tried to compile more early version using SVN, but an error has occurred. --- root at xxxxxx:/work/misc/lib/mono/mcs/class/System.Data# make NO_DIR_CHECK=1 MONO_VERSION=2.0 FRAMEWORK_VERSION=2.0 EXTERNAL_MCS=/usr/bin/mcs EXTERNAL_RUNTIME=/usr/lib/mono ... make[4]: Entering directory `/work/misc/lib/mono/mcs/mcs' MONO_PATH="../class/lib/basic:$MONO_PATH" false ../class/lib/basic/mcs.exe /codepage:65001 -d:GMCS_SOURCE -d:NET_1_1 -d:ONLY_1_1 -debug -target:exe -out:gmcs.exe cs-parser.cs @gmcs.exe.sources make[4]: *** [../class/lib/net_1_1_bootstrap/gmcs.exe] Error 1 ... --- So I could not build old source. Therefore I could not determine the difference nor fix it. In this case I won't be able to update System.Data.dll from 1.9.1 even though other modules are upgraded. Any help is welcomed. -- View this message in context: http://www.nabble.com/about-quoted-2byte-characters-in-System.Data.Odbc.OdbcCommand-tp21896672p21896672.html Sent from the Mono - General mailing list archive at Nabble.com. From dpldobrev at yahoo.com Sun Feb 8 06:36:30 2009 From: dpldobrev at yahoo.com (Dimitar Dobrev) Date: Sun, 8 Feb 2009 03:36:30 -0800 (PST) Subject: [Mono-list] Exception at Regex.Match (string input, Int32 startat) Message-ID: <21897949.post@talk.nabble.com> I am trying to run http://www.open-dent.com OpenDental 6.4 from http://www.open-dent.com/manual/developers.html source . It builds successfully, however, at startup I receive the following exception: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 startat) [0x00000] in /home/dimitar/Programs/mono-2.2/mcs/class/System/Assembly/AssemblyInfo.cs:1 at System.Text.RegularExpressions.Regex.IsMatch (System.String input, Int32 startat) [0x00000] in /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:332 at System.Text.RegularExpressions.Regex.IsMatch (System.String input) [0x00000] in /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:327 at System.Text.RegularExpressions.Regex.IsMatch (System.String input, System.String pattern, RegexOptions options) [0x00008] in /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:119 at System.Text.RegularExpressions.Regex.IsMatch (System.String input, System.String pattern) [0x00000] in /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:113 at CodeBase.ODEnvironment.Is64BitOperatingSystem () [0x00000] at OpenDental.ContrDocs..ctor () [0x00000] at (wrapper remoting-invoke-with-check) OpenDental.ContrDocs:.ctor () at OpenDental.FormOpenDental.InitializeComponent () [0x00000] at OpenDental.FormOpenDental..ctor () [0x00000] at (wrapper remoting-invoke-with-check) OpenDental.FormOpenDental:.ctor () at OpenDental.FormOpenDental.Main () [0x00000] On Windows the program builds, runs and works fine. Linux: Ubuntu 8.10 Mono: 2.2 Windows: XP SP3 .NET: 3.5 SP1 -- View this message in context: http://www.nabble.com/Exception-at-Regex.Match-%28string-input%2C-Int32-startat%29-tp21897949p21897949.html Sent from the Mono - General mailing list archive at Nabble.com. From fejj at novell.com Sun Feb 8 08:11:50 2009 From: fejj at novell.com (Jeffrey Stedfast) Date: Sun, 08 Feb 2009 08:11:50 -0500 Subject: [Mono-list] Learning Mono just like .NET? In-Reply-To: <21895778.post@talk.nabble.com> References: <21895778.post@talk.nabble.com> Message-ID: <498EDA16.7000906@novell.com> stevemcc wrote: > So I am a college student interested in programming. I've done some > programming, just a little bit in java, python, VB, and php. I noticed > theres a lot of demand for .NET developers and I use linux most of the time. > Is mono close enough .net that learning mono would prepare me for an > eventually job that might require me to develop using .NET and windows. Or > are they close, but still different beasts? > As Michael Hutchinson has already said, they should be close enough to not matter. As a possible added bonus to learning Mono, more and more .NET development houses may begin to favor new recruits with Linux/Mono experience because Linux is becoming an important platform to support (not to mention Mac). We've already seen evidence of companies porting their .NET software over to Linux to run on Mono to either save themselves a lot of money (e.g. custom web apps), or to reach a wider market (selling their .NET apps for Mac/Linux). Jeff From xsloader at xs.guild.gs Sun Feb 8 10:36:23 2009 From: xsloader at xs.guild.gs (xsloader) Date: Sun, 8 Feb 2009 07:36:23 -0800 (PST) Subject: [Mono-list] Embedded Databases in .NET/Mono In-Reply-To: <21899885.post@talk.nabble.com> References: <21899885.post@talk.nabble.com> Message-ID: <21900035.post@talk.nabble.com> Sienna wrote: > > Does anyone know an embedded database, which is easy to install (or does > not require installation at all), and allows SQL-style queries, that runs > on both .NET 2.0 and Mono without touching the code? > Use unixODBC+libsqliteodbc.so. -- View this message in context: http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p21900035.html Sent from the Mono - General mailing list archive at Nabble.com. From xsloader at xs.guild.gs Sun Feb 8 10:48:14 2009 From: xsloader at xs.guild.gs (xsloader) Date: Sun, 8 Feb 2009 07:48:14 -0800 (PST) Subject: [Mono-list] about quoted 2byte-characters in System.Data.Odbc.OdbcCommand In-Reply-To: <21896672.post@talk.nabble.com> References: <21896672.post@talk.nabble.com> Message-ID: <21900119.post@talk.nabble.com> Finally I've got to know the reason. >From r98771, System.Data.Odbc.* uses Unicode version of functions in libunixodbc.so. As libmdbodbc.so does not implement SQLExecDirectW and so on, character-code convertion occurs in SQLExecDirectW in libunixodbc.so. In the convertion characters become corrupted. Actually the reason why I could use ansi multibyte characters in System.Data.Odbc.* is that libmdbodbc.so treats ansi characters as UTF8. So this problem is not of Mono's side. Sorry for posting. -- View this message in context: http://www.nabble.com/about-quoted-2byte-characters-in-System.Data.Odbc.OdbcCommand-tp21896672p21900119.html Sent from the Mono - General mailing list archive at Nabble.com. From abe.gillespie at gmail.com Sun Feb 8 11:07:39 2009 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Sun, 8 Feb 2009 09:07:39 -0700 Subject: [Mono-list] Embedded Databases in .NET/Mono In-Reply-To: <21900035.post@talk.nabble.com> References: <21899885.post@talk.nabble.com> <21900035.post@talk.nabble.com> Message-ID: <8EC39FD6-8967-4302-8D27-1164A3FCE47D@gmail.com> You shouldn't even need ODBC. Sqlite ships .Net assemblies. On Feb 8, 2009, at 8:36 AM, xsloader wrote: > > > Sienna wrote: >> >> Does anyone know an embedded database, which is easy to install (or >> does >> not require installation at all), and allows SQL-style queries, >> that runs >> on both .NET 2.0 and Mono without touching the code? >> > Use unixODBC+libsqliteodbc.so. > > -- > View this message in context: http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p21900035.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From sshaw at decriptor.com Sun Feb 8 15:29:26 2009 From: sshaw at decriptor.com (Stephen Shaw) Date: Sun, 8 Feb 2009 13:29:26 -0700 Subject: [Mono-list] mono 2.2 on ubuntu? In-Reply-To: References: Message-ID: On Fri, Feb 6, 2009 at 8:43 AM, B?lint Kardos wrote: > Hi, > does anyone know a repository where i can find the latest mono for ubuntu? > thanks, They are currently working on mono 2.0.1. I think they were talking about skipping 2.2 and going straight to 2.4 once they finish 2.0.1 Stephen From balint at cardos.hu Sun Feb 8 15:39:30 2009 From: balint at cardos.hu (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Sun, 8 Feb 2009 21:39:30 +0100 Subject: [Mono-list] mono 2.2 on ubuntu? In-Reply-To: References: Message-ID: Hi,thanks for the answer; it's always a pain working on ubuntu with mono :/ anyway, I've alien-ed up the 1.9.x RedHot packages, will the OpenSuse version work for with it? I can't test it anywhere, i just have a development & a production environment currently. Any hints? thanks, b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Sun, Feb 8, 2009 at 21:29, Stephen Shaw wrote: > On Fri, Feb 6, 2009 at 8:43 AM, B?lint Kardos wrote: > > Hi, > > does anyone know a repository where i can find the latest mono for > ubuntu? > > thanks, > > They are currently working on mono 2.0.1. I think they were talking > about skipping 2.2 and going straight to 2.4 once they finish 2.0.1 > > > Stephen > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090208/c4d934fd/attachment-0001.html From alan.mcgovern at gmail.com Sun Feb 8 17:15:35 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Sun, 8 Feb 2009 22:15:35 +0000 Subject: [Mono-list] how can i make the dht work in monotorrent/bitshar In-Reply-To: <21892122.post@talk.nabble.com> References: <21892122.post@talk.nabble.com> Message-ID: <117799f00902081415v60e40e5dsdab0f974b7c876f5@mail.gmail.com> Yes, that should be all you have to do to activate DHT. Also make sure that you have forwarded the correct ports. If you use monotorrent at port 12345, you need to forward 12345 in both UDP and TCP. DHT requires the UDP port. Alan. On Sat, Feb 7, 2009 at 10:00 PM, Angarato Surion wrote: > > how can i make the dht work in monotorrent/bitsharp ? > only from enigne.dhtengine.start(); ? > > -- > View this message in context: > http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090208/74c48c80/attachment.html From kumpera at gmail.com Mon Feb 9 07:01:14 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Mon, 9 Feb 2009 10:01:14 -0200 Subject: [Mono-list] Exception at Regex.Match (string input, Int32 startat) In-Reply-To: <21897949.post@talk.nabble.com> References: <21897949.post@talk.nabble.com> Message-ID: <8cca42d80902090401n102f3f66pd723fbba79b3e19f@mail.gmail.com> Please fill a bug report on this issue. On Sun, Feb 8, 2009 at 9:36 AM, Dimitar Dobrev wrote: > > I am trying to run http://www.open-dent.com OpenDental 6.4 from > http://www.open-dent.com/manual/developers.html source . It builds > successfully, however, at startup I receive the following exception: > > Unhandled Exception: System.NullReferenceException: Object reference not > set > to an instance of an object > at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 > startat) [0x00000] in > /home/dimitar/Programs/mono-2.2/mcs/class/System/Assembly/AssemblyInfo.cs:1 > at System.Text.RegularExpressions.Regex.IsMatch (System.String input, > Int32 startat) [0x00000] in > > /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:332 > at System.Text.RegularExpressions.Regex.IsMatch (System.String input) > [0x00000] in > > /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:327 > at System.Text.RegularExpressions.Regex.IsMatch (System.String input, > System.String pattern, RegexOptions options) [0x00008] in > > /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:119 > at System.Text.RegularExpressions.Regex.IsMatch (System.String input, > System.String pattern) [0x00000] in > > /home/dimitar/Programs/mono-2.2/mcs/class/System/System.Text.RegularExpressions/Regex.cs:113 > at CodeBase.ODEnvironment.Is64BitOperatingSystem () [0x00000] > at OpenDental.ContrDocs..ctor () [0x00000] > at (wrapper remoting-invoke-with-check) OpenDental.ContrDocs:.ctor () > at OpenDental.FormOpenDental.InitializeComponent () [0x00000] > at OpenDental.FormOpenDental..ctor () [0x00000] > at (wrapper remoting-invoke-with-check) OpenDental.FormOpenDental:.ctor () > at OpenDental.FormOpenDental.Main () [0x00000] > > On Windows the program builds, runs and works fine. > > Linux: Ubuntu 8.10 > Mono: 2.2 > Windows: XP SP3 > .NET: 3.5 SP1 > -- > View this message in context: > http://www.nabble.com/Exception-at-Regex.Match-%28string-input%2C-Int32-startat%29-tp21897949p21897949.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090209/309191a4/attachment.html From angarato.surion at gmail.com Mon Feb 9 16:44:35 2009 From: angarato.surion at gmail.com (Angarato Surion) Date: Mon, 9 Feb 2009 13:44:35 -0800 (PST) Subject: [Mono-list] how can i make the dht work in monotorrent/bitshar In-Reply-To: <117799f00902081415v60e40e5dsdab0f974b7c876f5@mail.gmail.com> References: <21892122.post@talk.nabble.com> <117799f00902081415v60e40e5dsdab0f974b7c876f5@mail.gmail.com> Message-ID: <21922684.post@talk.nabble.com> i need to forward the port 12345 ? this port dht uses? or the port the same with bitsharo connects? Alan McGovern-2 wrote: > > Yes, that should be all you have to do to activate DHT. Also make sure > that > you have forwarded the correct ports. If you use monotorrent at port > 12345, > you need to forward 12345 in both UDP and TCP. DHT requires the UDP port. > > Alan. > > On Sat, Feb 7, 2009 at 10:00 PM, Angarato Surion > wrote: > >> >> how can i make the dht work in monotorrent/bitsharp ? >> only from enigne.dhtengine.start(); ? >> >> -- >> View this message in context: >> http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> 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 > > -- View this message in context: http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21922684.html Sent from the Mono - General mailing list archive at Nabble.com. From stifu at free.fr Mon Feb 9 16:53:49 2009 From: stifu at free.fr (Stifu) Date: Mon, 9 Feb 2009 13:53:49 -0800 (PST) Subject: [Mono-list] Tips for getting started with mono? Want to run .NET apps on Windows and Mac. In-Reply-To: <21922349.post@talk.nabble.com> References: <21922349.post@talk.nabble.com> Message-ID: <21922885.post@talk.nabble.com> Quick answer: you can just code and compile on Windows, then run on Mac, with no modification whatsoever. You can also make bundles for Mac, to make your apps more user friendly. But I'll leave that for Mac users to explain. WATYF wrote: > > I'd like to know if there's a place I can find some "getting started" tips > for writing apps for both Windows and Mac (I suppose Linux, too, but > that's not a target platform). > > Right now, I write in VB.NET for Windows. Someone is asking if I can > develop an app that will work on Windows and Macs, to which I quickly > responded, "No." :oP But, for kicks, I figured I'd look into it, and it > appears that it might not be too much of a pain to try mono. So my > question is... what exactly does it take to make an app for both Windows > and Mac? > > Do I have to use two different IDE's? > > Do I have to do any "conversion" of the code after I'm done writing it on > the Windows platform? > > What about the installer? I'm assuming that the VS.NET Setup and > Deployment project won't work on a Mac, so how do I create an installer > for Macs (especially one that will check to see if they have mono > installed and tell them to download it if they don't)? > > > This is my first foray into this type of thing, so talk real slow. :o) > > WATYF > -- View this message in context: http://www.nabble.com/Tips-for-getting-started-with-mono--Want-to-run-.NET-apps-on-Windows-and-Mac.-tp21922349p21922885.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Mon Feb 9 18:03:15 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Mon, 9 Feb 2009 23:03:15 +0000 Subject: [Mono-list] how can i make the dht work in monotorrent/bitshar In-Reply-To: <21922684.post@talk.nabble.com> References: <21892122.post@talk.nabble.com> <117799f00902081415v60e40e5dsdab0f974b7c876f5@mail.gmail.com> <21922684.post@talk.nabble.com> Message-ID: <117799f00902091503jf42f9f4r77b42af749a7a5f9@mail.gmail.com> I was using 12345 as an example. Whatever port you use in your application, you need to forward it in both UDP and TCP on your router. Alan. On Mon, Feb 9, 2009 at 9:44 PM, Angarato Surion wrote: > > i need to forward the port 12345 ? this port dht uses? > > or the port the same with bitsharo connects? > > Alan McGovern-2 wrote: > > > > Yes, that should be all you have to do to activate DHT. Also make sure > > that > > you have forwarded the correct ports. If you use monotorrent at port > > 12345, > > you need to forward 12345 in both UDP and TCP. DHT requires the UDP port. > > > > Alan. > > > > On Sat, Feb 7, 2009 at 10:00 PM, Angarato Surion > > wrote: > > > >> > >> how can i make the dht work in monotorrent/bitsharp ? > >> only from enigne.dhtengine.start(); ? > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21892122.html > >> Sent from the Mono - General mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> 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 > > > > > > -- > View this message in context: > http://www.nabble.com/how-can-i-make-the-dht-work-in-monotorrent-bitshar-tp21892122p21922684.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090209/5b6ccabc/attachment.html From bnicolotti at siapcn.it Tue Feb 10 12:20:23 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 09:20:23 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu Message-ID: <21937603.post@talk.nabble.com> Hi, I've installed mono, and xsp (not yet mod_mono) following the instruction here: http://ubuntuforums.org/showthread.php?t=803743 in view of using mod_mono together with php on ubuntu server 8.04. This is to migrate a web service that access a db2 database. I've also installed db2exc from ubuntu repository as said here: http://www.ubuntu.com/partners/ibm/db2 and as said here: http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html I've added the library path with the command: sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 But if I try to compile a file that makes use of the namespace IBM.Data.DB2 I got: siap at LxPC54:~/src/test$ gmcs helloDB2.cs helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference? helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not be found. Are you missing a using directive or an assembly reference? Compilation failed: 2 error(s), 0 warnings could someone help me? Many thanks Best regards -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html Sent from the Mono - General mailing list archive at Nabble.com. From sanfordarmstrong at gmail.com Tue Feb 10 12:42:24 2009 From: sanfordarmstrong at gmail.com (Sandy Armstrong) Date: Tue, 10 Feb 2009 09:42:24 -0800 Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <21937603.post@talk.nabble.com> References: <21937603.post@talk.nabble.com> Message-ID: <4991BC80.3030701@gmail.com> On 02/10/2009 09:20 AM, Bartolomeo Nicolotti wrote: > But if I try to compile a file that makes use of the namespace IBM.Data.DB2 > I got: > > siap at LxPC54:~/src/test$ gmcs helloDB2.cs > helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not > exist in the namespace `System'. Are you missing an assembly reference? > helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not > be found. Are you missing a using directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings Just like you need to add references to a Visual Studio project in order for it to build, you need to specify references on the command line when you build with gmcs. For example, to reference the System.Data assembly, you'd do something like gmcs -r:System.Data helloDB2.cs You probably have other references you'll need to add, too? If you look at the references in your Visual Studio project, it should give you a clue. It might be easier to just try opening your Visual Studio solution in MonoDevelop and build from there. Best, Sandy From bnicolotti at siapcn.it Tue Feb 10 12:53:56 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 09:53:56 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <4991BC80.3030701@gmail.com> References: <21937603.post@talk.nabble.com> <4991BC80.3030701@gmail.com> Message-ID: <21939043.post@talk.nabble.com> Sandy Armstrong wrote: > > On 02/10/2009 09:20 AM, Bartolomeo Nicolotti wrote: >> But if I try to compile a file that makes use of the namespace >> IBM.Data.DB2 >> I got: >> >> siap at LxPC54:~/src/test$ gmcs helloDB2.cs >> helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does >> not >> exist in the namespace `System'. Are you missing an assembly reference? >> helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could >> not >> be found. Are you missing a using directive or an assembly reference? >> Compilation failed: 2 error(s), 0 warnings > > Just like you need to add references to a Visual Studio project in order > for it to build, you need to specify references on the command line when > you build with gmcs. For example, to reference the System.Data > assembly, you'd do something like > > gmcs -r:System.Data helloDB2.cs > > You probably have other references you'll need to add, too? If you look > at the references in your Visual Studio project, it should give you a > clue. It might be easier to just try opening your Visual Studio > solution in MonoDevelop and build from there. > > Best, > Sandy > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > I think I've to say where's the assembly is, something like: http://www.mono-project.com/Assemblies_and_the_GAC but I don't see any assembly under /opt/ibm /opt/ibm/db2exc/V9.5/ -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939043.html Sent from the Mono - General mailing list archive at Nabble.com. From bojanr at brandeis.edu Tue Feb 10 12:57:45 2009 From: bojanr at brandeis.edu (Bojan Rajkovic) Date: Tue, 10 Feb 2009 12:57:45 -0500 Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <21937603.post@talk.nabble.com> References: <21937603.post@talk.nabble.com> Message-ID: <001801c98ba9$1438cb10$3caa6130$@edu> You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs command line. You should be compiling your code as follows: gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs. If your Mono libs are installed somewhere different (if you compiled from source, they may be in /usr/local/lib/mono), you'll need to change that part of the path. --Bojan -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Bartolomeo Nicolotti Sent: Tuesday, February 10, 2009 12:20 PM To: mono-list at lists.ximian.com Subject: [Mono-list] IBM.Data.DB2 on ubuntu Hi, I've installed mono, and xsp (not yet mod_mono) following the instruction here: http://ubuntuforums.org/showthread.php?t=803743 in view of using mod_mono together with php on ubuntu server 8.04. This is to migrate a web service that access a db2 database. I've also installed db2exc from ubuntu repository as said here: http://www.ubuntu.com/partners/ibm/db2 and as said here: http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html I've added the library path with the command: sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 But if I try to compile a file that makes use of the namespace IBM.Data.DB2 I got: siap at LxPC54:~/src/test$ gmcs helloDB2.cs helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference? helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not be found. Are you missing a using directive or an assembly reference? Compilation failed: 2 error(s), 0 warnings could someone help me? Many thanks Best regards -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From bnicolotti at siapcn.it Tue Feb 10 13:08:58 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 10:08:58 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <21937603.post@talk.nabble.com> References: <21937603.post@talk.nabble.com> Message-ID: <21939280.post@talk.nabble.com> Bartolomeo Nicolotti wrote: > > Hi, > > I've installed mono, and xsp (not yet mod_mono) following the instruction > here: > > http://ubuntuforums.org/showthread.php?t=803743 > > in view of using mod_mono together with php on ubuntu server 8.04. > > This is to migrate a web service that access a db2 database. > > I've also installed db2exc from ubuntu repository as said here: > > http://www.ubuntu.com/partners/ibm/db2 > > and as said here: > > http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html > > I've added the library path with the command: > > sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 > > But if I try to compile a file that makes use of the namespace > IBM.Data.DB2 I got: > > siap at LxPC54:~/src/test$ gmcs helloDB2.cs > helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does > not exist in the namespace `System'. Are you missing an assembly > reference? > helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not > be found. Are you missing a using directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings > > > could someone help me? > > Many thanks > > Best regards > siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference? Compilation failed: 1 error(s), 0 warnings -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939280.html Sent from the Mono - General mailing list archive at Nabble.com. From bojanr at brandeis.edu Tue Feb 10 13:16:35 2009 From: bojanr at brandeis.edu (Bojan Rajkovic) Date: Tue, 10 Feb 2009 13:16:35 -0500 Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <21939280.post@talk.nabble.com> References: <21937603.post@talk.nabble.com> <21939280.post@talk.nabble.com> Message-ID: <003901c98bab$b5562540$20026fc0$@edu> Bartolomeo Nicolotti wrote: > siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll > helloDB2.cs > helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not > exist in the namespace `System'. Are you missing an assembly reference? > Compilation failed: 1 error(s), 0 warnings Woops. Forgot to mention the -r:System.Data, just like Sandy said. --Bojan From bnicolotti at siapcn.it Tue Feb 10 13:21:23 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 10:21:23 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <001801c98ba9$1438cb10$3caa6130$@edu> References: <21937603.post@talk.nabble.com> <001801c98ba9$1438cb10$3caa6130$@edu> Message-ID: <21939283.post@talk.nabble.com> Bojan Rajkovic wrote: > > You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs > command > line. > > You should be compiling your code as follows: gmcs > -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs. > If your Mono libs are installed somewhere different (if you compiled from > source, they may be in /usr/local/lib/mono), you'll need to change that > part > of the path. > > --Bojan > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Bartolomeo > Nicolotti > Sent: Tuesday, February 10, 2009 12:20 PM > To: mono-list at lists.ximian.com > Subject: [Mono-list] IBM.Data.DB2 on ubuntu > > > Hi, > > I've installed mono, and xsp (not yet mod_mono) following the instruction > here: > > http://ubuntuforums.org/showthread.php?t=803743 > > in view of using mod_mono together with php on ubuntu server 8.04. > > This is to migrate a web service that access a db2 database. > > I've also installed db2exc from ubuntu repository as said here: > > http://www.ubuntu.com/partners/ibm/db2 > > and as said here: > > http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html > > I've added the library path with the command: > > sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 > > But if I try to compile a file that makes use of the namespace > IBM.Data.DB2 > I got: > > siap at LxPC54:~/src/test$ gmcs helloDB2.cs > helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does > not > exist in the namespace `System'. Are you missing an assembly reference? > helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not > be found. Are you missing a using directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings > > > could someone help me? > > Many thanks > > Best regards > -- > View this message in context: > http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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 > > siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference? Compilation failed: 1 error(s), 0 warnings then siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs helloDB2.cs(14,39): warning CS0219: The variable `conn' is assigned but its value is never used Compilation succeeded - 1 warning(s) many thanks!!!!! regards -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939283.html Sent from the Mono - General mailing list archive at Nabble.com. From bnicolotti at siapcn.it Tue Feb 10 13:25:08 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 10:25:08 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <001801c98ba9$1438cb10$3caa6130$@edu> References: <21937603.post@talk.nabble.com> <001801c98ba9$1438cb10$3caa6130$@edu> Message-ID: <21939288.post@talk.nabble.com> Bojan Rajkovic wrote: > > You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs > command > line. > > You should be compiling your code as follows: gmcs > -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs. > If your Mono libs are installed somewhere different (if you compiled from > source, they may be in /usr/local/lib/mono), you'll need to change that > part > of the path. > > --Bojan > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Bartolomeo > Nicolotti > Sent: Tuesday, February 10, 2009 12:20 PM > To: mono-list at lists.ximian.com > Subject: [Mono-list] IBM.Data.DB2 on ubuntu > > > Hi, > > I've installed mono, and xsp (not yet mod_mono) following the instruction > here: > > http://ubuntuforums.org/showthread.php?t=803743 > > in view of using mod_mono together with php on ubuntu server 8.04. > > This is to migrate a web service that access a db2 database. > > I've also installed db2exc from ubuntu repository as said here: > > http://www.ubuntu.com/partners/ibm/db2 > > and as said here: > > http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html > > I've added the library path with the command: > > sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 > > But if I try to compile a file that makes use of the namespace > IBM.Data.DB2 > I got: > > siap at LxPC54:~/src/test$ gmcs helloDB2.cs > helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does > not > exist in the namespace `System'. Are you missing an assembly reference? > helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not > be found. Are you missing a using directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings > > > could someone help me? > > Many thanks > > Best regards > -- > View this message in context: > http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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 > > siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs siap at LxPC54:~/src/test$ mono helloDB2.exe You must tell me your name! siap at LxPC54:~/src/test$ mono helloDB2.exe bart Hello, bart Unhandled Exception: System.DllNotFoundException: db2_36 at (wrapper managed-to-native) IBM.Data.DB2.DB2CLIWrapper/StaticWrapper36:SQLAllocHandle (int16,intptr,intptr&) at IBM.Data.DB2.DB2CLIWrapper.SQLAllocHandle (Int16 handleType, IntPtr inputHandle, System.IntPtr& outputHandle) [0x00000] at IBM.Data.DB2.DB2CLIWrapper.Initialize (System.IntPtr& pEnvHandle) [0x00000] at IBM.Data.DB2.DB2Environment..ctor () [0x00000] at IBM.Data.DB2.DB2Environment.get_Instance () [0x00000] at IBM.Data.DB2.DB2ConnectionPool.FindConnectionPool (System.String connectionString) [0x00000] at IBM.Data.DB2.DB2ConnectionSettings.GetConnectionSettings (System.String connectionString) [0x00000] at IBM.Data.DB2.DB2Connection.SetConnectionString (System.String connectionString) [0x00000] at IBM.Data.DB2.DB2Connection..ctor (System.String conString) [0x00000] at (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Connection:.ctor (string) at HelloWorldDb2.Main (System.String[] args) [0x00000] -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939288.html Sent from the Mono - General mailing list archive at Nabble.com. From bnicolotti at siapcn.it Tue Feb 10 13:42:07 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 10:42:07 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <21939288.post@talk.nabble.com> References: <21937603.post@talk.nabble.com> <001801c98ba9$1438cb10$3caa6130$@edu> <21939288.post@talk.nabble.com> Message-ID: <21939352.post@talk.nabble.com> Bartolomeo Nicolotti wrote: > > > > Bojan Rajkovic wrote: >> >> You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs >> command >> line. >> >> You should be compiling your code as follows: gmcs >> -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs. >> If your Mono libs are installed somewhere different (if you compiled from >> source, they may be in /usr/local/lib/mono), you'll need to change that >> part >> of the path. >> >> --Bojan >> >> -----Original Message----- >> From: mono-list-bounces at lists.ximian.com >> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Bartolomeo >> Nicolotti >> Sent: Tuesday, February 10, 2009 12:20 PM >> To: mono-list at lists.ximian.com >> Subject: [Mono-list] IBM.Data.DB2 on ubuntu >> >> >> Hi, >> >> I've installed mono, and xsp (not yet mod_mono) following the instruction >> here: >> >> http://ubuntuforums.org/showthread.php?t=803743 >> >> in view of using mod_mono together with php on ubuntu server 8.04. >> >> This is to migrate a web service that access a db2 database. >> >> I've also installed db2exc from ubuntu repository as said here: >> >> http://www.ubuntu.com/partners/ibm/db2 >> >> and as said here: >> >> http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html >> >> I've added the library path with the command: >> >> sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 >> >> But if I try to compile a file that makes use of the namespace >> IBM.Data.DB2 >> I got: >> >> siap at LxPC54:~/src/test$ gmcs helloDB2.cs >> helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does >> not >> exist in the namespace `System'. Are you missing an assembly reference? >> helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could >> not >> be found. Are you missing a using directive or an assembly reference? >> Compilation failed: 2 error(s), 0 warnings >> >> >> could someone help me? >> >> Many thanks >> >> Best regards >> -- >> View this message in context: >> http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> 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 >> >> > > siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll > -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs > siap at LxPC54:~/src/test$ mono helloDB2.exe > You must tell me your name! > siap at LxPC54:~/src/test$ mono helloDB2.exe bart > Hello, bart > > Unhandled Exception: System.DllNotFoundException: db2_36 > at (wrapper managed-to-native) > IBM.Data.DB2.DB2CLIWrapper/StaticWrapper36:SQLAllocHandle > (int16,intptr,intptr&) > at IBM.Data.DB2.DB2CLIWrapper.SQLAllocHandle (Int16 handleType, IntPtr > inputHandle, System.IntPtr& outputHandle) [0x00000] > at IBM.Data.DB2.DB2CLIWrapper.Initialize (System.IntPtr& pEnvHandle) > [0x00000] > at IBM.Data.DB2.DB2Environment..ctor () [0x00000] > at IBM.Data.DB2.DB2Environment.get_Instance () [0x00000] > at IBM.Data.DB2.DB2ConnectionPool.FindConnectionPool (System.String > connectionString) [0x00000] > at IBM.Data.DB2.DB2ConnectionSettings.GetConnectionSettings > (System.String connectionString) [0x00000] > at IBM.Data.DB2.DB2Connection.SetConnectionString (System.String > connectionString) [0x00000] > at IBM.Data.DB2.DB2Connection..ctor (System.String conString) [0x00000] > at (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Connection:.ctor > (string) > at HelloWorldDb2.Main (System.String[] args) [0x00000] > > > sudo vim /etc/mono/config -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939352.html Sent from the Mono - General mailing list archive at Nabble.com. From bnicolotti at siapcn.it Tue Feb 10 14:05:07 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Tue, 10 Feb 2009 11:05:07 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2 on ubuntu In-Reply-To: <21939352.post@talk.nabble.com> References: <21937603.post@talk.nabble.com> <001801c98ba9$1438cb10$3caa6130$@edu> <21939288.post@talk.nabble.com> <21939352.post@talk.nabble.com> Message-ID: <21939496.post@talk.nabble.com> Bartolomeo Nicolotti wrote: > > > > Bartolomeo Nicolotti wrote: >> >> >> >> Bojan Rajkovic wrote: >>> >>> You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs >>> command >>> line. >>> >>> You should be compiling your code as follows: gmcs >>> -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs. >>> If your Mono libs are installed somewhere different (if you compiled >>> from >>> source, they may be in /usr/local/lib/mono), you'll need to change that >>> part >>> of the path. >>> >>> --Bojan >>> >>> -----Original Message----- >>> From: mono-list-bounces at lists.ximian.com >>> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Bartolomeo >>> Nicolotti >>> Sent: Tuesday, February 10, 2009 12:20 PM >>> To: mono-list at lists.ximian.com >>> Subject: [Mono-list] IBM.Data.DB2 on ubuntu >>> >>> >>> Hi, >>> >>> I've installed mono, and xsp (not yet mod_mono) following the >>> instruction >>> here: >>> >>> http://ubuntuforums.org/showthread.php?t=803743 >>> >>> in view of using mod_mono together with php on ubuntu server 8.04. >>> >>> This is to migrate a web service that access a db2 database. >>> >>> I've also installed db2exc from ubuntu repository as said here: >>> >>> http://www.ubuntu.com/partners/ibm/db2 >>> >>> and as said here: >>> >>> http://www.mail-archive.com/mono-devel-list at lists.ximian.com/msg02323.html >>> >>> I've added the library path with the command: >>> >>> sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 >>> >>> But if I try to compile a file that makes use of the namespace >>> IBM.Data.DB2 >>> I got: >>> >>> siap at LxPC54:~/src/test$ gmcs helloDB2.cs >>> helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does >>> not >>> exist in the namespace `System'. Are you missing an assembly reference? >>> helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could >>> not >>> be found. Are you missing a using directive or an assembly reference? >>> Compilation failed: 2 error(s), 0 warnings >>> >>> >>> could someone help me? >>> >>> Many thanks >>> >>> Best regards >>> -- >>> View this message in context: >>> http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html >>> Sent from the Mono - General mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll >> -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs >> siap at LxPC54:~/src/test$ mono helloDB2.exe >> You must tell me your name! >> siap at LxPC54:~/src/test$ mono helloDB2.exe bart >> Hello, bart >> >> Unhandled Exception: System.DllNotFoundException: db2_36 >> at (wrapper managed-to-native) >> IBM.Data.DB2.DB2CLIWrapper/StaticWrapper36:SQLAllocHandle >> (int16,intptr,intptr&) >> at IBM.Data.DB2.DB2CLIWrapper.SQLAllocHandle (Int16 handleType, IntPtr >> inputHandle, System.IntPtr& outputHandle) [0x00000] >> at IBM.Data.DB2.DB2CLIWrapper.Initialize (System.IntPtr& pEnvHandle) >> [0x00000] >> at IBM.Data.DB2.DB2Environment..ctor () [0x00000] >> at IBM.Data.DB2.DB2Environment.get_Instance () [0x00000] >> at IBM.Data.DB2.DB2ConnectionPool.FindConnectionPool (System.String >> connectionString) [0x00000] >> at IBM.Data.DB2.DB2ConnectionSettings.GetConnectionSettings >> (System.String connectionString) [0x00000] >> at IBM.Data.DB2.DB2Connection.SetConnectionString (System.String >> connectionString) [0x00000] >> at IBM.Data.DB2.DB2Connection..ctor (System.String conString) [0x00000] >> at (wrapper remoting-invoke-with-check) >> IBM.Data.DB2.DB2Connection:.ctor (string) >> at HelloWorldDb2.Main (System.String[] args) [0x00000] >> >> >> > > sudo vim /etc/mono/config > > > > > > siap at LxPC54:~/src/mono/mono-2.2/mcs/class/IBM.Data.DB2/IBM.Data.DB2$ vim DB2CLIWrapper.cs public class StaticWrapper36 { private const string libname = "db2_36"; [DllImport(libname, EntryPoint = "SQLAllocHandle")] public static extern short SQLAllocHandle(short handleType, IntPtr inputHandle, out IntPtr outputHandle); [DllImport(libname, EntryPoint = "SQLFreeHandle")] public static extern short SQLFreeHandle(short handleType, IntPtr inputHandle); .... siap at LxPC54:/usr/local/lib/xsp/test$ nm /opt/ibm/db2exc/V9.5/lib32/libdb2.so.1 | grep SQLAllocHandle 001dadd4 T SQLAllocHandle 00d28bec d SQLAllocHandle$$LSDA 00d2d260 d SQLGetDiagRecW$$LSDA 002716d8 T _Z14SQLGetDiagRec2P19CLI_ERRORHEADERINFOiPhPiS1_sPshhP17CLI_STATEMENTINFO 00d2ae78 d _Z14SQLGetDiagRec2P19CLI_ERRORHEADERINFOiPhPiS1_sPshhP17CLI_STATEMENTINFO$$LSDA -- View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939496.html Sent from the Mono - General mailing list archive at Nabble.com. From joansava at gmail.com Tue Feb 10 14:02:46 2009 From: joansava at gmail.com (=?UTF-8?Q?Jos=C3=A9_A=2E_Salvador_Vanaclocha?=) Date: Tue, 10 Feb 2009 20:02:46 +0100 Subject: [Mono-list] Add items to gnome contextual menu Message-ID: hi guys, Anyone knows if exists any library or api from mono to add items to a gnome contextual menu?? Must I get that through nautilus-extensions?? In this case, Anyone knows where the nautilus-extensions c# binding is?? Thanks in advance. -- Jos? A. Salvador Vanaclocha From angarato.surion at gmail.com Tue Feb 10 16:14:33 2009 From: angarato.surion at gmail.com (Angarato Surion) Date: Tue, 10 Feb 2009 13:14:33 -0800 (PST) Subject: [Mono-list] how ican change the interval of announce in bitsharp Message-ID: <21942636.post@talk.nabble.com> how ican change the time between every announce to a tracker? also how ican set the time to announce ? is it posible or not in bitsharp is defined any default to anonce every some sort of time or not? -- View this message in context: http://www.nabble.com/how-ican-change-the-interval-of-announce-in-bitsharp-tp21942636p21942636.html Sent from the Mono - General mailing list archive at Nabble.com. From brett_senior at yahoo.com.au Tue Feb 10 22:04:03 2009 From: brett_senior at yahoo.com.au (Brett Senior) Date: Tue, 10 Feb 2009 19:04:03 -0800 (PST) Subject: [Mono-list] Unable to compile SVN version 126419 of Mono Message-ID: <21947539.post@talk.nabble.com> My apologies for posting this twice but when I posted it the first time I was not subscribed to the Mono mailing list and thus has not been sent there and has been waiting to be moderated for a couple of days. So have re posted this one. Yestoday I fetched version 126419 of Mono from and attempted to build it with the following commands: $ cd mono $ svn update $ cd ../mcs $ svn update $ cd ../mono $ ./autogen.sh --prefix=/opt/mono $ make clean $ make and when it attempts to build things in 'docs' I get the following error: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Cannot open assembly '../../mcs/class/lib/default/mcs.exe': No such file or directory. make[1]: *** [convert.exe] Error 2 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 2 So, I went to the ../../mcs/class/lib/default directory and created a symbolic link to ../../../mcs/mcs.exe and then the build went a little further and then I get the following error message: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly assembly, System.String name) [0x00000] at Mono.CSharp.RootNamespace.LookupTypeReflection (System.String name, Location loc) [0x00000] at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection (System.String name, Location loc) [0x00000] at Mono.CSharp.Namespace.LookupType (System.String name, Location loc) [0x00000] at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String name, Location loc) [0x00000] at Mono.CSharp.TypeManager.CoreLookupType (System.String ns_name, System.String name, Kind type_kind, Boolean required) [0x00000] at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x00000] at Mono.CSharp.Driver.LoadReferences () [0x00000] at Mono.CSharp.Driver.Compile () [0x00000] at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] make[1]: *** [convert.exe] Error 1 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 1 When I looked into this a little further it seems that mono/mono/mini/mono has a problem with the -r:AgilityPack.dll and if I use a mono other than this (eg /opt/mono/bin/mono) the convert.cs will compile to convert.exe - so the problem seems to be something related to mono/mono/mini/mono. But the other question is why is the make file trying to access something when on my system it does not get built ? I have compiled mono from svn in the past and have not had issues such as the above. Can someone please provide me with some help so that I can get mono built ? -- View this message in context: http://www.nabble.com/Unable-to-compile-SVN-version-126419-of-Mono-tp21947539p21947539.html Sent from the Mono - General mailing list archive at Nabble.com. From bnicolotti at siapcn.it Wed Feb 11 04:11:13 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Wed, 11 Feb 2009 01:11:13 -0800 (PST) Subject: [Mono-list] Unhandled Exception: System.DllNotFoundException: db2_36 Message-ID: <21950856.post@talk.nabble.com> Hello, I've installed mono, and xsp (not yet mod_mono) on ubuntu following the instruction here: http://ubuntuforums.org/showthread.php?t=803743 in view of using mod_mono together with php on ubuntu server 8.04, to migrate a web service that access a db2/as400 database. I've also installed db2exc from ubuntu repository as said here: http://www.ubuntu.com/partners/ibm/db2 I can compile a test program that does a query to the db: siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs but when I execute it: siap at LxPC54:~/src/test$ mono helloDB2.exe bart Hello, bart Unhandled Exception: System.DllNotFoundException: db2_36 at (wrapper managed-to-native) IBM.Data.DB2.DB2CLIWrapper/StaticWrapper36:SQLAllocHandle (int16,intptr,intptr&) at IBM.Data.DB2.DB2CLIWrapper.SQLAllocHandle (Int16 handleType, IntPtr inputHandle, System.IntPtr& outputHandle) [0x00000] at IBM.Data.DB2.DB2CLIWrapper.Initialize (System.IntPtr& pEnvHandle) [0x00000] at IBM.Data.DB2.DB2Environment..ctor () [0x00000] at IBM.Data.DB2.DB2Environment.get_Instance () [0x00000] at IBM.Data.DB2.DB2ConnectionPool.FindConnectionPool (System.String connectionString) [0x00000] at IBM.Data.DB2.DB2ConnectionSettings.GetConnectionSettings (System.String connectionString) [0x00000] at IBM.Data.DB2.DB2Connection.SetConnectionString (System.String connectionString) [0x00000] at IBM.Data.DB2.DB2Connection..ctor (System.String conString) [0x00000] at (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Connection:.ctor (string) at HelloWorldDb2.Main (System.String[] args) [0x00000] I've tried to edit /etc/mono/config: sudo vim /etc/mono/config adding this line: and executed this command: sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 this because the right lib should be: /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32/libdb2.so as below http://www.nabble.com/file/p21950856/helloDB2.cs helloDB2.cs siap at LxPC54:~/src/mono/mono-2.2/mcs/class/IBM.Data.DB2/IBM.Data.DB2$ vim DB2CLIWrapper.cs public class StaticWrapper36 { private const string libname = "db2_36"; [DllImport(libname, EntryPoint = "SQLAllocHandle")] public static extern short SQLAllocHandle(short handleType, IntPtr inputHandle, out IntPtr outputHandle); [DllImport(libname, EntryPoint = "SQLFreeHandle")] public static extern short SQLFreeHandle(short handleType, IntPtr inputHandle); .... siap at LxPC54:/usr/local/lib/xsp/test$ nm /opt/ibm/db2exc/V9.5/lib32/libdb2.so.1 | grep SQLAllocHandle 001dadd4 T SQLAllocHandle 00d28bec d SQLAllocHandle$$LSDA 00d2d260 d SQLGetDiagRecW$$LSDA 002716d8 T _Z14SQLGetDiagRec2P19CLI_ERRORHEADERINFOiPhPiS1_sPshhP17CLI_STATEMENTINFO 00d2ae78 d _Z14SQLGetDiagRec2P19CLI_ERRORHEADERINFOiPhPiS1_sPshhP17CLI_STATEMENTINFO$$LSDA -- View this message in context: http://www.nabble.com/Unhandled-Exception%3A-System.DllNotFoundException%3A-db2_36-tp21950856p21950856.html Sent from the Mono - General mailing list archive at Nabble.com. From bnicolotti at siapcn.it Wed Feb 11 04:36:52 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Wed, 11 Feb 2009 01:36:52 -0800 (PST) Subject: [Mono-list] Unhandled Exception: System.DllNotFoundException: db2_36 In-Reply-To: <21950856.post@talk.nabble.com> References: <21950856.post@talk.nabble.com> Message-ID: <21951210.post@talk.nabble.com> Bartolomeo Nicolotti wrote: > > Hello, > > I've installed mono, and xsp (not yet mod_mono) on ubuntu following the > instruction here: > > http://ubuntuforums.org/showthread.php?t=803743 > > in view of using mod_mono together with php on ubuntu server 8.04, to > migrate a web service that access a db2/as400 database. > > I've also installed db2exc from ubuntu repository as said here: > > http://www.ubuntu.com/partners/ibm/db2 > > I can compile a test program that does a query to the db: > > siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll > -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs > > but when I execute it: > > siap at LxPC54:~/src/test$ mono helloDB2.exe bart > Hello, bart > > Unhandled Exception: System.DllNotFoundException: db2_36 > at (wrapper managed-to-native) > IBM.Data.DB2.DB2CLIWrapper/StaticWrapper36:SQLAllocHandle > (int16,intptr,intptr&) > at IBM.Data.DB2.DB2CLIWrapper.SQLAllocHandle (Int16 handleType, IntPtr > inputHandle, System.IntPtr& outputHandle) [0x00000] > at IBM.Data.DB2.DB2CLIWrapper.Initialize (System.IntPtr& pEnvHandle) > [0x00000] > at IBM.Data.DB2.DB2Environment..ctor () [0x00000] > at IBM.Data.DB2.DB2Environment.get_Instance () [0x00000] > at IBM.Data.DB2.DB2ConnectionPool.FindConnectionPool (System.String > connectionString) [0x00000] > at IBM.Data.DB2.DB2ConnectionSettings.GetConnectionSettings > (System.String connectionString) [0x00000] > at IBM.Data.DB2.DB2Connection.SetConnectionString (System.String > connectionString) [0x00000] > at IBM.Data.DB2.DB2Connection..ctor (System.String conString) [0x00000] > at (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Connection:.ctor > (string) > at HelloWorldDb2.Main (System.String[] args) [0x00000] > > I've tried to edit /etc/mono/config: > > sudo vim /etc/mono/config > > > > > adding this line: > > > > and executed this command: > > sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32 > > this because the right lib should be: > > /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32/libdb2.so > > as below http://www.nabble.com/file/p21950856/helloDB2.cs helloDB2.cs > > siap at LxPC54:~/src/mono/mono-2.2/mcs/class/IBM.Data.DB2/IBM.Data.DB2$ vim > DB2CLIWrapper.cs > > > public class StaticWrapper36 > { > private const string libname = "db2_36"; > > [DllImport(libname, EntryPoint = > "SQLAllocHandle")] > public static extern short SQLAllocHandle(short > handleType, IntPtr inputHandle, out IntPtr outputHandle); > [DllImport(libname, EntryPoint = "SQLFreeHandle")] > public static extern short SQLFreeHandle(short > handleType, IntPtr inputHandle); > > .... > > siap at LxPC54:/usr/local/lib/xsp/test$ nm > /opt/ibm/db2exc/V9.5/lib32/libdb2.so.1 | grep SQLAllocHandle > 001dadd4 T SQLAllocHandle > 00d28bec d SQLAllocHandle$$LSDA > > 00d2d260 d SQLGetDiagRecW$$LSDA > 002716d8 T > _Z14SQLGetDiagRec2P19CLI_ERRORHEADERINFOiPhPiS1_sPshhP17CLI_STATEMENTINFO > 00d2ae78 d > _Z14SQLGetDiagRec2P19CLI_ERRORHEADERINFOiPhPiS1_sPshhP17CLI_STATEMENTINFO$$LSDA > Following this http://www.mono-project.com/DllNotFoundException i've checked that Imodified the wrong file: i did sudo vim /etc/mono/config but the right file is: sudo vim /usr/local/etc/mono/config now it works (the error is a missing conn.Open())!! siap at LxPC54:~/src/test$ mono helloDB2.exe bart > mono_debug.txt Unhandled Exception: System.InvalidOperationException: Prepare needs an open connection at IBM.Data.DB2.DB2Command.ExecuteReader (CommandBehavior behavior) [0x00000] at IBM.Data.DB2.DB2Command.ExecuteReader () [0x00000] at (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Command:ExecuteReader () at HelloWorldDb2.Main (System.String[] args) [0x00000] -- View this message in context: http://www.nabble.com/Unhandled-Exception%3A-System.DllNotFoundException%3A-db2_36-tp21950856p21951210.html Sent from the Mono - General mailing list archive at Nabble.com. From bnicolotti at siapcn.it Wed Feb 11 06:10:59 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Wed, 11 Feb 2009 03:10:59 -0800 (PST) Subject: [Mono-list] IBM.Data.DB2.DB2Exception: Unable to allocate statement handle Message-ID: <21952680.post@talk.nabble.com> Hello, I've installed mono, and xsp (not yet mod_mono) on ubuntu following the instruction here: http://ubuntuforums.org/showthread.php?t=803743 in view of using mod_mono together with php on ubuntu server 8.04, to migrate a web service that access a db2/as400 database. I've also installed db2exc from ubuntu repository as said here: http://www.ubuntu.com/partners/ibm/db2 I can compile a test program that does a query to the db: siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll -r:/usr/lib/mono/2.0/System.Data.dll helloDB2.cs but when I execute it: siap at LxPC54:~/src/test$ sudo MONO_LOG_LEVEL=debug mono helloDB2.exe bart .... Mono-INFO: Assembly Ref addref System.Data 0x8362e10 -> System.Xml 0x83719d8: 2 Hello, bart Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLAllocHandle'. Mono-INFO: Probing 'SQLAllocHandle'. Mono-INFO: Found as 'SQLAllocHandle'. Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLAllocHandle'. Mono-INFO: Probing 'SQLAllocHandle'. Mono-INFO: Found as 'SQLAllocHandle'. Bart not useLibCli Bart not useLibCli Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLDriverConnectW'. Mono-INFO: Probing 'SQLDriverConnectWW'. Mono-INFO: Probing 'SQLDriverConnectWW'. Mono-INFO: Probing 'SQLDriverConnectW'. Mono-INFO: Found as 'SQLDriverConnectW'. Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLDriverConnectW'. Mono-INFO: Probing 'SQLDriverConnectWW'. Mono-INFO: Probing 'SQLDriverConnectWW'. Mono-INFO: Probing 'SQLDriverConnectW'. Mono-INFO: Found as 'SQLDriverConnectW'. Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLGetInfoW'. Mono-INFO: Probing 'SQLGetInfoWW'. Mono-INFO: Probing 'SQLGetInfoWW'. Mono-INFO: Probing 'SQLGetInfoW'. Mono-INFO: Found as 'SQLGetInfoW'. Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLGetInfoW'. Mono-INFO: Probing 'SQLGetInfoWW'. Mono-INFO: Probing 'SQLGetInfoWW'. Mono-INFO: Probing 'SQLGetInfoW'. Mono-INFO: Found as 'SQLGetInfoW'. Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLGetDiagRec'. Mono-INFO: Probing 'SQLGetDiagRec'. Mono-INFO: Found as 'SQLGetDiagRec'. Mono-INFO: DllImport attempting to load: 'libdb2'. Mono-INFO: DllImport loading location: 'libdb2.so'. Mono-INFO: Searching for 'SQLGetDiagRec'. Mono-INFO: Probing 'SQLGetDiagRec'. Mono-INFO: Found as 'SQLGetDiagRec'. Bart not useLibCli Unhandled Exception: IBM.Data.DB2.DB2Exception: ERROR [08003] [IBM][CLI Driver] CLI0106E Connection is closed. SQLSTATE=08003 InternalExecuteNonQuery: Unable to allocate statement handle. at IBM.Data.DB2.DB2Command.AllocateStatement (System.String location) [0x00000] at IBM.Data.DB2.DB2Command.ExecuteNonQueryInternal (CommandBehavior behavior) [0x00000] at IBM.Data.DB2.DB2Command.ExecuteReader (CommandBehavior behavior) [0x00000] at IBM.Data.DB2.DB2Command.ExecuteReader () [0x00000] at (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Command:ExecuteReader () at HelloWorldDb2.Main (System.String[] args) [0x00000] -- View this message in context: http://www.nabble.com/IBM.Data.DB2.DB2Exception%3A-Unable-to-allocate-statement-handle-tp21952680p21952680.html Sent from the Mono - General mailing list archive at Nabble.com. From rweiss at chesapeakebay.net Wed Feb 11 08:19:31 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Wed, 11 Feb 2009 05:19:31 -0800 (PST) Subject: [Mono-list] Deserialization issue when talking to webservice from mono Message-ID: <21954562.post@talk.nabble.com> I have an app(Client compiled as 32 bit mode) on a RHEL mono box talking to a win-32 webservice(Server compiled as 32 bit mode) on another machine. I can do the initial calls to the servie fine and without issue. When I serialize data on the RHEL mono machine and send it over to the win-32 machine and deserialize it, the win-32 box throws an error: Error message: The Job Control Web Service threw an exception executing ProcessInstructions() Unable to load type System.Collections.Generic.SortedList`2[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[JobControl.Instructions.Instruction, JobControl.Instructions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] required for deserialization. HOWEVER, when running the same app - the Client - on another win-32 workstation talking to the webservice (same server), It works fine. I know that all of the libraries needed to run the service are there as this is a production server and has no issues responding to the same app when it is not running on RHEL mono. I ran MoMA on the Client app and the Server app and get no problems reported. Could it be a Binary Serialization issue between the machines? Thoughts? -- View this message in context: http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-from-mono-tp21954562p21954562.html Sent from the Mono - General mailing list archive at Nabble.com. From rweiss at chesapeakebay.net Wed Feb 11 11:55:22 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Wed, 11 Feb 2009 08:55:22 -0800 (PST) Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: <21954562.post@talk.nabble.com> References: <21954562.post@talk.nabble.com> Message-ID: <21958261.post@talk.nabble.com> Ok. Here is the deal with my issue. It "appears" that the implementation of the Generic Sorted List on mono is *NOT* implemented the same was as in the .Net Framework. So when I binary serialize the Object, which has a Generic Sorted List property, on mono and deserialize on win-32, using the EXACT same DLL, it thows the error listed above. Is there a list of the differences of the implementations between mono and .Net? BTW, this specific DLL PASSED the MoMA with no issues reported. -- View this message in context: http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-from-mono-tp21954562p21958261.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Wed Feb 11 12:03:55 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Wed, 11 Feb 2009 17:03:55 +0000 Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: <21958261.post@talk.nabble.com> References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> Message-ID: <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> Just to clarify, what you're saying is that if Mono binary serializes your generic list, then MS.NET cannot deserialize the resulting stream? If so, what version of Mono are you on. If it's older than 2.2, maybe you should try 2.2 and see if the issue has been resolved. Ideally there would be no difference, but binary serialization puts a dependency on private implementation detail which makes it hard to replicate exactly. Alan. On Wed, Feb 11, 2009 at 4:55 PM, Rob Weiss wrote: > > Ok. Here is the deal with my issue. It "appears" that the implementation of > the Generic Sorted List on mono is *NOT* implemented the same was as in the > .Net Framework. So when I binary serialize the Object, which has a Generic > Sorted List property, on mono and deserialize on win-32, using the EXACT > same DLL, it thows the error listed above. > > Is there a list of the differences of the implementations between mono and > .Net? BTW, this specific DLL PASSED the MoMA with no issues reported. > -- > View this message in context: > http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-from-mono-tp21954562p21958261.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090211/97e9fb43/attachment.html From rweiss at chesapeakebay.net Wed Feb 11 12:20:06 2009 From: rweiss at chesapeakebay.net (Robert Weiss) Date: Wed, 11 Feb 2009 12:20:06 -0500 Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> Message-ID: Correct. We are running mono 2.2 Not sure what you mean RE: binary serialization puts a dependency on private implementation. Can you explain further? ________________________________ From: Alan McGovern [mailto:alan.mcgovern at gmail.com] Sent: Wednesday, February 11, 2009 12:04 PM To: Robert Weiss Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] Deserialization issue when talking to webservice from mono Just to clarify, what you're saying is that if Mono binary serializes your generic list, then MS.NET cannot deserialize the resulting stream? If so, what version of Mono are you on. If it's older than 2.2, maybe you should try 2.2 and see if the issue has been resolved. Ideally there would be no difference, but binary serialization puts a dependency on private implementation detail which makes it hard to replicate exactly. Alan. On Wed, Feb 11, 2009 at 4:55 PM, Rob Weiss wrote: Ok. Here is the deal with my issue. It "appears" that the implementation of the Generic Sorted List on mono is *NOT* implemented the same was as in the .Net Framework. So when I binary serialize the Object, which has a Generic Sorted List property, on mono and deserialize on win-32, using the EXACT same DLL, it thows the error listed above. Is there a list of the differences of the implementations between mono and .Net? BTW, this specific DLL PASSED the MoMA with no issues reported. -- View this message in context: http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-f rom-mono-tp21954562p21958261.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ 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/20090211/bf19d2e6/attachment.html From alan.mcgovern at gmail.com Wed Feb 11 13:17:58 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Wed, 11 Feb 2009 18:17:58 +0000 Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> Message-ID: <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> http://msdn.microsoft.com/en-us/library/72hyey7b(VS.71).aspx MS.NET: public class Sample { private int val; public int Value { get { return val; } } } Mono: public class Sample { private int value; public int Value { get { return value; } } } These classes are *not* binary serializable because the private field is named differently. This is probably the issue you're hitting. Alan. On Wed, Feb 11, 2009 at 5:20 PM, Robert Weiss wrote: > Correct. > > > > We are running mono 2.2 > > > > Not sure what you mean RE: binary serialization puts a dependency on > private implementation. Can you explain further? > > > ------------------------------ > > *From:* Alan McGovern [mailto:alan.mcgovern at gmail.com] > *Sent:* Wednesday, February 11, 2009 12:04 PM > *To:* Robert Weiss > *Cc:* mono-list at lists.ximian.com > *Subject:* Re: [Mono-list] Deserialization issue when talking to > webservice from mono > > > > Just to clarify, what you're saying is that if Mono binary serializes your > generic list, then MS.NET cannot deserialize the resulting stream? If so, > what version of Mono are you on. If it's older than 2.2, maybe you should > try 2.2 and see if the issue has been resolved. > > Ideally there would be no difference, but binary serialization puts a > dependency on private implementation detail which makes it hard to replicate > exactly. > > Alan. > > On Wed, Feb 11, 2009 at 4:55 PM, Rob Weiss > wrote: > > > Ok. Here is the deal with my issue. It "appears" that the implementation of > the Generic Sorted List on mono is *NOT* implemented the same was as in the > .Net Framework. So when I binary serialize the Object, which has a Generic > Sorted List property, on mono and deserialize on win-32, using the EXACT > same DLL, it thows the error listed above. > > Is there a list of the differences of the implementations between mono and > .Net? BTW, this specific DLL PASSED the MoMA with no issues reported. > -- > View this message in context: > http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-from-mono-tp21954562p21958261.html > > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090211/1367c0f8/attachment-0001.html From rweiss at chesapeakebay.net Wed Feb 11 13:26:11 2009 From: rweiss at chesapeakebay.net (Robert Weiss) Date: Wed, 11 Feb 2009 13:26:11 -0500 Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> Message-ID: Yes. Assuming that your example class "Sample" was part of the .net framework and the implementation in .Net was what you listed and the mono implementation differs, then the binary serialization would not work. Since this *appears* to be the issue at hand with the way that the Generic Sorted List was implemented in mono, how does one get the incorrect mono implementation fixed? Thanks for your input. ________________________________ From: Alan McGovern [mailto:alan.mcgovern at gmail.com] Sent: Wednesday, February 11, 2009 1:18 PM To: Robert Weiss Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] Deserialization issue when talking to webservice from mono http://msdn.microsoft.com/en-us/library/72hyey7b(VS.71).aspx MS.NET: public class Sample { private int val; public int Value { get { return val; } } } Mono: public class Sample { private int value; public int Value { get { return value; } } } These classes are *not* binary serializable because the private field is named differently. This is probably the issue you're hitting. Alan. On Wed, Feb 11, 2009 at 5:20 PM, Robert Weiss wrote: Correct. We are running mono 2.2 Not sure what you mean RE: binary serialization puts a dependency on private implementation. Can you explain further? ________________________________ From: Alan McGovern [mailto:alan.mcgovern at gmail.com] Sent: Wednesday, February 11, 2009 12:04 PM To: Robert Weiss Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] Deserialization issue when talking to webservice from mono Just to clarify, what you're saying is that if Mono binary serializes your generic list, then MS.NET cannot deserialize the resulting stream? If so, what version of Mono are you on. If it's older than 2.2, maybe you should try 2.2 and see if the issue has been resolved. Ideally there would be no difference, but binary serialization puts a dependency on private implementation detail which makes it hard to replicate exactly. Alan. On Wed, Feb 11, 2009 at 4:55 PM, Rob Weiss wrote: Ok. Here is the deal with my issue. It "appears" that the implementation of the Generic Sorted List on mono is *NOT* implemented the same was as in the .Net Framework. So when I binary serialize the Object, which has a Generic Sorted List property, on mono and deserialize on win-32, using the EXACT same DLL, it thows the error listed above. Is there a list of the differences of the implementations between mono and .Net? BTW, this specific DLL PASSED the MoMA with no issues reported. -- View this message in context: http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-f rom-mono-tp21954562p21958261.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ 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/20090211/a7c640fb/attachment.html From alan.mcgovern at gmail.com Wed Feb 11 14:07:34 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Wed, 11 Feb 2009 19:07:34 +0000 Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> Message-ID: <117799f00902111107p62fac5d3q8b350cb58b4241ab@mail.gmail.com> I really wouldn't be the one to ask about this, but the best bet is to: 1) Serialize the structure on .NET and save to a file 2) Serialize the structure on Mono and save to a file 3) Create a bug on http://bugzilla.novell.com and attach the two files and the description of how they were created. You should also reduce the structure to as small an item as possible to reproduce the bug. For example if you have a List you should try reproduce with just a List, or just a ComplexObject. If the second fails, then start removing properties from ComplexObject until you know the one which is failing. If we know *exactly* what is triggering the issue, it'll be easier/faster to fix. Though if you want your application to work with any released versions of mono, you need to investigate an alternative serializing form. Alan. On Wed, Feb 11, 2009 at 6:26 PM, Robert Weiss wrote: > Yes. Assuming that your example class "Sample" was part of the .net > framework and the implementation in .Net was what you listed and the mono > implementation differs, then the binary serialization would not work. Since > this **appears** to be the issue at hand with the way that the Generic > Sorted List was implemented in mono, how does one get the incorrect mono > implementation fixed? > > > > Thanks for your input. > > > ------------------------------ > > *From:* Alan McGovern [mailto:alan.mcgovern at gmail.com] > *Sent:* Wednesday, February 11, 2009 1:18 PM > > *To:* Robert Weiss > *Cc:* mono-list at lists.ximian.com > *Subject:* Re: [Mono-list] Deserialization issue when talking to > webservice from mono > > > > http://msdn.microsoft.com/en-us/library/72hyey7b(VS.71).aspx > > MS.NET: > public class Sample > { > private int val; > public int Value { get { return val; } } > } > > Mono: > public class Sample > { > private int value; > public int Value { get { return value; } } > } > > These classes are *not* binary serializable because the private field is > named differently. This is probably the issue you're hitting. > > Alan. > > On Wed, Feb 11, 2009 at 5:20 PM, Robert Weiss > wrote: > > Correct. > > > > We are running mono 2.2 > > > > Not sure what you mean RE: binary serialization puts a dependency on > private implementation. Can you explain further? > > > ------------------------------ > > *From:* Alan McGovern [mailto:alan.mcgovern at gmail.com] > *Sent:* Wednesday, February 11, 2009 12:04 PM > *To:* Robert Weiss > *Cc:* mono-list at lists.ximian.com > *Subject:* Re: [Mono-list] Deserialization issue when talking to > webservice from mono > > > > Just to clarify, what you're saying is that if Mono binary serializes your > generic list, then MS.NET cannot deserialize the resulting stream? If so, > what version of Mono are you on. If it's older than 2.2, maybe you should > try 2.2 and see if the issue has been resolved. > > Ideally there would be no difference, but binary serialization puts a > dependency on private implementation detail which makes it hard to replicate > exactly. > > Alan. > > On Wed, Feb 11, 2009 at 4:55 PM, Rob Weiss > wrote: > > > Ok. Here is the deal with my issue. It "appears" that the implementation of > the Generic Sorted List on mono is *NOT* implemented the same was as in the > .Net Framework. So when I binary serialize the Object, which has a Generic > Sorted List property, on mono and deserialize on win-32, using the EXACT > same DLL, it thows the error listed above. > > Is there a list of the differences of the implementations between mono and > .Net? BTW, this specific DLL PASSED the MoMA with no issues reported. > -- > View this message in context: > http://www.nabble.com/Deserialization-issue-when-talking-to-webservice-from-mono-tp21954562p21958261.html > > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090211/9146c487/attachment-0001.html From robertj at gmx.net Wed Feb 11 14:18:02 2009 From: robertj at gmx.net (Robert Jordan) Date: Wed, 11 Feb 2009 20:18:02 +0100 Subject: [Mono-list] Deserialization issue when talking to webservice from mono In-Reply-To: References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> Message-ID: Robert Weiss wrote: > Yes. Assuming that your example class "Sample" was part of the .net > framework and the implementation in .Net was what you listed and the > mono implementation differs, then the binary serialization would not > work. Since this *appears* to be the issue at hand with the way that the > Generic Sorted List was implemented in mono, how does one get the > incorrect mono implementation fixed? Mono's implementation isn't incorrect. It's just incompatible regarding binary serialization. Since SortedList does not implement ISerializable, there is no way to intercept the serialization process other than trying to design the class layout like MS did. It's not an easy process given that mono's developers never decompile and look at MS' implementation. Here's an exception I got while trying to deserialize a stream created with MS.NET 2.x: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Collections.Generic.SortedList`2+KeyList[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. This means that MS' implementation is using an internal class SortedList.KeyList. No one knows exactly what this class is for and how it's implemented... You should replace the SortedList from your WebService API with something that can be serialized better, like an array of pairs. More on serialization: http://www.mono-project.com/FAQ:_Technical (search for serialization). Robert From rweiss at chesapeakebay.net Wed Feb 11 14:23:59 2009 From: rweiss at chesapeakebay.net (Robert Weiss) Date: Wed, 11 Feb 2009 14:23:59 -0500 Subject: [Mono-list] Deserialization issue when talking to webservicefrom mono In-Reply-To: References: <21954562.post@talk.nabble.com><21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> Message-ID: Ok. I understand that answer and I have implemented a change similar to what you responded. However, I was under the assumption that mono was a supported project, had access to the MS .NET Framework Source and was implementing it based on that source. Is this not the case? If it is the case, then this is a bug that needs to be fixed to the correct implementation. Thanks for the info. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: Wednesday, February 11, 2009 2:18 PM To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Deserialization issue when talking to webservicefrom mono Robert Weiss wrote: > Yes. Assuming that your example class "Sample" was part of the .net > framework and the implementation in .Net was what you listed and the > mono implementation differs, then the binary serialization would not > work. Since this *appears* to be the issue at hand with the way that the > Generic Sorted List was implemented in mono, how does one get the > incorrect mono implementation fixed? Mono's implementation isn't incorrect. It's just incompatible regarding binary serialization. Since SortedList does not implement ISerializable, there is no way to intercept the serialization process other than trying to design the class layout like MS did. It's not an easy process given that mono's developers never decompile and look at MS' implementation. Here's an exception I got while trying to deserialize a stream created with MS.NET 2.x: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Collections.Generic.SortedList`2+KeyList[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. This means that MS' implementation is using an internal class SortedList.KeyList. No one knows exactly what this class is for and how it's implemented... You should replace the SortedList from your WebService API with something that can be serialized better, like an array of pairs. More on serialization: http://www.mono-project.com/FAQ:_Technical (search for serialization). Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From alan.mcgovern at gmail.com Wed Feb 11 14:34:03 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Wed, 11 Feb 2009 19:34:03 +0000 Subject: [Mono-list] Deserialization issue when talking to webservicefrom mono In-Reply-To: References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> Message-ID: <117799f00902111134s3d6a64f4t7ba9a228a8c02206@mail.gmail.com> On Wed, Feb 11, 2009 at 7:23 PM, Robert Weiss wrote: > Ok. I understand that answer and I have implemented a change similar to > what you responded. That's a good move. Binary serialization isn't even compatible between different releases of the .NET framework if you happen to try serializing the wrong class. > However, I was under the assumption that mono was a supported project, > had access to the MS .NET Framework Source and was implementing it based > on that source. Nope, not at all. > Is this not the case? If it is the case, then this is a bug that needs > to be fixed to the correct implementation. The fix is really to not use binary serialization on that datatype. As I said above, you can end up in trouble just trying to interop with another version of MS.NET. If i remember correctly, binary DateTime serialization is one which changed between MS.NET releases. Glad you got it working anyway. That's the important part ;) Alan. > Thanks for the info. > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan > Sent: Wednesday, February 11, 2009 2:18 PM > To: Mono-list at lists.ximian.com > Subject: Re: [Mono-list] Deserialization issue when talking to > webservicefrom mono > > Robert Weiss wrote: > > Yes. Assuming that your example class "Sample" was part of the .net > > framework and the implementation in .Net was what you listed and the > > mono implementation differs, then the binary serialization would not > > work. Since this *appears* to be the issue at hand with the way that > the > > Generic Sorted List was implemented in mono, how does one get the > > incorrect mono implementation fixed? > > Mono's implementation isn't incorrect. It's just incompatible > regarding binary serialization. > > Since SortedList does not implement ISerializable, there > is no way to intercept the serialization process other than > trying to design the class layout like MS did. It's not an > easy process given that mono's developers never decompile > and look at MS' implementation. > > Here's an exception I got while trying to deserialize > a stream created with MS.NET 2.x: > > Unhandled Exception: System.TypeLoadException: Could not load type > 'System.Collections.Generic.SortedList`2+KeyList[[System.Int32, > mscorlib, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, > Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. > > This means that MS' implementation is using an internal class > SortedList.KeyList. No one knows exactly what this class is > for and how it's implemented... > > You should replace the SortedList from your WebService API with > something that can be serialized better, like an array of pairs. > > More on serialization: http://www.mono-project.com/FAQ:_Technical > (search for serialization). > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090211/ca01dbdf/attachment.html From sshaw at decriptor.com Wed Feb 11 14:32:01 2009 From: sshaw at decriptor.com (Stephen Shaw) Date: Wed, 11 Feb 2009 12:32:01 -0700 Subject: [Mono-list] mono 2.2 on ubuntu? In-Reply-To: References: Message-ID: If you are doing a lot with mono, is it worth looking at just using openSUSE as the packages are always up to date for both released and future. Right now you can get mono 2.0.1, 2.2, 2.4preview for 11.1 Stephen On Sun, Feb 8, 2009 at 1:39 PM, B?lint Kardos wrote: > Hi, > thanks for the answer; it's always a pain working on ubuntu with mono :/ > anyway, I've alien-ed up the 1.9.x RedHot packages, will the OpenSuse > version work for with it? > I can't test it anywhere, i just have a development & a production > environment currently. > Any hints? > thanks, > b. > ?dv?zlettel > with regards > > Kardos B?lint > _______________________________________ > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > On Sun, Feb 8, 2009 at 21:29, Stephen Shaw wrote: >> >> On Fri, Feb 6, 2009 at 8:43 AM, B?lint Kardos wrote: >> > Hi, >> > does anyone know a repository where i can find the latest mono for >> > ubuntu? >> > thanks, >> >> They are currently working on mono 2.0.1. I think they were talking >> about skipping 2.2 and going straight to 2.4 once they finish 2.0.1 >> >> >> Stephen > > From rweiss at chesapeakebay.net Wed Feb 11 14:41:39 2009 From: rweiss at chesapeakebay.net (Robert Weiss) Date: Wed, 11 Feb 2009 14:41:39 -0500 Subject: [Mono-list] Deserialization issue when talking to webservicefrom mono In-Reply-To: <117799f00902111134s3d6a64f4t7ba9a228a8c02206@mail.gmail.com> References: <21954562.post@talk.nabble.com> <21958261.post@talk.nabble.com> <117799f00902110903n107f63ado15e84b8702007126@mail.gmail.com> <117799f00902111017i5723ad05xb46942b83e6dc026@mail.gmail.com> <117799f00902111134s3d6a64f4t7ba9a228a8c02206@mail.gmail.com> Message-ID: A really good point to make regarding this is to make sure that when you "have" to serialize across platforms, then do it at the lowest level possible. Basically, my solution was to *not* serialize the SortedList by marking it [NonSerialized], putting the data in a *more* generic container and then creating a accessor to load the data from the generic store into the sorted list when needed the first time. Still all in the same class, so I have 1 binary still and it works across the platforms without issue. Thanks to all who offered up help!! ________________________________ From: Alan McGovern [mailto:alan.mcgovern at gmail.com] Sent: Wednesday, February 11, 2009 2:34 PM To: Robert Weiss Cc: Robert Jordan; Mono-list at lists.ximian.com Subject: Re: [Mono-list] Deserialization issue when talking to webservicefrom mono On Wed, Feb 11, 2009 at 7:23 PM, Robert Weiss wrote: Ok. I understand that answer and I have implemented a change similar to what you responded. That's a good move. Binary serialization isn't even compatible between different releases of the .NET framework if you happen to try serializing the wrong class. However, I was under the assumption that mono was a supported project, had access to the MS .NET Framework Source and was implementing it based on that source. Nope, not at all. Is this not the case? If it is the case, then this is a bug that needs to be fixed to the correct implementation. The fix is really to not use binary serialization on that datatype. As I said above, you can end up in trouble just trying to interop with another version of MS.NET. If i remember correctly, binary DateTime serialization is one which changed between MS.NET releases. Glad you got it working anyway. That's the important part ;) Alan. Thanks for the info. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: Wednesday, February 11, 2009 2:18 PM To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Deserialization issue when talking to webservicefrom mono Robert Weiss wrote: > Yes. Assuming that your example class "Sample" was part of the .net > framework and the implementation in .Net was what you listed and the > mono implementation differs, then the binary serialization would not > work. Since this *appears* to be the issue at hand with the way that the > Generic Sorted List was implemented in mono, how does one get the > incorrect mono implementation fixed? Mono's implementation isn't incorrect. It's just incompatible regarding binary serialization. Since SortedList does not implement ISerializable, there is no way to intercept the serialization process other than trying to design the class layout like MS did. It's not an easy process given that mono's developers never decompile and look at MS' implementation. Here's an exception I got while trying to deserialize a stream created with MS.NET 2.x: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Collections.Generic.SortedList`2+KeyList[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. This means that MS' implementation is using an internal class SortedList.KeyList. No one knows exactly what this class is for and how it's implemented... You should replace the SortedList from your WebService API with something that can be serialized better, like an array of pairs. More on serialization: http://www.mono-project.com/FAQ:_Technical (search for serialization). 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090211/f422d125/attachment-0001.html From lluis at novell.com Thu Feb 12 10:54:12 2009 From: lluis at novell.com (Lluis Sanchez Gual) Date: Thu, 12 Feb 2009 16:54:12 +0100 Subject: [Mono-list] MonoDevelop 2.0 Beta 1 released Message-ID: <1234454052.8514.13.camel@linux-zn6q> The MonoDevelop team is proud to announce the release of MonoDevelop 2.0 Beta 1 (1.9.2). This is the third release of a series of releases that will lead to MonoDevelop 2.0 around the end of March. MonoDevelop is a GNOME IDE primarily designed for C# and other .NET languages. ? This release contains several new features and improvements, including: * Per-project/solution policies. * ?Better support for the MSBuild format. * Improved code completion support. * New Go to File/Type dialog with acronym matching support. Complete release notes are available here: http://www.monodevelop.com/Release_notes_for_MonoDevelop_2.0_Beta_1 Sources and packages are available here: http://www.monodevelop.com/Download_-_Unstable Enjoy! From ekot at narod.ru Thu Feb 12 12:55:11 2009 From: ekot at narod.ru (ekot) Date: Thu, 12 Feb 2009 09:55:11 -0800 (PST) Subject: [Mono-list] Announcing Mono 2.4 Preview 2... In-Reply-To: <4988C97A.80000@novell.com> References: <4988C97A.80000@novell.com> Message-ID: <21957787.post@talk.nabble.com> This bug is a regression from 2.2 https://bugzilla.novell.com/show_bug.cgi?id=472805 -- View this message in context: http://www.nabble.com/Announcing-Mono-2.4-Preview-2...-tp21820679p21957787.html Sent from the Mono - General mailing list archive at Nabble.com. From gymisi at gmail.com Fri Feb 13 08:40:56 2009 From: gymisi at gmail.com (enementor) Date: Fri, 13 Feb 2009 05:40:56 -0800 (PST) Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! In-Reply-To: <21992667.post@talk.nabble.com> References: <21992667.post@talk.nabble.com> Message-ID: <21996500.post@talk.nabble.com> Hi nsharath, This code works fine, but I think the monodevelop IDE integrated console has a mistake. You can run it from the command line. :) Regards, Mih?ly nsharath wrote: > > hello sir, > I am working on SUSE studio MONO 2.2. > I am able to run the "Console.WriteLine()" perfectly. > But the "Console.ReadLine()" is showing exceptions in the sample code.But > this code is running perfectly on the Windows Visual studio 2008. > > My doubt is : "HOW TO READ INPUT FROM USER" ?????? > > - - - - - - - - - - - - - SAMPLE CODE TO FIRST THE HIGHEST 2 NUMBERS IN > GIVEN ARRAY - - - - - - - - > using System; > using System.Collections.Generic; > using System.Linq; > using System.Text; > > namespace practice > { > class highest > { > public static void Main() > { > int n,first,second; > Console.Write("enter size of array:"); > n = Int32.Parse(Console.ReadLine()); > int[] a = new int[n]; > for (int i = 0; i < a.Length; i++) > { > Console.Write("enter number{0}:", (i+1)); > a[i] = Int32.Parse(Console.ReadLine()); > } > Big_func(a, out first, out second); > Console.WriteLine("FIRST HIGHEST = " + first); > Console.WriteLine("SECOND HIGHEST = " + second); > } > public static void Big_func(int[] a, out int first, out int > second) > { > first = 0; > second = 0; > foreach(int i in a) > { > if (i > first) > { > second = first; > first = i; > } > else if (i > second && i < first) > { > second = i; > } > } > } > } > } > > - - - - - - - - - - - - - the end - - - - - - - - > > -- View this message in context: http://www.nabble.com/Doubt-on-%22Console.ReadLine%28%29%22-%21%21%21%21%21-tp21992667p21996500.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Fri Feb 13 09:06:33 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Fri, 13 Feb 2009 14:06:33 +0000 Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! In-Reply-To: <21996500.post@talk.nabble.com> References: <21992667.post@talk.nabble.com> <21996500.post@talk.nabble.com> Message-ID: <117799f00902130606qa972595k2764f9b8c87d5ed3@mail.gmail.com> Hi, If you're running the code inside monodevelop, you cannot use Console.ReadLine as MonoDevelop does not allow you to accept input via the console when it executes an application. There is an active bug on this issue. Alan. On Fri, Feb 13, 2009 at 1:40 PM, enementor wrote: > > Hi nsharath, > > This code works fine, but I think the monodevelop IDE integrated console > has > a mistake. You can run it from the command line. :) > > Regards, > Mih?ly > > nsharath wrote: > > > > hello sir, > > I am working on SUSE studio MONO 2.2. > > I am able to run the "Console.WriteLine()" perfectly. > > But the "Console.ReadLine()" is showing exceptions in the sample code.But > > this code is running perfectly on the Windows Visual studio 2008. > > > > My doubt is : "HOW TO READ INPUT FROM USER" ?????? > > > > - - - - - - - - - - - - - SAMPLE CODE TO FIRST THE HIGHEST 2 NUMBERS IN > > GIVEN ARRAY - - - - - - - - > > using System; > > using System.Collections.Generic; > > using System.Linq; > > using System.Text; > > > > namespace practice > > { > > class highest > > { > > public static void Main() > > { > > int n,first,second; > > Console.Write("enter size of array:"); > > n = Int32.Parse(Console.ReadLine()); > > int[] a = new int[n]; > > for (int i = 0; i < a.Length; i++) > > { > > Console.Write("enter number{0}:", (i+1)); > > a[i] = Int32.Parse(Console.ReadLine()); > > } > > Big_func(a, out first, out second); > > Console.WriteLine("FIRST HIGHEST = " + first); > > Console.WriteLine("SECOND HIGHEST = " + second); > > } > > public static void Big_func(int[] a, out int first, out int > > second) > > { > > first = 0; > > second = 0; > > foreach(int i in a) > > { > > if (i > first) > > { > > second = first; > > first = i; > > } > > else if (i > second && i < first) > > { > > second = i; > > } > > } > > } > > } > > } > > > > - - - - - - - - - - - - - the end - - - - - - - - > > > > > > -- > View this message in context: > http://www.nabble.com/Doubt-on-%22Console.ReadLine%28%29%22-%21%21%21%21%21-tp21992667p21996500.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090213/2b0cf6ef/attachment.html From bnicolotti at siapcn.it Fri Feb 13 09:43:04 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Fri, 13 Feb 2009 06:43:04 -0800 (PST) Subject: [Mono-list] StoredProcedure Output Parameters System.Data.Odbc Message-ID: <21997635.post@talk.nabble.com> Hi, I'm trying unixodbc with System.Data.ODBC to access DB2 for iseries I can do select, see this file http://www.nabble.com/file/p21997635/helloODBC.cs helloODBC.cs , but I've some problems with out parameters of stored procedueres. With this file http://www.nabble.com/file/p21997635/helloODBCCommand.cs helloODBCCommand.cs I get: Hello, Dunkel Eseguo:CALL QGPL.WBC022(9) Eseguo:CALL GIANLUCA.PROVACS System.Data.Odbc.OdbcException: ERROR [42000] [unixODBC][IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0104 - Token GIANLUCA non valido. Token validi: ( END GET SET CALL DROP FREE HOLD LOCK OPEN WITH ALTER. It seems that setting the CommandType to StoredProcedure has no effect, as one can also see from the source of mono (I've installed mono from source) /home/siap/dwn/src/mono/mono-2.2/mcs/class/System.Data/System.Data.Odbc/OdbcCommand the ExecuteNonQuery member function call ExecSQL that private int ExecuteNonQuery (bool freeHandle) { ... ExecSQL(CommandText); ExecSQL is: private void ExecSQL (string sql) { OdbcReturn ret; if (! prepared && Parameters.Count <= 0) { ReAllocStatment (); ret = libodbc.SQLExecDirect (hstmt, sql, libodbc.SQL_NTS); if ((ret != OdbcReturn.Success) && (ret != OdbcReturn.SuccessWithInfo) && (ret != OdbcReturn.NoData)) throw connection.CreateOdbcException (OdbcHandleType.Stmt, hstmt); return; } if (!prepared) Prepare(); BindParameters (); ret = libodbc.SQLExecute (hstmt); if (ret != OdbcReturn.Success && ret != OdbcReturn.SuccessWithInfo) throw connection.CreateOdbcException (OdbcHandleType.Stmt, hstmt); } Should I use prepared to BindParameters? How can I get the output parameter of a Stored Procedure? Many thanks Best regards -- View this message in context: http://www.nabble.com/StoredProcedure-Output-Parameters-System.Data.Odbc-tp21997635p21997635.html Sent from the Mono - General mailing list archive at Nabble.com. From kardosbalint at gmail.com Fri Feb 13 13:53:30 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Fri, 13 Feb 2009 19:53:30 +0100 Subject: [Mono-list] Mono 1.9 + mod_mono on Ubuntu - strange problems Message-ID: Hi, I've installed Mono 1.9 and mod_mono on Ubuntu. I have two mono-related sites in my apache config. The config is the same structure for both: DocumentRoot /web/site.hu/ MonoServerPath site /usr/bin/mod-mono-server2 MonoApplications site "/:/web/site.hu/" MonoSetServerAlias site SetHandler mono DocumentRoot /web/site2.hu/ MonoServerPath site2 /usr/bin/mod-mono-server2 MonoApplications site2 "/:/web/site2.hu/" MonoSetServerAlias site2 SetHandler mono This is the only way I found to start 2 (two) instances of the mono-server. This brings up Problem 1) On Apache start, I see an error: [Fri Feb 13 18:36:54 2009] [crit] (13)Permission denied: Failed to attach to existing dashboard, and removing dashboard file '/tmp/mod_mono_dashboard_ XXGLOBAL_1' failed (Operation not permitted). Further action impossible. [Fri Feb 13 18:36:54 2009] [crit] (17)File exists: Failed to create shared memory segment for backend 'XXGLOBAL' at '/tmp/mod_mono_dashboard_XXGLOBAL_ 1'. Question 1) How to get rid of these errors? And I have 3 mono-server instances running (ps aux out): 1) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/.mod_mono_server2 --nonstop --appconfigdir /etc/mono-server2 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_site --applications /:/web/site.hu --nonstopSsl 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_site2 --applications /:/web/site2.hu --nonstopSsl Question 2) How can I disable server no.1 - I need only 2 instances? Problem 2) Without setting MonoServerPath, always mod-mono-server is starting, which gives a file not found, so i linked mod-mono-server to mod-mono-server2 for a quick workaround. In /etc/mono-server2/mono-server2-host.conf I have mod-mono-server2, so I don't understand where apache gets it's "mod-mono-server" string. Can anyone please HELP me with a clear, understandable, multi-site mod_mono setup? :) It would be really appreciated! Thanks, Balint ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090213/59873c0e/attachment-0001.html From m.j.hutchinson at gmail.com Fri Feb 13 14:01:06 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Fri, 13 Feb 2009 14:01:06 -0500 Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! In-Reply-To: <117799f00902130606qa972595k2764f9b8c87d5ed3@mail.gmail.com> References: <21992667.post@talk.nabble.com> <21996500.post@talk.nabble.com> <117799f00902130606qa972595k2764f9b8c87d5ed3@mail.gmail.com> Message-ID: On Fri, Feb 13, 2009 at 9:06 AM, Alan McGovern wrote: > If you're running the code inside monodevelop, you cannot use > Console.ReadLine as MonoDevelop does not allow you to accept input via the > console when it executes an application. There is an active bug on this > issue. There's an option, in the project options, to run the app in an external terminal. This is what you should use if you want input. It's not a bug, it's the absence of a feature. That pad is an "Output" pad, not a terminal emulator. Building a terminal emulator inside MD would be overkill (though contributions are welcome). -- Michael Hutchinson http://mjhutchinson.com From kardosbalint at gmail.com Fri Feb 13 14:13:02 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Fri, 13 Feb 2009 20:13:02 +0100 Subject: [Mono-list] GDI+ and Mono 2.0.1 In-Reply-To: <1233774175.9198.264.camel@mizar.home> References: <1233771121.9198.255.camel@mizar.home> <1233774175.9198.264.camel@mizar.home> Message-ID: Hi Sebastien, I've installed a clear Ubuntu 8.04 version and have Mono 1.9 running. Finally, it is partly working for now. The main error was with the incomplete GDI packages on the old Fedora I was using, as I thought so before. Now the program is writing text to the PNG canvas, BUT with a default font, not with the custom one I've choosed. I think now it qualifies for a Bugzilla bugreport :) Thanks again, b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Wed, Feb 4, 2009 at 20:02, Sebastien Pouliot wrote: > On Wed, 2009-02-04 at 19:27 +0100, B?lint Kardos wrote: > > Hi Sebastien, > > > > > > thanks for your reply! > > I only want to deploy it on the Linux server, so I'm working on this > > part first. > > > > > > I found the solution, it had no rights to write to a given folder. > > Yep, a bit lame but this is how GDI+/SD reports such permission issues. > > > It now executes, but the output file is just 192 bytes long, and only > > has the header of the PNG stream. > > My previous suggestion still applies. Once you have a small EXE it will > be much easier to debug (and/or trace) to see what's going on. > > > The whole process is the following: > > > > > > 1) open a 24bit PNG file > > 2) add the text > > 3) save the file to a given directory > > 4) send it to the out stream > > > > > > Image.FromFile would throw an exception if it would not find the > > original file, > > the TextWriter would throw an exception if it would not find the font, > > TextWriter / font ? not likely ;-) > > > so I can't find any reason why it's not working. > > Try to remove step 2 (adding the text) and see if a copy of the original > file is saved (or just an header). > > > > > I don't know, possibly I'm missing some required .so files? > > I installed everything from the mono packages, and have libpng > > installed as well. > > Possible but unlikely, since you would have hit an exception (or a > crash). > > > > > > > > > > > ?dv?zlettel > > with regards > > > > Kardos B?lint > > _______________________________________ > > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > > > > On Wed, Feb 4, 2009 at 19:12, Sebastien Pouliot > > wrote: > > On Wed, 2009-02-04 at 18:55 +0100, B?lint Kardos wrote: > > > Hi, > > > > > > > > > I have written a small HttpHandler which automatically > > generates text > > > on the fly with a custom font, added to the > > > System.Drawing.Font.PrivateFontCollection. > > > > > > > > > with Ms.net 3.5sp1, it works fine. > > > > > > > > > with Mono 2.0.1, > > > on Vista, it dies with: > > > > > > > > > Stacktrace: > > > > > > > > > at (wrapper managed-to-native) > > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > > (intptr&) > > > <0x00004> > > > at (wrapper managed-to-native) > > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > > (intptr&) > > > <0xffffffff> > > > at System.Drawing.Text.PrivateFontCollection.Dispose > > (bool) > > > [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0.1 > > \mcs\class > > > \System.Drawing\System.Drawing.Text > > \PrivateFontCollection.cs:80 > > > > > > > > > > > > > > > on Linux, it dies with: > > > > > > > > > System.Exception: Generic Error [GDI+ status: GenericError] > > > at System.Drawing.GDIPlus.CheckStatus (Status status) > > [0x00000] > > > at System.Drawing.Image.Save (System.String filename, > > System.Drawing.Imaging.ImageCodecInfo encoder, > > System.Drawing.Imaging.EncoderParameters encoderParams) > > [0x00000] > > > at System.Drawing.Image.Save (System.String filename, > > System.Drawing.Imaging.ImageFormat format) [0x00000] > > > > > > none of the which are further traceable. > > > > > > ?This is likely two different issues. I recall (it was a > > _long_ time > > ago) some win32 specific behavior wrt ?PrivateFontCollection - > > explaining the first case. > > > > I suspect the later error (on Linux) is due to something else. > > > > > Any clues on how to further debug? > > > thank you, > > > > > > Try to create a test case outside your HTTP handler (i.e. a > > small EXE). > > Then use "mono --debug app.exe" to get a bit more information > > and fill a > > bug report on http://bugzilla.novell.com > > > > Thanks, > > Sebastien > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090213/3b16d8bc/attachment.html From sebastien.pouliot at gmail.com Fri Feb 13 14:14:30 2009 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Fri, 13 Feb 2009 14:14:30 -0500 Subject: [Mono-list] GDI+ and Mono 2.0.1 In-Reply-To: References: <1233771121.9198.255.camel@mizar.home> <1233774175.9198.264.camel@mizar.home> Message-ID: <1234552470.5905.40.camel@mizar.home> On Fri, 2009-02-13 at 20:13 +0100, B?lint Kardos wrote: > Hi Sebastien, > > > I've installed a clear Ubuntu 8.04 version and have Mono 1.9 running. > Finally, it is partly working for now. > > > The main error was with the incomplete GDI packages on the old Fedora > I was using, as I thought so before. Great! ?I'm glad you could sort it out. > Now the program is writing text to the PNG canvas, BUT with a default > font, not with the custom one I've choosed. > > > I think now it qualifies for a Bugzilla bugreport :) Yes, that should be easy to duplicate. Thanks Sebastien > > Thanks again, > > > b. > > > > > > ?dv?zlettel > with regards > > Kardos B?lint > _______________________________________ > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > On Wed, Feb 4, 2009 at 20:02, Sebastien Pouliot > wrote: > On Wed, 2009-02-04 at 19:27 +0100, B?lint Kardos wrote: > > Hi Sebastien, > > > > > > thanks for your reply! > > I only want to deploy it on the Linux server, so I'm working > on this > > part first. > > > > > > I found the solution, it had no rights to write to a given > folder. > > > Yep, a bit lame but this is how GDI+/SD reports such > permission issues. > > > It now executes, but the output file is just 192 bytes > long, and only > > has the header of the PNG stream. > > > My previous suggestion still applies. Once you have a small > EXE it will > be much easier to debug (and/or trace) to see what's going on. > > > The whole process is the following: > > > > > > 1) open a 24bit PNG file > > 2) add the text > > 3) save the file to a given directory > > 4) send it to the out stream > > > > > > Image.FromFile would throw an exception if it would not find > the > > original file, > > the TextWriter would throw an exception if it would not find > the font, > > > TextWriter / font ? not likely ;-) > > > so I can't find any reason why it's not working. > > > Try to remove step 2 (adding the text) and see if a copy of > the original > file is saved (or just an header). > > > > > I don't know, possibly I'm missing some required .so files? > > I installed everything from the mono packages, and have > libpng > > installed as well. > > > Possible but unlikely, since you would have hit an exception > (or a > crash). > > > > > > > > > > > > ?dv?zlettel > > with regards > > > > Kardos B?lint > > _______________________________________ > > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > > > > On Wed, Feb 4, 2009 at 19:12, Sebastien Pouliot > > wrote: > > On Wed, 2009-02-04 at 18:55 +0100, B?lint Kardos > wrote: > > > Hi, > > > > > > > > > I have written a small HttpHandler which > automatically > > generates text > > > on the fly with a custom font, added to the > > > System.Drawing.Font.PrivateFontCollection. > > > > > > > > > with Ms.net 3.5sp1, it works fine. > > > > > > > > > with Mono 2.0.1, > > > on Vista, it dies with: > > > > > > > > > Stacktrace: > > > > > > > > > at (wrapper managed-to-native) > > > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > > (intptr&) > > > <0x00004> > > > at (wrapper managed-to-native) > > > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > > (intptr&) > > > <0xffffffff> > > > at > System.Drawing.Text.PrivateFontCollection.Dispose > > (bool) > > > [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD > \mono-2.0.1 > > \mcs\class > > > \System.Drawing\System.Drawing.Text > > \PrivateFontCollection.cs:80 > > > > > > > > > > > > > > > on Linux, it dies with: > > > > > > > > > System.Exception: Generic Error [GDI+ status: > GenericError] > > > at System.Drawing.GDIPlus.CheckStatus (Status > status) > > [0x00000] > > > at System.Drawing.Image.Save (System.String > filename, > > System.Drawing.Imaging.ImageCodecInfo encoder, > > System.Drawing.Imaging.EncoderParameters > encoderParams) > > [0x00000] > > > at System.Drawing.Image.Save (System.String > filename, > > System.Drawing.Imaging.ImageFormat format) [0x00000] > > > > > > none of the which are further traceable. > > > > > > ?This is likely two different issues. I recall (it > was a > > _long_ time > > ago) some win32 specific behavior > wrt ?PrivateFontCollection - > > explaining the first case. > > > > I suspect the later error (on Linux) is due to > something else. > > > > > Any clues on how to further debug? > > > thank you, > > > > > > Try to create a test case outside your HTTP handler > (i.e. a > > small EXE). > > Then use "mono --debug app.exe" to get a bit more > information > > and fill a > > bug report on http://bugzilla.novell.com > > > > Thanks, > > Sebastien > > > > > > > > > > > > From surfzoid at gmail.com Fri Feb 13 14:10:11 2009 From: surfzoid at gmail.com (Petit Eric) Date: Fri, 13 Feb 2009 20:10:11 +0100 Subject: [Mono-list] Mono 1.9 + mod_mono on Ubuntu - strange problems In-Reply-To: References: Message-ID: <84776a970902131110y2baf0a7g7ae4cc40db0fd3f3@mail.gmail.com> I think you should upgrade to a more recent version : http://www.go-mono.com/mono-downloads/download.html or svn :-) 2009/2/13 B?lint Kardos : > Hi, > I've installed Mono 1.9 and mod_mono on Ubuntu. > I have two mono-related sites in my apache config. > The config is the same structure for both: > > DocumentRoot /web/site.hu/ > MonoServerPath site /usr/bin/mod-mono-server2 > MonoApplications site "/:/web/site.hu/" > > MonoSetServerAlias site > SetHandler mono > > > > DocumentRoot /web/site2.hu/ > MonoServerPath site2 /usr/bin/mod-mono-server2 > MonoApplications site2 "/:/web/site2.hu/" > > MonoSetServerAlias site2 > SetHandler mono > > > This is the only way I found to start 2 (two) instances of the mono-server. > This brings up > Problem 1) > On Apache start, I see an error: > [Fri Feb 13 18:36:54 2009] [crit] (13)Permission denied: Failed to attach to > existing dashboard, and removing dashboard file '/tmp/mod_mono_dashboard_ > XXGLOBAL_1' failed (Operation not permitted). Further action impossible. > [Fri Feb 13 18:36:54 2009] [crit] (17)File exists: Failed to create shared > memory segment for backend 'XXGLOBAL' at '/tmp/mod_mono_dashboard_XXGLOBAL_ > 1'. > Question 1) How to get rid of these errors? > And I have 3 mono-server instances running (ps aux out): > 1) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename > /tmp/.mod_mono_server2 --nonstop --appconfigdir /etc/mono-server2 > 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename > /tmp/mod_mono_server_site --applications /:/web/site.hu --nonstopSsl > 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename > /tmp/mod_mono_server_site2 --applications /:/web/site2.hu --nonstopSsl > Question 2) How can I disable server no.1 - I need only 2 instances? > Problem 2) > Without setting MonoServerPath, always mod-mono-server is starting, which > gives a file not found, so i linked mod-mono-server to mod-mono-server2 for > a quick workaround. > In /etc/mono-server2/mono-server2-host.conf I have mod-mono-server2, so I > don't understand where apache gets it's "mod-mono-server" string. > > Can anyone please HELP me with a clear, understandable, multi-site mod_mono > setup? :) > It would be really appreciated! > > Thanks, > Balint > > ?dv?zlettel > with regards > > Kardos B?lint > _______________________________________ > http://skaelede.hu 10 (0xA) ?v a magyar weben > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From alan.mcgovern at gmail.com Fri Feb 13 15:29:39 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Fri, 13 Feb 2009 20:29:39 +0000 Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! In-Reply-To: References: <21992667.post@talk.nabble.com> <21996500.post@talk.nabble.com> <117799f00902130606qa972595k2764f9b8c87d5ed3@mail.gmail.com> Message-ID: <117799f00902131229l7d9f65a5ta384b8b9e6f64158@mail.gmail.com> > > There's an option, in the project options, to run the app in an > external terminal. This is what you should use if you want input. Ah, that's great! I had completely forgotten about that option. I remember being hit by that issue before, but I never realised at the time that I could execute the app in a full terminal window. It might be worth enabling that option by default when a console application is created. I'll file an enhancement request on that. Thanks, Alan p.s. when i said there was an active bug on the issue, I meant that I have an open enhancment bug on it. Turns out it's completely unnecessary though as the behaviour I want is already there. I'll find the bug and close it as invalid. > > > It's not a bug, it's the absence of a feature. That pad is an "Output" > pad, not a terminal emulator. Building a terminal emulator inside MD > would be overkill (though contributions are welcome). > > -- > Michael Hutchinson > http://mjhutchinson.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090213/3036308e/attachment.html From m.j.hutchinson at gmail.com Fri Feb 13 15:56:09 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Fri, 13 Feb 2009 15:56:09 -0500 Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! In-Reply-To: <117799f00902131229l7d9f65a5ta384b8b9e6f64158@mail.gmail.com> References: <21992667.post@talk.nabble.com> <21996500.post@talk.nabble.com> <117799f00902130606qa972595k2764f9b8c87d5ed3@mail.gmail.com> <117799f00902131229l7d9f65a5ta384b8b9e6f64158@mail.gmail.com> Message-ID: On Fri, Feb 13, 2009 at 3:29 PM, Alan McGovern wrote: > > p.s. when i said there was an active bug on the issue, I meant that I have > an open enhancment bug on it. Turns out it's completely unnecessary though > as the behaviour I want is already there. I'll find the bug and close it as > invalid. No need to close it, just make sure it's a low-priority enhancement :) -- Michael Hutchinson http://mjhutchinson.com From amc1999 at gmail.com Fri Feb 13 17:46:17 2009 From: amc1999 at gmail.com (Amc Gmail) Date: Fri, 13 Feb 2009 17:46:17 -0500 Subject: [Mono-list] Mono 1.9 + mod_mono on Ubuntu - strange problems In-Reply-To: <84776a970902131110y2baf0a7g7ae4cc40db0fd3f3@mail.gmail.com> References: <84776a970902131110y2baf0a7g7ae4cc40db0fd3f3@mail.gmail.com> Message-ID: <48a304b00902131446m2b12296at90bd6acce8a4ab21@mail.gmail.com> You don't need to upgrade to recent Mono, and i would not recommend it for start, just to avoid multi-Mono environment configuration issues. (OK, ok, nothing wrong with multiple-Mono's :-), but I would start from simple single Mono 1.9, which you do have on Ubuntu 8.10 out-of-the-box). About XXGLOBAL error on apache restart: i do have that problem on Ubuntu, but it never cause any trouble. there is nothing like that on other's like CentOS for example. Sorry, but i have no solution for that error message, but it seems to be safe to ignore it. About apache config: for Ubuntu 7 & 8.xx to run each site under separate mod-mono-server instances you can add something like this at the end of /etc/apache2/sites-available/default: # # Mono auto-hosting disabled # MonoAutoApplication disabled # # Mono control panel # # # SetHandler mono-ctrl # Order deny,allow # Deny from all # Allow from 127.0.0.1 # # # default mod-mono-server instance to serve everything below host root # AddMonoApplications default "/:/var/www/" # # ASPX test in /tst_aspx virtual dir # served by tst_aspx mod-mono-server instance # Alias /tst_aspx "/var/tst/aspx/" AddMonoApplications tst_aspx "/tst_aspx:/var/tst/aspx/" Options FollowSymLinks AllowOverride None Order deny,allow Allow from all MonoSetServerAlias tst_aspx # # my_demo application in /my_demo virtual dir # served by my_demo mod-mono-server instance # Alias /my_demo "/var/my/my_demo/site/" AddMonoApplications my_demo "/my_demo:/var/my/my_demo/site/" Options FollowSymLinks AllowOverride None Order deny,allow Allow from all MonoSetServerAlias my_demo # # my2 application in /my2 virtual dir # served by my2 mod-mono-server instance # # Alias /my2 "/var/my/my_2/site/" # AddMonoApplications my2 "/my2:/var/my/my_2/site/" # # MonoSetServerAlias my2 # SetHandler mono # On Fri, Feb 13, 2009 at 2:10 PM, Petit Eric wrote: > I think you should upgrade to a more recent version : > http://www.go-mono.com/mono-downloads/download.html > or svn :-) > > 2009/2/13 B?lint Kardos : >> Hi, >> I've installed Mono 1.9 and mod_mono on Ubuntu. >> I have two mono-related sites in my apache config. >> The config is the same structure for both: >> >> DocumentRoot /web/site.hu/ >> MonoServerPath site /usr/bin/mod-mono-server2 >> MonoApplications site "/:/web/site.hu/" >> >> MonoSetServerAlias site >> SetHandler mono >> >> >> >> DocumentRoot /web/site2.hu/ >> MonoServerPath site2 /usr/bin/mod-mono-server2 >> MonoApplications site2 "/:/web/site2.hu/" >> >> MonoSetServerAlias site2 >> SetHandler mono >> >> >> This is the only way I found to start 2 (two) instances of the mono-server. >> This brings up >> Problem 1) >> On Apache start, I see an error: >> [Fri Feb 13 18:36:54 2009] [crit] (13)Permission denied: Failed to attach to >> existing dashboard, and removing dashboard file '/tmp/mod_mono_dashboard_ >> XXGLOBAL_1' failed (Operation not permitted). Further action impossible. >> [Fri Feb 13 18:36:54 2009] [crit] (17)File exists: Failed to create shared >> memory segment for backend 'XXGLOBAL' at '/tmp/mod_mono_dashboard_XXGLOBAL_ >> 1'. >> Question 1) How to get rid of these errors? >> And I have 3 mono-server instances running (ps aux out): >> 1) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >> /tmp/.mod_mono_server2 --nonstop --appconfigdir /etc/mono-server2 >> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >> /tmp/mod_mono_server_site --applications /:/web/site.hu --nonstopSsl >> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >> /tmp/mod_mono_server_site2 --applications /:/web/site2.hu --nonstopSsl >> Question 2) How can I disable server no.1 - I need only 2 instances? >> Problem 2) >> Without setting MonoServerPath, always mod-mono-server is starting, which >> gives a file not found, so i linked mod-mono-server to mod-mono-server2 for >> a quick workaround. >> In /etc/mono-server2/mono-server2-host.conf I have mod-mono-server2, so I >> don't understand where apache gets it's "mod-mono-server" string. >> >> Can anyone please HELP me with a clear, understandable, multi-site mod_mono >> setup? :) >> It would be really appreciated! >> >> Thanks, >> Balint >> >> ?dv?zlettel >> with regards >> >> Kardos B?lint >> _______________________________________ >> http://skaelede.hu 10 (0xA) ?v a magyar weben >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > > > > -- > > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > If one day one reproaches you that your work is not a work of > professional, say you that: > Amateurs built the arch of Noah, and professionals the Titanic. > --------------------------------------------------------------------------- > > Few people are done for independence, it is the privilege of the powerful ones. > --------------------------------------------------------------------------- > > No key was wounded during the drafting of this message. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From surfzoid at gmail.com Sat Feb 14 04:38:58 2009 From: surfzoid at gmail.com (Petit Eric) Date: Sat, 14 Feb 2009 10:38:58 +0100 Subject: [Mono-list] Mono 1.9 + mod_mono on Ubuntu - strange problems In-Reply-To: <48a304b00902131446m2b12296at90bd6acce8a4ab21@mail.gmail.com> References: <84776a970902131110y2baf0a7g7ae4cc40db0fd3f3@mail.gmail.com> <48a304b00902131446m2b12296at90bd6acce8a4ab21@mail.gmail.com> Message-ID: <84776a970902140138j13031db8tedc85fe7a0aaac07@mail.gmail.com> I most read "mono" "apache", so , personaly i find AspNet in mono , intersting after the 1.9 version. Also i really suggest to folow howto from mono website, this is the way i did with really succes http://www.mono-project.com/Mod_mono 2009/2/13 Amc Gmail : > You don't need to upgrade to recent Mono, and i would not recommend it > for start, just to avoid multi-Mono environment configuration issues. > (OK, ok, nothing wrong with multiple-Mono's :-), but I would start > from simple single Mono 1.9, which you do have on Ubuntu 8.10 > out-of-the-box). > > About XXGLOBAL error on apache restart: > i do have that problem on Ubuntu, but it never cause any trouble. > there is nothing like that on other's like CentOS for example. Sorry, > but i have no solution for that error message, but it seems to be safe > to ignore it. > > About apache config: > for Ubuntu 7 & 8.xx to run each site under separate mod-mono-server > instances you can add something like this at the end of > /etc/apache2/sites-available/default: > > > # > # Mono auto-hosting disabled > # > MonoAutoApplication disabled > > # > # Mono control panel > # > # > # SetHandler mono-ctrl > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > # > > # > # default mod-mono-server instance to serve everything below host root > # > AddMonoApplications default "/:/var/www/" > > # > # ASPX test in /tst_aspx virtual dir > # served by tst_aspx mod-mono-server instance > # > Alias /tst_aspx "/var/tst/aspx/" > AddMonoApplications tst_aspx "/tst_aspx:/var/tst/aspx/" > > Options FollowSymLinks > AllowOverride None > Order deny,allow > Allow from all > MonoSetServerAlias tst_aspx > > > # > # my_demo application in /my_demo virtual dir > # served by my_demo mod-mono-server instance > # > Alias /my_demo "/var/my/my_demo/site/" > AddMonoApplications my_demo "/my_demo:/var/my/my_demo/site/" > > Options FollowSymLinks > AllowOverride None > Order deny,allow > Allow from all > MonoSetServerAlias my_demo > > > # > # my2 application in /my2 virtual dir > # served by my2 mod-mono-server instance > # > # Alias /my2 "/var/my/my_2/site/" > # AddMonoApplications my2 "/my2:/var/my/my_2/site/" > # > # MonoSetServerAlias my2 > # SetHandler mono > # > > > > > > On Fri, Feb 13, 2009 at 2:10 PM, Petit Eric wrote: >> I think you should upgrade to a more recent version : >> http://www.go-mono.com/mono-downloads/download.html >> or svn :-) >> >> 2009/2/13 B?lint Kardos : >>> Hi, >>> I've installed Mono 1.9 and mod_mono on Ubuntu. >>> I have two mono-related sites in my apache config. >>> The config is the same structure for both: >>> >>> DocumentRoot /web/site.hu/ >>> MonoServerPath site /usr/bin/mod-mono-server2 >>> MonoApplications site "/:/web/site.hu/" >>> >>> MonoSetServerAlias site >>> SetHandler mono >>> >>> >>> >>> DocumentRoot /web/site2.hu/ >>> MonoServerPath site2 /usr/bin/mod-mono-server2 >>> MonoApplications site2 "/:/web/site2.hu/" >>> >>> MonoSetServerAlias site2 >>> SetHandler mono >>> >>> >>> This is the only way I found to start 2 (two) instances of the mono-server. >>> This brings up >>> Problem 1) >>> On Apache start, I see an error: >>> [Fri Feb 13 18:36:54 2009] [crit] (13)Permission denied: Failed to attach to >>> existing dashboard, and removing dashboard file '/tmp/mod_mono_dashboard_ >>> XXGLOBAL_1' failed (Operation not permitted). Further action impossible. >>> [Fri Feb 13 18:36:54 2009] [crit] (17)File exists: Failed to create shared >>> memory segment for backend 'XXGLOBAL' at '/tmp/mod_mono_dashboard_XXGLOBAL_ >>> 1'. >>> Question 1) How to get rid of these errors? >>> And I have 3 mono-server instances running (ps aux out): >>> 1) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >>> /tmp/.mod_mono_server2 --nonstop --appconfigdir /etc/mono-server2 >>> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >>> /tmp/mod_mono_server_site --applications /:/web/site.hu --nonstopSsl >>> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename >>> /tmp/mod_mono_server_site2 --applications /:/web/site2.hu --nonstopSsl >>> Question 2) How can I disable server no.1 - I need only 2 instances? >>> Problem 2) >>> Without setting MonoServerPath, always mod-mono-server is starting, which >>> gives a file not found, so i linked mod-mono-server to mod-mono-server2 for >>> a quick workaround. >>> In /etc/mono-server2/mono-server2-host.conf I have mod-mono-server2, so I >>> don't understand where apache gets it's "mod-mono-server" string. >>> >>> Can anyone please HELP me with a clear, understandable, multi-site mod_mono >>> setup? :) >>> It would be really appreciated! >>> >>> Thanks, >>> Balint >>> >>> ?dv?zlettel >>> with regards >>> >>> Kardos B?lint >>> _______________________________________ >>> http://skaelede.hu 10 (0xA) ?v a magyar weben >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> >> >> >> -- >> >> Cordially. >> >> Small Eric Quotations of the days: >> --------------------------------------------------------------------------- >> If one day one reproaches you that your work is not a work of >> professional, say you that: >> Amateurs built the arch of Noah, and professionals the Titanic. >> --------------------------------------------------------------------------- >> >> Few people are done for independence, it is the privilege of the powerful ones. >> --------------------------------------------------------------------------- >> >> No key was wounded during the drafting of this message. >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From james at mansionfamily.plus.com Sat Feb 14 15:54:59 2009 From: james at mansionfamily.plus.com (James Mansion) Date: Sat, 14 Feb 2009 20:54:59 +0000 Subject: [Mono-list] New socket async methods and SocketAsyncEventArgs? Message-ID: <49972FA3.6080906@mansionfamily.plus.com> How can I tell what the state of library implementation is now? In particular - have the optimisations enabled by the new async socket methods and SocketAsyncEventArgs been implemented? What sort of scalability is provided for async socket IO - is it as good as I would get on Windows hitting IOCPs directly? Or, indeed, as good as I might expect with NIO and a JVM? I'd hope to be able to push 30,000 connections or so if not push the raw limits (cf http://www.lenholgate.com/archives/000564.html and assorted limits tested with libevent and libev etc). I've had more than 10k connections on an XP workstation with Apache MINA, so this sort of thing is achievable) James From ddambro at gmail.com Sat Feb 14 19:35:11 2009 From: ddambro at gmail.com (ddambro) Date: Sat, 14 Feb 2009 16:35:11 -0800 (PST) Subject: [Mono-list] More .NET and mono floating point inconsistencies Message-ID: <22018718.post@talk.nabble.com> I previously posted about some differences I noticed between the floating point math in .NET and mono http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html here . The bug report can be found https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The patch provided (Thank you!) fixes several issues I was encountering, but unfortunately it led me to discover a couple more. The following two code samples were tested x86 machines using Linux mono 2.2 with the patch found in the bug report, a clean Windows mono 2.0.1, and the latest version of .NET targeting 3.0 framework and x86. --- 1. using System; using System.Runtime.CompilerServices; class Testing { [MethodImpl(MethodImplOptions.NoInlining)] public static void Main() { float f1=200; float distance=Distance(300, 500, 387.5f, 362.5f); float dist = 1 - (distance / f1); float distSqud = dist * dist; Console.WriteLine(distSqud.ToString("R")); foreach (byte b in BitConverter.GetBytes(distSqud)) Console.WriteLine(b); } public static float Distance(float x1, float y1, float x2, float y2) { float xDist = x1 - x2; float yDist = y1 - y2; float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); return dist; } On .NET this code produces: 0.0342619047 54 86 12 61 and on mono it produces: 0.03426191 55 86 12 61 --- 2. using System; using System.Runtime.CompilerServices; class Testing { [MethodImpl(MethodImplOptions.NoInlining)] public static void Main() { float distance = Distance(616.161255f, 391.2928f, 550.8382f, 131.006973f); Console.WriteLine(distance.ToString("R")); foreach (byte b in BitConverter.GetBytes(distance)) Console.WriteLine(b); } public static float Distance(float x1, float y1, float x2, float y2) { float xDist = x1 - x2; float yDist = y1 - y2; float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); Console.WriteLine(dist.ToString("R")); foreach (byte b in BitConverter.GetBytes(dist)) Console.WriteLine(b); return dist; } } On .NET this code produces: 268.3576 198 45 134 67 268.3576 198 45 134 67 and on mono it produces: 268.357635 199 45 134 67 268.357635 199 45 134 67 --- These seem to be very similar to the issues I was encountering before, but they are not fixed by the patch. What is the best way to resolve these inconsistencies? Thanks, David -- View this message in context: http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22018718.html Sent from the Mono - General mailing list archive at Nabble.com. From kornelpal at gmail.com Sun Feb 15 07:54:05 2009 From: kornelpal at gmail.com (=?ISO-8859-1?Q?Korn=E9l_P=E1l?=) Date: Sun, 15 Feb 2009 13:54:05 +0100 Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <22018718.post@talk.nabble.com> References: <22018718.post@talk.nabble.com> Message-ID: <4998106D.9060205@gmail.com> Hi, Thanks for the test cases, I'll invetigate these as well and try to fix them. The best way to get bugs fixed is to produce test cases and report them in buzilla. You can help more if you are able to provide a patch to fix the bugs. Note that for some reasons Novell guys seem to ignore this bug mostly because they have other things to do and their approval is required for these changes. Could you please describe your scenario (application name, purpose, etc. if they are public) where you need these floating point roundings and describe why these bugs are critical for you. Providing some description may raise component owners' attention. Korn?l ddambro wrote: > I previously posted about some differences I noticed between the floating > point math in .NET and mono > http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html > here . The bug report can be found > https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The patch > provided (Thank you!) fixes several issues I was encountering, but > unfortunately it led me to discover a couple more. The following two code > samples were tested x86 machines using Linux mono 2.2 with the patch found > in the bug report, a clean Windows mono 2.0.1, and the latest version of > .NET targeting 3.0 framework and x86. > > --- > 1. > > using System; > using System.Runtime.CompilerServices; > > class Testing > { > [MethodImpl(MethodImplOptions.NoInlining)] > public static void Main() > { > float f1=200; > > float distance=Distance(300, 500, 387.5f, 362.5f); > > float dist = 1 - (distance / f1); > > float distSqud = dist * dist; > > Console.WriteLine(distSqud.ToString("R")); > > foreach (byte b in BitConverter.GetBytes(distSqud)) > Console.WriteLine(b); > > } > > public static float Distance(float x1, float y1, float x2, float y2) > { > float xDist = x1 - x2; > float yDist = y1 - y2; > float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); > return dist; > } > > On .NET this code produces: > 0.0342619047 > 54 > 86 > 12 > 61 > > and on mono it produces: > 0.03426191 > 55 > 86 > 12 > 61 > > --- > 2. > > using System; > using System.Runtime.CompilerServices; > > class Testing > { > [MethodImpl(MethodImplOptions.NoInlining)] > public static void Main() > { > float distance = Distance(616.161255f, 391.2928f, 550.8382f, > 131.006973f); > Console.WriteLine(distance.ToString("R")); > > foreach (byte b in BitConverter.GetBytes(distance)) > Console.WriteLine(b); > } > > public static float Distance(float x1, float y1, float x2, float y2) > { > float xDist = x1 - x2; > float yDist = y1 - y2; > float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); > > Console.WriteLine(dist.ToString("R")); > > foreach (byte b in BitConverter.GetBytes(dist)) > Console.WriteLine(b); > > return dist; > } > } > > On .NET this code produces: > 268.3576 > 198 > 45 > 134 > 67 > 268.3576 > 198 > 45 > 134 > 67 > > and on mono it produces: > 268.357635 > 199 > 45 > 134 > 67 > 268.357635 > 199 > 45 > 134 > 67 > > --- > These seem to be very similar to the issues I was encountering before, but > they are not fixed by the patch. What is the best way to resolve these > inconsistencies? > > Thanks, > David From kardosbalint at gmail.com Sun Feb 15 09:49:25 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Sun, 15 Feb 2009 15:49:25 +0100 Subject: [Mono-list] GDI+ and Mono 2.0.1 In-Reply-To: <1234552470.5905.40.camel@mizar.home> References: <1233771121.9198.255.camel@mizar.home> <1233774175.9198.264.camel@mizar.home> <1234552470.5905.40.camel@mizar.home> Message-ID: Hi Sebastien, I've created the bugreport - https://bugzilla.novell.com/show_bug.cgi?id=475844&action=View with the full project test-case attached. and finally i managed to test it with the latest opensuse + mono 2.2 official packages - same results as with mono 1.9 (screenshots attached). thanks, b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Fri, Feb 13, 2009 at 20:14, Sebastien Pouliot < sebastien.pouliot at gmail.com> wrote: > On Fri, 2009-02-13 at 20:13 +0100, B?lint Kardos wrote: > > Hi Sebastien, > > > > > > I've installed a clear Ubuntu 8.04 version and have Mono 1.9 running. > > Finally, it is partly working for now. > > > > > > The main error was with the incomplete GDI packages on the old Fedora > > I was using, as I thought so before. > > Great! ?I'm glad you could sort it out. > > > Now the program is writing text to the PNG canvas, BUT with a default > > font, not with the custom one I've choosed. > > > > > > I think now it qualifies for a Bugzilla bugreport :) > > Yes, that should be easy to duplicate. > > Thanks > Sebastien > > > > > Thanks again, > > > > > > b. > > > > > > > > > > > > ?dv?zlettel > > with regards > > > > Kardos B?lint > > _______________________________________ > > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > > > > On Wed, Feb 4, 2009 at 20:02, Sebastien Pouliot > > wrote: > > On Wed, 2009-02-04 at 19:27 +0100, B?lint Kardos wrote: > > > Hi Sebastien, > > > > > > > > > thanks for your reply! > > > I only want to deploy it on the Linux server, so I'm working > > on this > > > part first. > > > > > > > > > I found the solution, it had no rights to write to a given > > folder. > > > > > > Yep, a bit lame but this is how GDI+/SD reports such > > permission issues. > > > > > It now executes, but the output file is just 192 bytes > > long, and only > > > has the header of the PNG stream. > > > > > > My previous suggestion still applies. Once you have a small > > EXE it will > > be much easier to debug (and/or trace) to see what's going on. > > > > > The whole process is the following: > > > > > > > > > 1) open a 24bit PNG file > > > 2) add the text > > > 3) save the file to a given directory > > > 4) send it to the out stream > > > > > > > > > Image.FromFile would throw an exception if it would not find > > the > > > original file, > > > the TextWriter would throw an exception if it would not find > > the font, > > > > > > TextWriter / font ? not likely ;-) > > > > > so I can't find any reason why it's not working. > > > > > > Try to remove step 2 (adding the text) and see if a copy of > > the original > > file is saved (or just an header). > > > > > > > > I don't know, possibly I'm missing some required .so files? > > > I installed everything from the mono packages, and have > > libpng > > > installed as well. > > > > > > Possible but unlikely, since you would have hit an exception > > (or a > > crash). > > > > > > > > > > > > > > > > > > > ?dv?zlettel > > > with regards > > > > > > Kardos B?lint > > > _______________________________________ > > > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > > > > > > > On Wed, Feb 4, 2009 at 19:12, Sebastien Pouliot > > > wrote: > > > On Wed, 2009-02-04 at 18:55 +0100, B?lint Kardos > > wrote: > > > > Hi, > > > > > > > > > > > > I have written a small HttpHandler which > > automatically > > > generates text > > > > on the fly with a custom font, added to the > > > > System.Drawing.Font.PrivateFontCollection. > > > > > > > > > > > > with Ms.net 3.5sp1, it works fine. > > > > > > > > > > > > with Mono 2.0.1, > > > > on Vista, it dies with: > > > > > > > > > > > > Stacktrace: > > > > > > > > > > > > at (wrapper managed-to-native) > > > > > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > > > (intptr&) > > > > <0x00004> > > > > at (wrapper managed-to-native) > > > > > > System.Drawing.GDIPlus.GdipDeletePrivateFontCollection > > > (intptr&) > > > > <0xffffffff> > > > > at > > System.Drawing.Text.PrivateFontCollection.Dispose > > > (bool) > > > > [0x00015] in C:\cygwin\tmp\monobuild\build\BUILD > > \mono-2.0.1 > > > \mcs\class > > > > \System.Drawing\System.Drawing.Text > > > \PrivateFontCollection.cs:80 > > > > > > > > > > > > > > > > > > > > on Linux, it dies with: > > > > > > > > > > > > System.Exception: Generic Error [GDI+ status: > > GenericError] > > > > at System.Drawing.GDIPlus.CheckStatus (Status > > status) > > > [0x00000] > > > > at System.Drawing.Image.Save (System.String > > filename, > > > System.Drawing.Imaging.ImageCodecInfo encoder, > > > System.Drawing.Imaging.EncoderParameters > > encoderParams) > > > [0x00000] > > > > at System.Drawing.Image.Save (System.String > > filename, > > > System.Drawing.Imaging.ImageFormat format) [0x00000] > > > > > > > > none of the which are further traceable. > > > > > > > > > ?This is likely two different issues. I recall (it > > was a > > > _long_ time > > > ago) some win32 specific behavior > > wrt ?PrivateFontCollection - > > > explaining the first case. > > > > > > I suspect the later error (on Linux) is due to > > something else. > > > > > > > Any clues on how to further debug? > > > > thank you, > > > > > > > > > Try to create a test case outside your HTTP handler > > (i.e. a > > > small EXE). > > > Then use "mono --debug app.exe" to get a bit more > > information > > > and fill a > > > bug report on http://bugzilla.novell.com > > > > > > Thanks, > > > Sebastien > > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090215/1394cf4f/attachment-0001.html From thatismatt at gmail.com Mon Feb 16 05:30:16 2009 From: thatismatt at gmail.com (Matt Lee) Date: Mon, 16 Feb 2009 10:30:16 +0000 Subject: [Mono-list] Regex Exception - Discrepancy between .NET and Mono Message-ID: Dear All, The simple class below throws an exception, but under .NET an ArgumentNullException is thrown, whereas under Mono a NullReferenceException is thrown. using System.Text.RegularExpressions; public class Program { public static void Main(string[] args) { var r = new Regex(""); r.Match(null); } } I spotted this because the stack trace contained line references that weren't on my machine: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 startat) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\build\common\Consts.cs:1 at System.Text.RegularExpressions.Regex.Match (System.String input) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\System\System.Text.RegularExpressions\Regex.cs:337 at Program.Main (System.String[] args) [0x00000] For reference the .NET stack trace is below: Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Match(String input) at Program.Main(String[] args) Should I file a bug about this? Or do we not really! Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090216/0ea9ca37/attachment.html From bnicolotti at siapcn.it Mon Feb 16 06:04:37 2009 From: bnicolotti at siapcn.it (Bartolomeo Nicolotti) Date: Mon, 16 Feb 2009 03:04:37 -0800 (PST) Subject: [Mono-list] StoredProcedure Output Parameters System.Data.Odbc In-Reply-To: <21997635.post@talk.nabble.com> References: <21997635.post@talk.nabble.com> Message-ID: <22035240.post@talk.nabble.com> Hi, the problem seems to be that Mono calls SQLPrepare before binding parameters Bartolomeo Nicolotti wrote: >As you can see from here: > >http://www.itjungle.com/mgo/mgo120503-story01.html > >the code I've written in mono should be ok. The link above is an example in >visual basic .net on windows, I'm using mono on linux. > > > Ok, but the log shows a error coming back from the driver where one should not occur, so I suggest the problem lies with the driver. All unixODBC is doing at this point is passing the call from the app to the driver. Try executing the same call in isql. {CALL GIANLUCA.Provacs( ? )} it should fail to SQLExecute it, but if the driver is working as expected, the SQLPrepare should succeed. It may be that your DB2 driver requires the parameters to a SQLPrepare on a stored procedure to be bound before calling prepare, but if it does, and the mono code only binds after calling SQLPrepare then all you can do is change the code in mono, or use a different driver. http://www.nabble.com/inputOutput-parameter-problem-in-calling-stored-Procedure-td22002537.html Bartolomeo Nicolotti wrote: > > Hi, > > I'm trying unixodbc with System.Data.ODBC to access DB2 for iseries > > I can do select, see this file > http://www.nabble.com/file/p21997635/helloODBC.cs helloODBC.cs , but I've > some problems with out parameters of stored procedueres. > > With this file http://www.nabble.com/file/p21997635/helloODBCCommand.cs > helloODBCCommand.cs I get: > > Hello, Dunkel > Eseguo:CALL QGPL.WBC022(9) > Eseguo:CALL GIANLUCA.PROVACS > System.Data.Odbc.OdbcException: ERROR [42000] [unixODBC][IBM][iSeries > Access ODBC Driver][DB2 UDB]SQL0104 - Token GIANLUCA non valido. Token > validi: ( END GET SET CALL DROP FREE HOLD LOCK OPEN WITH ALTER. > > > It seems that setting the CommandType to StoredProcedure has no effect, as > one can also see from the source of mono (I've installed mono from source) > > /home/siap/dwn/src/mono/mono-2.2/mcs/class/System.Data/System.Data.Odbc/OdbcCommand > > the ExecuteNonQuery member function call ExecSQL that > > > private int ExecuteNonQuery (bool freeHandle) > { > ... > ExecSQL(CommandText); > > ExecSQL is: > > private void ExecSQL (string sql) > { > OdbcReturn ret; > if (! prepared && Parameters.Count <= 0) { > > ReAllocStatment (); > > ret = libodbc.SQLExecDirect (hstmt, sql, > libodbc.SQL_NTS); > if ((ret != OdbcReturn.Success) && (ret != > OdbcReturn.SuccessWithInfo) && > (ret != OdbcReturn.NoData)) > throw > connection.CreateOdbcException (OdbcHandleType.Stmt, hstmt); > return; > } > > if (!prepared) > Prepare(); > > BindParameters (); > ret = libodbc.SQLExecute (hstmt); > if (ret != OdbcReturn.Success && ret != > OdbcReturn.SuccessWithInfo) > throw connection.CreateOdbcException > (OdbcHandleType.Stmt, hstmt); > } > > Should I use prepared to BindParameters? > > How can I get the output parameter of a Stored Procedure? > > Many thanks > > Best regards > -- View this message in context: http://www.nabble.com/StoredProcedure-Output-Parameters-System.Data.Odbc-tp21997635p22035240.html Sent from the Mono - General mailing list archive at Nabble.com. From zarevucky.jiri at gmail.com Mon Feb 16 08:37:49 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Mon, 16 Feb 2009 14:37:49 +0100 Subject: [Mono-list] Regex Exception - Discrepancy between .NET and Mono In-Reply-To: References: Message-ID: Hello. I guess you can file a bug, just for the sake of uniform behavior. Although it probably won't cause trouble to anyone (at least I can't imagine the scenario), fixing it should be ridiculously easy. 2009/2/16 Matt Lee : > Dear All, > The simple class below throws an exception, but under .NET > an ArgumentNullException is thrown, whereas under Mono > a NullReferenceException is thrown. > using System.Text.RegularExpressions; > public class Program > { > public static void Main(string[] args) > { > var r = new Regex(""); > r.Match(null); > } > } > I spotted this because the stack trace contained line references that > weren't on my machine: > Unhandled Exception: System.NullReferenceException: Object reference not set > to an instance of an object > at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 > startat) [0x00000] > in > C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\build\common\Consts.cs:1 > at System.Text.RegularExpressions.Regex.Match (System.String input) > [0x00000] > in > C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\System\System.Text.RegularExpressions\Regex.cs:337 > at Program.Main (System.String[] args) [0x00000] > For reference the .NET stack trace is below: > Unhandled Exception: System.ArgumentNullException: Value cannot be null. > Parameter name: input > at System.Text.RegularExpressions.Regex.Match(String input) > at Program.Main(String[] args) > Should I file a bug about this? Or do we not really! > Thanks, > Matt > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From kumpera at gmail.com Mon Feb 16 09:30:41 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Mon, 16 Feb 2009 12:30:41 -0200 Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <4998106D.9060205@gmail.com> References: <22018718.post@talk.nabble.com> <4998106D.9060205@gmail.com> Message-ID: <8cca42d80902160630m7c091da9g537ea320b6f305b2@mail.gmail.com> Kornel, I'll try to review your patch on the bugzilla issue this week. Sorry for the delay. Cheers, Rodrigo On Sun, Feb 15, 2009 at 10:54 AM, Korn?l P?l wrote: > Hi, > > Thanks for the test cases, I'll invetigate these as well and try to fix > them. > > The best way to get bugs fixed is to produce test cases and report them > in buzilla. > > You can help more if you are able to provide a patch to fix the bugs. > > Note that for some reasons Novell guys seem to ignore this bug mostly > because they have other things to do and their approval is required for > these changes. > > Could you please describe your scenario (application name, purpose, etc. > if they are public) where you need these floating point roundings and > describe why these bugs are critical for you. > > Providing some description may raise component owners' attention. > > Korn?l > > ddambro wrote: > > I previously posted about some differences I noticed between the floating > > point math in .NET and mono > > > http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html > > here . The bug report can be found > > https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The patch > > provided (Thank you!) fixes several issues I was encountering, but > > unfortunately it led me to discover a couple more. The following two > code > > samples were tested x86 machines using Linux mono 2.2 with the patch > found > > in the bug report, a clean Windows mono 2.0.1, and the latest version of > > .NET targeting 3.0 framework and x86. > > > > --- > > 1. > > > > using System; > > using System.Runtime.CompilerServices; > > > > class Testing > > { > > [MethodImpl(MethodImplOptions.NoInlining)] > > public static void Main() > > { > > float f1=200; > > > > float distance=Distance(300, 500, 387.5f, 362.5f); > > > > float dist = 1 - (distance / f1); > > > > float distSqud = dist * dist; > > > > Console.WriteLine(distSqud.ToString("R")); > > > > foreach (byte b in BitConverter.GetBytes(distSqud)) > > Console.WriteLine(b); > > > > } > > > > public static float Distance(float x1, float y1, float x2, float y2) > > { > > float xDist = x1 - x2; > > float yDist = y1 - y2; > > float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); > > return dist; > > } > > > > On .NET this code produces: > > 0.0342619047 > > 54 > > 86 > > 12 > > 61 > > > > and on mono it produces: > > 0.03426191 > > 55 > > 86 > > 12 > > 61 > > > > --- > > 2. > > > > using System; > > using System.Runtime.CompilerServices; > > > > class Testing > > { > > [MethodImpl(MethodImplOptions.NoInlining)] > > public static void Main() > > { > > float distance = Distance(616.161255f, 391.2928f, 550.8382f, > > 131.006973f); > > Console.WriteLine(distance.ToString("R")); > > > > foreach (byte b in BitConverter.GetBytes(distance)) > > Console.WriteLine(b); > > } > > > > public static float Distance(float x1, float y1, float x2, float y2) > > { > > float xDist = x1 - x2; > > float yDist = y1 - y2; > > float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); > > > > Console.WriteLine(dist.ToString("R")); > > > > foreach (byte b in BitConverter.GetBytes(dist)) > > Console.WriteLine(b); > > > > return dist; > > } > > } > > > > On .NET this code produces: > > 268.3576 > > 198 > > 45 > > 134 > > 67 > > 268.3576 > > 198 > > 45 > > 134 > > 67 > > > > and on mono it produces: > > 268.357635 > > 199 > > 45 > > 134 > > 67 > > 268.357635 > > 199 > > 45 > > 134 > > 67 > > > > --- > > These seem to be very similar to the issues I was encountering before, > but > > they are not fixed by the patch. What is the best way to resolve these > > inconsistencies? > > > > Thanks, > > David > _______________________________________________ > 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/20090216/c1933d09/attachment.html From Paebbels at gmail.com Mon Feb 16 16:33:25 2009 From: Paebbels at gmail.com (Paebbels) Date: Mon, 16 Feb 2009 13:33:25 -0800 (PST) Subject: [Mono-list] Console.ReadKey() => no spezial chars on Linux Message-ID: <22011524.post@talk.nabble.com> Hi, I programmed a console application in VB .NET with VS08 which uses cmd-InputBuffer to display an history of old commands in my application. After porting this application to Mono (Debian, v1.9.1) my application has no history feature (my shell is bash). Then I decided to uses Console.ReadKey() instead of ReadLine(). I usesd the Microsoft MSDN example to display the KeyChars, KeyCodes and Modifiers -------------------- [...] Console.TreatControlCAsInput = True Console.WriteLine(m1) Do Console.WriteLine(m2) sb.Length = 0 cki = Console.ReadKey(True) sb.Append(m3) If cki.Modifiers <> 0 Then If (cki.Modifiers And ConsoleModifiers.Alt) <> 0 Then sb.Append("ALT+") End If If (cki.Modifiers And ConsoleModifiers.Shift) <> 0 Then sb.Append("SHIFT+") End If If (cki.Modifiers And ConsoleModifiers.Control) <> 0 Then sb.Append("CTL+") End If End If sb.Append(cki.Key.ToString()) sb.AppendFormat(m4, cki.KeyChar, Convert.ToInt32(cki.KeyChar)) sb.AppendLine().AppendLine() Console.WriteLine(sb.ToString()) Loop While cki.Key <> ConsoleKey.Escape -------------------- My ConsoleExtended Class has a mask with all allowed keys assoziated with an delegate e.g. AddCharToBuffer for normal alphanumeric-chars. Compiled on Windows this application does what it should do ^^ After porting it to Mono some ConsoleKeyInfo-Instances have an abnormal value ... returns ConsoleKey.Enter which has ASCII Char 13 on Windows, on Mono it has 10 (I know the differnet behavior of \n und \r\n ....) Home returns on Windows ConsoleKey.Home, on Mono ConsoleKey.Esc with ASCII Char 27 (also: End, Delete, ....) Backspace returns on Windows ConsoleKey.Backspace ASCII Char 8, on Mono ConsoleKey.Backspace with ASCII Char 0 After some experiments I noticed that Console.In has differnet Encodings. Then I changed encoding to UTF-8, but nothing happend. Why is there a differnet behavior? What ConsoleKeyInfo-Values are used in Mono? How to use spezial Keys like Home, End, Delete, Backspace, ... Here are some code fragments: -------------------------- Public Sub New() With OutputBufferSize .Width = Console.BufferWidth .Height = Console.BufferHeight End With Dim DefaultMask As New Dictionary(Of ConsoleKeyInfo, InputAction) KeyMasks.Add(DefaultMaskName, DefaultMask) CurrentKeyMask = DefaultMask AddKeyToMask("rtn", DefaultMaskName, Function() False) AddKeyToMask("esc", DefaultMaskName, AddressOf ClearInputBuffer) AddKeyToMask("del", DefaultMaskName, AddressOf DeleteAtInputBufferPos) AddKeyToMask("bsp", DefaultMaskName, AddressOf DeleteBeforeInputBufferPos) AddKeyToMask("home", DefaultMaskName, AddressOf InputBufferPosHome) AddKeyToMask("end", DefaultMaskName, AddressOf InputBufferPosEnd) AddKeyToMask("left", DefaultMaskName, AddressOf InputBufferPosLeft) AddKeyToMask("right", DefaultMaskName, AddressOf InputBufferPosRight) AddKeyToMask("up", DefaultMaskName, AddressOf HistoryBack) AddKeyToMask("down", DefaultMaskName, AddressOf HistoryNext) AllowAlphaNumForMask(DefaultMaskName) AllowSpezialCharsForMask(DefaultMaskName) End Sub Public Sub AddKeyToMask(ByVal KeyName As String, ByVal MaskName As String, ByVal KeyAction As Action) If KeyMasks.ContainsKey(MaskName) Then Select Case KeyName Case "a" KeyMasks(MaskName).Add(New ConsoleKeyInfo("a"c, ConsoleKey.A, False, False, False), New InputAction With {.DisplayChar = "a", .BufferChar = "a", .Action = KeyAction}) Case "b" KeyMasks(MaskName).Add(New ConsoleKeyInfo("b"c, ConsoleKey.B, False, False, False), New InputAction With {.DisplayChar = "b", .BufferChar = "b", .Action = KeyAction}) Case "c" KeyMasks(MaskName).Add(New ConsoleKeyInfo("c"c, ConsoleKey.C, False, False, False), New InputAction With {.DisplayChar = "c", .BufferChar = "c", .Action = KeyAction}) [...] Case "rtn" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(13), ConsoleKey.Enter, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "esc" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(27), ConsoleKey.Escape, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "del" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.Delete, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "bsp" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(8), ConsoleKey.Backspace, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "home" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.Home, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "end" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.End, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "left" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.LeftArrow, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "right" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.RightArrow, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "up" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.UpArrow, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case "down" KeyMasks(MaskName).Add(New ConsoleKeyInfo(Convert.ToChar(0), ConsoleKey.DownArrow, False, False, False), New InputAction With {.DisplayChar = "", .BufferChar = "", .Action = KeyAction}) Case Else Throw New Exception("Unknown Key") End Select End If End Sub Public Sub AllowLowerAlphaForMask(ByVal MaskName) If KeyMasks.ContainsKey(MaskName) Then For Each LowerAlpha As String In "abcdefghijklmnopqrstuvwxyz" AddKeyToMask(LowerAlpha, MaskName, AddressOf AddToInputBuffer) Next End If End Sub Private Function AddToInputBuffer(ByVal Key As ConsoleKeyInfo, ByVal InputAction As InputAction) As Boolean If InputBufferPos = InputBuffer.Length Then InputBuffer &= InputAction.BufferChar InputBufferPos += 1 Console.Write(InputAction.DisplayChar) OutputBufferPos.Left += 1 ElseIf InputBufferPos < InputBuffer.Length Then InputBuffer = InputBuffer.Insert(InputBufferPos, InputAction.BufferChar) InputBufferPos += 1 Console.Write(InputAction.DisplayChar) OutputBufferPos.Left += 1 Console.Write(InputBuffer.Substring(InputBufferPos, InputBuffer.Length - InputBufferPos)) Console.CursorLeft = OutputBufferPos.Left Else Throw New OverflowException("BufferPos behind last Buffer element.") End If Return True End Function Public Function ReadExended() As String InputBuffer = "" InputBufferPos = 0 With OutputBufferPos .Left = Console.CursorLeft .Top = Console.CursorTop End With ReadLineRootPoint = OutputBufferPos While (True) Dim Key As ConsoleKeyInfo = Console.ReadKey(True) Try Dim IA As InputAction = CurrentKeyMask(Key) Dim IAR As Boolean = IA.Action.Invoke(Key, IA) If IAR = False Then Exit While Catch ex As Exception Console.WriteLine() Console.WriteLine("nicht gefunden - {0}", ex.ToString()) Console.WriteLine("Key: {0}, KeyChar: {1}, KeyCharCHR: {2}, Modifier: {3}", Key.Key.ToString(), Key.KeyChar.ToString(), Convert.ToInt32(Key.KeyChar).ToString(), Key.Modifiers.ToString()) End Try End While If _EnableHistory = True Then InputBufferHistory.Enqueue(InputBuffer) End If Return InputBuffer End Function http://www.nabble.com/file/p22011524/ExtendedConsole.vb ExtendedConsole.vb -- View this message in context: http://www.nabble.com/Console.ReadKey%28%29-%3D%3E-no-spezial-chars-on-Linux-tp22011524p22011524.html Sent from the Mono - General mailing list archive at Nabble.com. From chrispl78 at yahoo.com Mon Feb 16 17:01:10 2009 From: chrispl78 at yahoo.com (Chris Plasun) Date: Mon, 16 Feb 2009 14:01:10 -0800 (PST) Subject: [Mono-list] MPC8313 and Mono Message-ID: <905814.60589.qm@web58102.mail.re3.yahoo.com> Hi, Has anyone done any development with Mono on the Freescale MPC8313 embbeded board or anything related? How would I go about building Mono 2.2 for this board running a minimal version of linux with no gcc? I'm quite a noob to this. A Windows developer thrown off the deep end. Thanks, Chris From james at mansionfamily.plus.com Mon Feb 16 18:55:29 2009 From: james at mansionfamily.plus.com (James Mansion) Date: Mon, 16 Feb 2009 23:55:29 +0000 Subject: [Mono-list] inetd launched process Message-ID: <4999FCF1.6090105@mansionfamily.plus.com> Does mono have an ability to recover a socket-like object from stdin if it has been started from inetd, in the way that Java does with System.inheritedChannel()? James -------------- next part -------------- An embedded message was scrubbed... From: "AdultWork.com Alerts" Subject: New Member Matching: Home Date: Mon, 16 Feb 2009 22:30:03 -0000 Size: 2033 Url: http://lists.ximian.com/pipermail/mono-list/attachments/20090216/9f782f2b/attachment.eml From daniel.soto2k at gmail.com Tue Feb 17 05:23:02 2009 From: daniel.soto2k at gmail.com (Daniel Soto) Date: Tue, 17 Feb 2009 07:23:02 -0300 Subject: [Mono-list] what about debugger in monodevelop Message-ID: <1234866182.8560.5.camel@localhost> Hi List! I've take a look to new features in Monodevelop Beta 1, released few days ago (yesterday to be more exact). But I not see the built-in debugger integration in the feature list. According to Mono roadmap, the future release of Mono 2.4 in March 2009 it will include Monodevelop 2.0 with built-in debugger integration. This will be true? Anyone has test the Beta 1 of Monodevelop? Mono is every day greater!! Thanks! From lluis at novell.com Tue Feb 17 05:46:40 2009 From: lluis at novell.com (Lluis Sanchez Gual) Date: Tue, 17 Feb 2009 11:46:40 +0100 Subject: [Mono-list] what about debugger in monodevelop In-Reply-To: <1234866182.8560.5.camel@localhost> References: <1234866182.8560.5.camel@localhost> Message-ID: <1234867600.8514.47.camel@linux-zn6q> El dt 17 de 02 de 2009 a les 07:23 -0300, en/na Daniel Soto va escriure: > Hi List! > > I've take a look to new features in Monodevelop Beta 1, released few > days ago (yesterday to be more exact). But I not see the built-in > debugger integration in the feature list. > > According to Mono roadmap, the future release of Mono 2.4 in March 2009 > it will include Monodevelop 2.0 with built-in debugger integration. This > will be true? Anyone has test the Beta 1 of Monodevelop? The release notes only describe new features. Debugger integration was included in the previous release. > > Mono is every day greater!! > > Thanks! > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From twiest at novell.com Tue Feb 17 16:36:40 2009 From: twiest at novell.com (Thomas Wiest) Date: Tue, 17 Feb 2009 14:36:40 -0700 Subject: [Mono-list] Announcing Mono 2.4 Preview 2... In-Reply-To: <21957787.post@talk.nabble.com> References: <4988C97A.80000@novell.com> <21957787.post@talk.nabble.com> Message-ID: <499B2DE8.1080407@novell.com> ekot wrote: > This bug is a regression from 2.2 > https://bugzilla.novell.com/show_bug.cgi?id=472805 > Added, thanks! :) Thomas From twiest at novell.com Tue Feb 17 16:42:25 2009 From: twiest at novell.com (Thomas Wiest) Date: Tue, 17 Feb 2009 14:42:25 -0700 Subject: [Mono-list] Announcing Mono 2.4 Preview 2... In-Reply-To: References: Message-ID: <499B2F41.1070804@novell.com> Adrien Dessemond wrote: > On Wed, Feb 4, 2009 at 1:27 PM, wrote: > > Hi, > > >> From: Thomas Wiest >> Subject: [Mono-list] Announcing Mono 2.4 Preview 2... >> >> Hey Everyone, >> >> We've just released Mono 2.4 Preview 2 today! >> >> Please help us out by giving it a try with your applications. >> > > Do you still provide some statistics on the Mono framework somewhere > (how many classes are fully/partially implemented, covered areas by > the Mono framework, gaps with MS.Net...)? At worst, where could this > information be extracted from? > Yes, we do! :) http://mono-project.com/Resources What you're probably looking for specifically is this link on that page: http://go-mono.com/status/ Another great way to see if your application will work on Mono is to use the Mono Migration Analyzer (MoMA): http://www.mono-project.com/MoMA Hope this helps, Thomas From twiest at novell.com Tue Feb 17 17:29:27 2009 From: twiest at novell.com (Thomas Wiest) Date: Tue, 17 Feb 2009 15:29:27 -0700 Subject: [Mono-list] Announcing Mono 2.4 Preview 3... Message-ID: <499B3A47.4090304@novell.com> Hey Everyone, We've just released Mono 2.4 Preview 3 today! Please help us out by giving it a try with your applications. As always, you can get the preview/RC releases here: http://mono.ximian.com/monobuild/preview/download-preview/ Please report any bugs that you may find using our Bugs page, AND reply to this thread with the bug numbers so we can track them: http://www.mono-project.com/Bugs You can see the bugs we're tracking for Mono 2.4 here: https://bugzilla.novell.com/buglist.cgi?query_format=advanced&classification=Mono&target_milestone=2.4.x&order=bugs.bug_status%2Cbugs.bug_severity The earlier you file the bugs and reply to this message, the more likely your bugs will get fixed. Special attention is given to regressions, so if you can tell us a version of Mono where the bug worked and you add [Regression] to the beginning of the summary of the bug, then it is much more likely your bug will get fixed. Please help the Mono team to make 2.4 the best ever. Thanks! Mono QA From adrien.dessemond at gmail.com Tue Feb 17 22:11:21 2009 From: adrien.dessemond at gmail.com (Adrien Dessemond) Date: Tue, 17 Feb 2009 22:11:21 -0500 Subject: [Mono-list] Announcing Mono 2.4 Preview 2... In-Reply-To: <499B2F41.1070804@novell.com> References: <499B2F41.1070804@novell.com> Message-ID: On Tue, Feb 17, 2009 at 4:42 PM, Thomas Wiest wrote: > Yes, we do! :) > > http://mono-project.com/Resources > > What you're probably looking for specifically is this link on that page: > > http://go-mono.com/status/ *Exactly* what I need. Thank you Thomas! May I suggest to put that link on a page that could more intuitively be reached (like the front page...)? I shall not be the only one that could ask this sort of question and that can also contribute to better highlight what Mono can do ;-) cheers, Adrien From rweiss at chesapeakebay.net Wed Feb 18 15:17:27 2009 From: rweiss at chesapeakebay.net (Rob Weiss) Date: Wed, 18 Feb 2009 12:17:27 -0800 (PST) Subject: [Mono-list] Why is mono so slow at math compared to .Net? Message-ID: <22086988.post@talk.nabble.com> We have ported a scientific app to RHEL-mono. It runs 7 times slower than it does in native .Net on windows. It does tons floating point math and array processes. Thoughts? Fixes? -- View this message in context: http://www.nabble.com/Why-is-mono-so-slow-at-math-compared-to-.Net--tp22086988p22086988.html Sent from the Mono - General mailing list archive at Nabble.com. From kumpera at gmail.com Wed Feb 18 15:25:37 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 18 Feb 2009 17:25:37 -0300 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <22086988.post@talk.nabble.com> References: <22086988.post@talk.nabble.com> Message-ID: <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> On Wed, Feb 18, 2009 at 5:17 PM, Rob Weiss wrote: > > We have ported a scientific app to RHEL-mono. It runs 7 times slower than > it > does in native .Net on windows. > > It does tons floating point math and array processes. > > Thoughts? Fixes? > Which version of mono and archtecture you ran it? Mono should be no more than 50% slower that .NET on FP intensive code. Please fill a bug report with a test for your issue. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090218/fa896eea/attachment.html From rweiss at chesapeakebay.net Wed Feb 18 15:30:39 2009 From: rweiss at chesapeakebay.net (Robert Weiss) Date: Wed, 18 Feb 2009 15:30:39 -0500 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> References: <22086988.post@talk.nabble.com> <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> Message-ID: No *more* than 50% slower??? I really hope you are kidding me. Original App: C# .Net .Net Framework 2.0 Windows XP Pro Ported Platform: Red Hat Enterprise Linux 5.3 Mono 2.2 C# .Net Tester coming shortly. ________________________________ From: Rodrigo Kumpera [mailto:kumpera at gmail.com] Sent: Wednesday, February 18, 2009 3:26 PM To: Robert Weiss Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] Why is mono so slow at math compared to .Net? On Wed, Feb 18, 2009 at 5:17 PM, Rob Weiss wrote: We have ported a scientific app to RHEL-mono. It runs 7 times slower than it does in native .Net on windows. It does tons floating point math and array processes. Thoughts? Fixes? Which version of mono and archtecture you ran it? Mono should be no more than 50% slower that .NET on FP intensive code. Please fill a bug report with a test for your issue. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090218/dbe32fb1/attachment-0001.html From jon at ffconsultancy.com Wed Feb 18 16:03:07 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Wed, 18 Feb 2009 21:03:07 +0000 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> References: <22086988.post@talk.nabble.com> <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> Message-ID: <200902182103.08069.jon@ffconsultancy.com> On Wednesday 18 February 2009 20:25:37 Rodrigo Kumpera wrote: > Mono should be no more than 50% slower that .NET on FP intensive code. > Please fill a bug report with a test for your issue. Mono 2.2 is >50% slower than .NET on four of the five subtests in SciMark2: http://flyingfrogblog.blogspot.com/2009/01/mono-22.html In particular, Mono is 2x slower than .NET on the FFT test. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From jon at ffconsultancy.com Wed Feb 18 16:07:12 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Wed, 18 Feb 2009 21:07:12 +0000 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: References: <22086988.post@talk.nabble.com> <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> Message-ID: <200902182107.12934.jon@ffconsultancy.com> On Wednesday 18 February 2009 20:30:39 Robert Weiss wrote: > No *more* than 50% slower??? I really hope you are kidding me. Why? .NET is one of the world's most advanced VM implementations and Microsoft have put tremendous resources into building it. Competing with it is *extremely* difficult and will require not only a lot of cash but also a lot of talent. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From kornelpal at gmail.com Wed Feb 18 16:09:20 2009 From: kornelpal at gmail.com (=?ISO-8859-1?Q?Korn=E9l_P=E1l?=) Date: Wed, 18 Feb 2009 22:09:20 +0100 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <200902182107.12934.jon@ffconsultancy.com> References: <22086988.post@talk.nabble.com> <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> <200902182107.12934.jon@ffconsultancy.com> Message-ID: <499C7900.6000907@gmail.com> As I see Mono is using a lot of more advanced and faster technologies/techniques than .NET in core features. The code generator of the JIT however lacks low level optimizations that could eliminate and/or combine native instruction sequences. Korn?l Jon Harrop wrote: > On Wednesday 18 February 2009 20:30:39 Robert Weiss wrote: >> No *more* than 50% slower??? I really hope you are kidding me. > > Why? .NET is one of the world's most advanced VM implementations and Microsoft > have put tremendous resources into building it. Competing with it is > *extremely* difficult and will require not only a lot of cash but also a lot > of talent. > From kumpera at gmail.com Wed Feb 18 16:09:42 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 18 Feb 2009 18:09:42 -0300 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <200902182103.08069.jon@ffconsultancy.com> References: <22086988.post@talk.nabble.com> <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> <200902182103.08069.jon@ffconsultancy.com> Message-ID: <8cca42d80902181309x6e42cd90rc0d368eb2de9f95@mail.gmail.com> On Wed, Feb 18, 2009 at 6:03 PM, Jon Harrop wrote: > On Wednesday 18 February 2009 20:25:37 Rodrigo Kumpera wrote: > > Mono should be no more than 50% slower that .NET on FP intensive code. > > Please fill a bug report with a test for your issue. > > Mono 2.2 is >50% slower than .NET on four of the five subtests in SciMark2: > > http://flyingfrogblog.blogspot.com/2009/01/mono-22.html > > In particular, Mono is 2x slower than .NET on the FFT test. > > Your benchmarks were ran on windows, our main performing target is linux. The F# version of Scimark uses a lot of tail recursion and this is an area that mono has issues. Most code on the .NET platform is written in C#. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090218/78c540e2/attachment.html From kumpera at gmail.com Wed Feb 18 16:15:16 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 18 Feb 2009 18:15:16 -0300 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: References: <22086988.post@talk.nabble.com> <8cca42d80902181225s3501fc5cyc02225dfb5a676c4@mail.gmail.com> Message-ID: <8cca42d80902181315u6a4ce08bgfe00c0be465ea08e@mail.gmail.com> Well, given the huge amount of R&D MS has put on .NET this doesn't come to a surprise. If code is 7x slower this is a performance bug on mono's side. This kind of artifact is possible. Mono weaker point is the garbage collector. If your code churns tons of objects, the performance figures are worse. Are you running on 32 or 64 bits? Intel x86 or itanium? Just post the result of "mono --version", please. On Wed, Feb 18, 2009 at 5:30 PM, Robert Weiss wrote: > No **more** than 50% slower??? I really hope you are kidding me. > > > > Original App: > > C# .Net > > .Net Framework 2.0 > > Windows XP Pro > > > > Ported Platform: > > Red Hat Enterprise Linux 5.3 > > Mono 2.2 > > C# .Net > > > > Tester coming shortly. > ------------------------------ > > *From:* Rodrigo Kumpera [mailto:kumpera at gmail.com] > *Sent:* Wednesday, February 18, 2009 3:26 PM > *To:* Robert Weiss > *Cc:* mono-list at lists.ximian.com > *Subject:* Re: [Mono-list] Why is mono so slow at math compared to .Net? > > > > > > On Wed, Feb 18, 2009 at 5:17 PM, Rob Weiss > wrote: > > > We have ported a scientific app to RHEL-mono. It runs 7 times slower than > it > does in native .Net on windows. > > It does tons floating point math and array processes. > > Thoughts? Fixes? > > > Which version of mono and archtecture you ran it? > > Mono should be no more than 50% slower that .NET on FP intensive code. > Please > fill a bug report with a test for your issue. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090218/f30bc605/attachment.html From jon at ffconsultancy.com Wed Feb 18 16:40:04 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Wed, 18 Feb 2009 21:40:04 +0000 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <8cca42d80902181309x6e42cd90rc0d368eb2de9f95@mail.gmail.com> References: <22086988.post@talk.nabble.com> <200902182103.08069.jon@ffconsultancy.com> <8cca42d80902181309x6e42cd90rc0d368eb2de9f95@mail.gmail.com> Message-ID: <200902182140.04434.jon@ffconsultancy.com> On Wednesday 18 February 2009 21:09:42 you wrote: > On Wed, Feb 18, 2009 at 6:03 PM, Jon Harrop wrote: > > Mono 2.2 is >50% slower than .NET on four of the five subtests in > > SciMark2: > > > > http://flyingfrogblog.blogspot.com/2009/01/mono-22.html > > > > In particular, Mono is 2x slower than .NET on the FFT test. > > Your benchmarks were ran on windows... That is incorrect. My Mono benchmarks were run on Linux. > The F# version of Scimark uses a lot of tail recursion That is also incorrect. The F# version of Scimark2 is a direct translation of the Java and uses imperative loops and mutation throughout. > and this is an area that mono has issues. While Mono certainly has problems with tail calls and garbage collection the problem here is actually the quality of the code generator in Mono 2.2 compared to, say, LLVM. > Most code on the .NET platform is written in C#. Most *numerical* code on the .NET platform is written in F# because that language was specifically designed by Microsoft for technical computing. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From kumpera at gmail.com Wed Feb 18 16:52:45 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 18 Feb 2009 18:52:45 -0300 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <200902182140.04434.jon@ffconsultancy.com> References: <22086988.post@talk.nabble.com> <200902182103.08069.jon@ffconsultancy.com> <8cca42d80902181309x6e42cd90rc0d368eb2de9f95@mail.gmail.com> <200902182140.04434.jon@ffconsultancy.com> Message-ID: <8cca42d80902181352p74a30c91ya66067a4798f60d8@mail.gmail.com> On Wed, Feb 18, 2009 at 6:40 PM, Jon Harrop wrote: > On Wednesday 18 February 2009 21:09:42 you wrote: > > On Wed, Feb 18, 2009 at 6:03 PM, Jon Harrop > wrote: > > > Mono 2.2 is >50% slower than .NET on four of the five subtests in > > > SciMark2: > > > > > > http://flyingfrogblog.blogspot.com/2009/01/mono-22.html > > > > > > In particular, Mono is 2x slower than .NET on the FFT test. > > > > Your benchmarks were ran on windows... > > That is incorrect. My Mono benchmarks were run on Linux. > I really wonder about your results. Mark Probst recently ran your benchmarks and reported that mono was just 60% slower, which is a lot more than the 40% of the C# version. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090218/7c52e3f8/attachment-0001.html From jon at ffconsultancy.com Wed Feb 18 17:36:08 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Wed, 18 Feb 2009 22:36:08 +0000 Subject: [Mono-list] Why is mono so slow at math compared to .Net? In-Reply-To: <8cca42d80902181352p74a30c91ya66067a4798f60d8@mail.gmail.com> References: <22086988.post@talk.nabble.com> <200902182140.04434.jon@ffconsultancy.com> <8cca42d80902181352p74a30c91ya66067a4798f60d8@mail.gmail.com> Message-ID: <200902182236.08434.jon@ffconsultancy.com> On Wednesday 18 February 2009 21:52:45 you wrote: > On Wed, Feb 18, 2009 at 6:40 PM, Jon Harrop wrote: > > On Wednesday 18 February 2009 21:09:42 you wrote: > > > Your benchmarks were ran on windows... > > > > That is incorrect. My Mono benchmarks were run on Linux. > > I really wonder about your results. Mark Probst recently ran your > benchmarks and reported that mono was just 60% slower, which is a lot more > than the 40% of the C# version. If you average across all tests then that is actually comparable to my results: http://flyingfrogblog.blogspot.com/2009/01/mono-22.html -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From zvika at liboxmail.com Thu Feb 19 08:24:17 2009 From: zvika at liboxmail.com (zvikag) Date: Thu, 19 Feb 2009 05:24:17 -0800 (PST) Subject: [Mono-list] SocketAsyncEventArgs Implementation Message-ID: <22081313.post@talk.nabble.com> Hello, The new Socket.XXXAsync APIs were added to the .NET FW to "...provide an alternative asynchronous pattern that can be used by specialized high-performance socket applications. This class was specifically designed for network server applications that require high performance." (MSDN) I was quite disappointed when I saw the mono implementation of this API - create a new thread for each XXXAsync call. This cannot produce a good performance. Did you test that this implementation is really more performant than the BeginXX/EndXX async pattern? Is there any plan to rewrite this code in the future? -- View this message in context: http://www.nabble.com/SocketAsyncEventArgs-Implementation-tp22081313p22081313.html Sent from the Mono - General mailing list archive at Nabble.com. From chart3399 at yahoo.com Thu Feb 19 11:27:50 2009 From: chart3399 at yahoo.com (Corey Hart) Date: Thu, 19 Feb 2009 08:27:50 -0800 (PST) Subject: [Mono-list] No child nodes... Message-ID: <232018.66963.qm@web110202.mail.gq1.yahoo.com> All, I'll admit I am brand new to mono.? I'm trying to get a hunk of code working for a customer that works under win03 and win08 under IIS but they want to move it over to linux / mono environment. I've hit the googles and only found a few references to this error and in most of the cases there was not really any resolution.? Any help is appreciated. No child nodes allowed here. (node name: pages) () Description: HTTP 500. Error processing request. Stack Trace: System.Configuration.ConfigurationException: No child nodes allowed here. (node name: pages) () at System.Web.Configuration.HandlersUtil.ThrowException (System.String msg, System.Xml.XmlNode node) [0x00000] at System.Web.Configuration.PagesConfigurationHandler.Create (System.Object parent, System.Object configContext, System.Xml.XmlNode section) [0x00000] at System.Web.Configuration.ConfigurationData.GetConfigInternal (System.String sectionName, System.Web.HttpContext context, Boolean useLoc) [0x00000] at System.Web.Configuration.ConfigurationData.GetConfigOptLocation (System.String sectionName, System.Web.HttpContext context, Boolean useLoc) [0x00000] at System.Web.Configuration.ConfigurationData.GetConfig (System.String sectionName, System.Web.HttpContext context) [0x00000] at System.Web.Configuration.WebDefaultConfig.GetConfig (System.String sectionName, System.Web.HttpContext context) [0x00000] at System.Web.Configuration.WebConfigurationSettings.GetConfig (System.String sectionName, System.Web.HttpContext context) [0x00000] at System.Web.HttpContext.GetConfig (System.String name) [0x00000] at System.Web.Configuration.PagesConfiguration.GetInstance (System.Web.HttpContext context) [0x00000] at System.Web.UI.TemplateParser.get_PagesConfig () [0x00000] at System.Web.UI.TemplateControlParser.LoadConfigDefaults () [0x00000] at System.Web.UI.PageParser.LoadConfigDefaults () [0x00000] at System.Web.UI.TemplateParser..ctor () [0x00000] at System.Web.UI.TemplateControlParser..ctor () [0x00000] at System.Web.UI.PageParser..ctor (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x00000] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] at System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext () [0x00000] Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: 1.1.4322.2032 Thanks, ...corey From kardosbalint at gmail.com Thu Feb 19 11:38:13 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Thu, 19 Feb 2009 17:38:13 +0100 Subject: [Mono-list] No child nodes... In-Reply-To: <232018.66963.qm@web110202.mail.gq1.yahoo.com> References: <232018.66963.qm@web110202.mail.gq1.yahoo.com> Message-ID: hi, you've a badly formatted web.config file, something errorous in the section. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Thu, Feb 19, 2009 at 17:27, Corey Hart wrote: > > All, > > I'll admit I am brand new to mono. I'm trying to get a hunk of code > working for a customer that works under win03 and win08 under IIS but they > want to move it over to linux / mono environment. > > I've hit the googles and only found a few references to this error and in > most of the cases there was not really any resolution. Any help is > appreciated. > > No child nodes allowed here. (node name: pages) () > Description: HTTP 500. Error processing request. > Stack Trace: > System.Configuration.ConfigurationException: No child nodes allowed here. > (node name: pages) () > at System.Web.Configuration.HandlersUtil.ThrowException (System.String > msg, System.Xml.XmlNode node) [0x00000] > at System.Web.Configuration.PagesConfigurationHandler.Create > (System.Object parent, System.Object configContext, System.Xml.XmlNode > section) [0x00000] > at System.Web.Configuration.ConfigurationData.GetConfigInternal > (System.String sectionName, System.Web.HttpContext context, Boolean useLoc) > [0x00000] > at System.Web.Configuration.ConfigurationData.GetConfigOptLocation > (System.String sectionName, System.Web.HttpContext context, Boolean useLoc) > [0x00000] > at System.Web.Configuration.ConfigurationData.GetConfig (System.String > sectionName, System.Web.HttpContext context) [0x00000] > at System.Web.Configuration.WebDefaultConfig.GetConfig (System.String > sectionName, System.Web.HttpContext context) [0x00000] > at System.Web.Configuration.WebConfigurationSettings.GetConfig > (System.String sectionName, System.Web.HttpContext context) [0x00000] > at System.Web.HttpContext.GetConfig (System.String name) [0x00000] > at System.Web.Configuration.PagesConfiguration.GetInstance > (System.Web.HttpContext context) [0x00000] > at System.Web.UI.TemplateParser.get_PagesConfig () [0x00000] > at System.Web.UI.TemplateControlParser.LoadConfigDefaults () [0x00000] > at System.Web.UI.PageParser.LoadConfigDefaults () [0x00000] > at System.Web.UI.TemplateParser..ctor () [0x00000] > at System.Web.UI.TemplateControlParser..ctor () [0x00000] > at System.Web.UI.PageParser..ctor (System.String virtualPath, > System.String inputFile, System.Web.HttpContext context) [0x00000] > at System.Web.UI.PageParser.GetCompiledPageInstance (System.String > virtualPath, System.String inputFile, System.Web.HttpContext context) > [0x00000] > at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext > context, System.String requestType, System.String url, System.String path) > [0x00000] > at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, > System.String url) [0x00000] > at System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext () > [0x00000] > > Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: > 1.1.4322.2032 > > > Thanks, > > ...corey > > > > > _______________________________________________ > 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/20090219/c985b6be/attachment.html From chart3399 at yahoo.com Thu Feb 19 11:45:25 2009 From: chart3399 at yahoo.com (Corey Hart) Date: Thu, 19 Feb 2009 08:45:25 -0800 (PST) Subject: [Mono-list] No child nodes... In-Reply-To: Message-ID: <18697.80350.qm@web110202.mail.gq1.yahoo.com> Hi Balint, Thanks you for the quick reply. Here is what is located in my web.config. I'm not sure what is valid under mono and what isn't. Sorry for my ignorance. Thanks, ...corey --- On Thu, 2/19/09, B?lint Kardos wrote: > From: B?lint Kardos > Subject: Re: [Mono-list] No child nodes... > To: "Corey Hart" > Cc: mono-list at lists.ximian.com > Date: Thursday, February 19, 2009, 10:38 AM > hi, you've a badly formatted web.config file, something > errorous in the > section. > > ?dv?zlettel > with regards > > Kardos B?lint > _______________________________________ > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > On Thu, Feb 19, 2009 at 17:27, Corey Hart > wrote: > > > > > All, > > > > I'll admit I am brand new to mono. I'm trying > to get a hunk of code > > working for a customer that works under win03 and > win08 under IIS but they > > want to move it over to linux / mono environment. > > > > I've hit the googles and only found a few > references to this error and in > > most of the cases there was not really any resolution. > Any help is > > appreciated. > > > > No child nodes allowed here. (node name: pages) () > > Description: HTTP 500. Error processing request. > > Stack Trace: > > System.Configuration.ConfigurationException: No child > nodes allowed here. > > (node name: pages) () > > at > System.Web.Configuration.HandlersUtil.ThrowException > (System.String > > msg, System.Xml.XmlNode node) [0x00000] > > at > System.Web.Configuration.PagesConfigurationHandler.Create > > (System.Object parent, System.Object configContext, > System.Xml.XmlNode > > section) [0x00000] > > at > System.Web.Configuration.ConfigurationData.GetConfigInternal > > (System.String sectionName, System.Web.HttpContext > context, Boolean useLoc) > > [0x00000] > > at > System.Web.Configuration.ConfigurationData.GetConfigOptLocation > > (System.String sectionName, System.Web.HttpContext > context, Boolean useLoc) > > [0x00000] > > at > System.Web.Configuration.ConfigurationData.GetConfig > (System.String > > sectionName, System.Web.HttpContext context) [0x00000] > > at > System.Web.Configuration.WebDefaultConfig.GetConfig > (System.String > > sectionName, System.Web.HttpContext context) [0x00000] > > at > System.Web.Configuration.WebConfigurationSettings.GetConfig > > (System.String sectionName, System.Web.HttpContext > context) [0x00000] > > at System.Web.HttpContext.GetConfig (System.String > name) [0x00000] > > at > System.Web.Configuration.PagesConfiguration.GetInstance > > (System.Web.HttpContext context) [0x00000] > > at System.Web.UI.TemplateParser.get_PagesConfig () > [0x00000] > > at > System.Web.UI.TemplateControlParser.LoadConfigDefaults () > [0x00000] > > at System.Web.UI.PageParser.LoadConfigDefaults () > [0x00000] > > at System.Web.UI.TemplateParser..ctor () [0x00000] > > at System.Web.UI.TemplateControlParser..ctor () > [0x00000] > > at System.Web.UI.PageParser..ctor (System.String > virtualPath, > > System.String inputFile, System.Web.HttpContext > context) [0x00000] > > at System.Web.UI.PageParser.GetCompiledPageInstance > (System.String > > virtualPath, System.String inputFile, > System.Web.HttpContext context) > > [0x00000] > > at System.Web.UI.PageHandlerFactory.GetHandler > (System.Web.HttpContext > > context, System.String requestType, System.String url, > System.String path) > > [0x00000] > > at System.Web.HttpApplication.GetHandler > (System.Web.HttpContext context, > > System.String url) [0x00000] > > at > System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext > () > > [0x00000] > > > > Version information: Mono Version: 1.1.4322.2032; > ASP.NET Version: > > 1.1.4322.2032 > > > > > > Thanks, > > > > ...corey > > > > > > > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > From robertj at gmx.net Thu Feb 19 12:01:23 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 19 Feb 2009 18:01:23 +0100 Subject: [Mono-list] No child nodes... In-Reply-To: <232018.66963.qm@web110202.mail.gq1.yahoo.com> References: <232018.66963.qm@web110202.mail.gq1.yahoo.com> Message-ID: Corey Hart wrote: > No child nodes allowed here. (node name: pages) () ... > Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: 1.1.4322.2032 .NET 1.1 does not support child elements in . Are you sure that your site is compatible with .NET 1.1? Robert From chart3399 at yahoo.com Thu Feb 19 14:26:25 2009 From: chart3399 at yahoo.com (Corey Hart) Date: Thu, 19 Feb 2009 11:26:25 -0800 (PST) Subject: [Mono-list] No child nodes... In-Reply-To: Message-ID: <896060.11941.qm@web110202.mail.gq1.yahoo.com> Robert, Thanks for all the information. The application was indeed written for ASP 2.0. I made the changes to my mod_mono to call mono-server2 and now I am just getting a general application error. http://dpaste.com/122715/ Is there any other place to look for debug information on what might be causing the issue? Thanks, ...corey --- On Thu, 2/19/09, Robert Jordan wrote: > From: Robert Jordan > Subject: Re: [Mono-list] No child nodes... > To: Mono-list at lists.ximian.com > Date: Thursday, February 19, 2009, 11:01 AM > Corey Hart wrote: > > No child nodes allowed here. (node name: pages) () > > ... > > > Version information: Mono Version: 1.1.4322.2032; > ASP.NET Version: 1.1.4322.2032 > > .NET 1.1 does not support child elements in . > Are you sure > that your site is compatible with .NET 1.1? > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From kardosbalint at gmail.com Thu Feb 19 14:45:51 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Thu, 19 Feb 2009 20:45:51 +0100 Subject: [Mono-list] No child nodes... In-Reply-To: <896060.11941.qm@web110202.mail.gq1.yahoo.com> References: <896060.11941.qm@web110202.mail.gq1.yahoo.com> Message-ID: Hi, before posting questions to a mailing list... a) what about reading and understanding the error message first? b) doing what the error message says, modify the web.config file to show the error message? --> c) you can always look up apache's (virtualhosts') error.log file (/var/log/httpd or apache2//error.log b. ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Thu, Feb 19, 2009 at 20:26, Corey Hart wrote: > > Robert, > > Thanks for all the information. The application was indeed written for ASP > 2.0. I made the changes to my mod_mono to call mono-server2 and now I am > just getting a general application error. > > http://dpaste.com/122715/ > > Is there any other place to look for debug information on what might be > causing the issue? > > Thanks, > > ...corey > > > --- On Thu, 2/19/09, Robert Jordan wrote: > > > From: Robert Jordan > > Subject: Re: [Mono-list] No child nodes... > > To: Mono-list at lists.ximian.com > > Date: Thursday, February 19, 2009, 11:01 AM > > Corey Hart wrote: > > > No child nodes allowed here. (node name: pages) () > > > > ... > > > > > Version information: Mono Version: 1.1.4322.2032; > > ASP.NET Version: 1.1.4322.2032 > > > > .NET 1.1 does not support child elements in . > > Are you sure > > that your site is compatible with .NET 1.1? > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090219/870d4e1e/attachment.html From chart3399 at yahoo.com Thu Feb 19 15:12:56 2009 From: chart3399 at yahoo.com (Corey Hart) Date: Thu, 19 Feb 2009 12:12:56 -0800 (PST) Subject: [Mono-list] No child nodes... In-Reply-To: Message-ID: <526393.10747.qm@web110215.mail.gq1.yahoo.com> Balin, Thanks for the tips. And was in the process of making the changes as I fired off a mail to the list. I was trying to cover all my bases. I did check all the relevant apache logs and they were clean had no errors. Thanks for your patience I appreciate it. As I said I'm trying to implement an ASP app that I did not write under mono because this was the decision made by others. I'm trying to bring myself up to speed on mono as fast as possible but unfortunately I need to bring this application up as fast as possible as well which is why I am utilizing the mailing list. Here is the latest error I am receiving. http://dpaste.com/122741/ Thanks again for all the help. I appreciate it. ...corey --- On Thu, 2/19/09, B?lint Kardos wrote: > From: B?lint Kardos > Subject: Re: [Mono-list] No child nodes... > To: chart3399 at yahoo.com > Cc: Mono-list at lists.ximian.com > Date: Thursday, February 19, 2009, 1:45 PM > Hi, > before posting questions to a mailing list... > > a) what about reading and understanding the error message > first? > b) doing what the error message says, modify the web.config > file to show the > error message? --> mode="Off"/> > > c) you can always look up apache's (virtualhosts') > error.log file > (/var/log/httpd or apache2/ subfolder>/error.log > > > b. > > ?dv?zlettel > with regards > > Kardos B?lint > _______________________________________ > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > On Thu, Feb 19, 2009 at 20:26, Corey Hart > wrote: > > > > > Robert, > > > > Thanks for all the information. The application was > indeed written for ASP > > 2.0. I made the changes to my mod_mono to call > mono-server2 and now I am > > just getting a general application error. > > > > http://dpaste.com/122715/ > > > > Is there any other place to look for debug information > on what might be > > causing the issue? > > > > Thanks, > > > > ...corey > > > > > > --- On Thu, 2/19/09, Robert Jordan > wrote: > > > > > From: Robert Jordan > > > Subject: Re: [Mono-list] No child nodes... > > > To: Mono-list at lists.ximian.com > > > Date: Thursday, February 19, 2009, 11:01 AM > > > Corey Hart wrote: > > > > No child nodes allowed here. (node name: > pages) () > > > > > > ... > > > > > > > Version information: Mono Version: > 1.1.4322.2032; > > > ASP.NET Version: 1.1.4322.2032 > > > > > > .NET 1.1 does not support child elements in > . > > > Are you sure > > > that your site is compatible with .NET 1.1? > > > > > > 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 > > From robertj at gmx.net Thu Feb 19 15:24:21 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 19 Feb 2009 21:24:21 +0100 Subject: [Mono-list] No child nodes... In-Reply-To: <526393.10747.qm@web110215.mail.gq1.yahoo.com> References: <526393.10747.qm@web110215.mail.gq1.yahoo.com> Message-ID: Corey Hart wrote: > Here is the latest error I am receiving. > > http://dpaste.com/122741/ Check whether vnbc (mono's visual basic compiler) is installed. Robert From robertj at gmx.net Thu Feb 19 15:32:40 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 19 Feb 2009 21:32:40 +0100 Subject: [Mono-list] SocketAsyncEventArgs Implementation In-Reply-To: <22081313.post@talk.nabble.com> References: <22081313.post@talk.nabble.com> Message-ID: zvikag wrote: > Is there any plan to rewrite this code in the future? Please file an enhancement bug at http://mono-project.com/Bugs Robert From kardosbalint at gmail.com Thu Feb 19 15:36:43 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Thu, 19 Feb 2009 21:36:43 +0100 Subject: [Mono-list] No child nodes... In-Reply-To: <526393.10747.qm@web110215.mail.gq1.yahoo.com> References: <526393.10747.qm@web110215.mail.gq1.yahoo.com> Message-ID: http://lists.alioth.debian.org/pipermail/pkg-mono-devel/2005-February/000369.html the first result in a Google search for "Process has not been started." if still not working, follow with: http://go-mono.com/forums/#nabble-td16333874 ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Thu, Feb 19, 2009 at 21:12, Corey Hart wrote: > > Balin, > > Thanks for the tips. And was in the process of making the changes as I > fired off a mail to the list. I was trying to cover all my bases. > > I did check all the relevant apache logs and they were clean had no errors. > > Thanks for your patience I appreciate it. As I said I'm trying to > implement an ASP app that I did not write under mono because this was the > decision made by others. > > I'm trying to bring myself up to speed on mono as fast as possible but > unfortunately I need to bring this application up as fast as possible as > well which is why I am utilizing the mailing list. > > Here is the latest error I am receiving. > > http://dpaste.com/122741/ > > Thanks again for all the help. I appreciate it. > > ...corey > > > > > --- On Thu, 2/19/09, B?lint Kardos wrote: > > > From: B?lint Kardos > > Subject: Re: [Mono-list] No child nodes... > > To: chart3399 at yahoo.com > > Cc: Mono-list at lists.ximian.com > > Date: Thursday, February 19, 2009, 1:45 PM > > Hi, > > before posting questions to a mailing list... > > > > a) what about reading and understanding the error message > > first? > > b) doing what the error message says, modify the web.config > > file to show the > > error message? --> > mode="Off"/> > > > > c) you can always look up apache's (virtualhosts') > > error.log file > > (/var/log/httpd or apache2/ > subfolder>/error.log > > > > > > b. > > > > ?dv?zlettel > > with regards > > > > Kardos B?lint > > _______________________________________ > > http://skaelede.hu 10 (0xA) ?v a magyar weben > > > > > > On Thu, Feb 19, 2009 at 20:26, Corey Hart > > wrote: > > > > > > > > Robert, > > > > > > Thanks for all the information. The application was > > indeed written for ASP > > > 2.0. I made the changes to my mod_mono to call > > mono-server2 and now I am > > > just getting a general application error. > > > > > > http://dpaste.com/122715/ > > > > > > Is there any other place to look for debug information > > on what might be > > > causing the issue? > > > > > > Thanks, > > > > > > ...corey > > > > > > > > > --- On Thu, 2/19/09, Robert Jordan > > wrote: > > > > > > > From: Robert Jordan > > > > Subject: Re: [Mono-list] No child nodes... > > > > To: Mono-list at lists.ximian.com > > > > Date: Thursday, February 19, 2009, 11:01 AM > > > > Corey Hart wrote: > > > > > No child nodes allowed here. (node name: > > pages) () > > > > > > > > ... > > > > > > > > > Version information: Mono Version: > > 1.1.4322.2032; > > > > ASP.NET Version: 1.1.4322.2032 > > > > > > > > .NET 1.1 does not support child elements in > > . > > > > Are you sure > > > > that your site is compatible with .NET 1.1? > > > > > > > > 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 > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090219/7ad65a70/attachment-0001.html From chart3399 at yahoo.com Thu Feb 19 15:39:02 2009 From: chart3399 at yahoo.com (Corey Hart) Date: Thu, 19 Feb 2009 12:39:02 -0800 (PST) Subject: [Mono-list] No child nodes... In-Reply-To: Message-ID: <810030.49269.qm@web110203.mail.gq1.yahoo.com> Robert, This was the missing piece. Thank you all for your help. ...corey --- On Thu, 2/19/09, Robert Jordan wrote: > From: Robert Jordan > Subject: Re: [Mono-list] No child nodes... > To: Mono-list at lists.ximian.com > Date: Thursday, February 19, 2009, 2:24 PM > Corey Hart wrote: > > Here is the latest error I am receiving. > > > > http://dpaste.com/122741/ > > Check whether vnbc (mono's visual basic compiler) is > installed. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From cdhowie at gmail.com Thu Feb 19 16:54:37 2009 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 19 Feb 2009 16:54:37 -0500 Subject: [Mono-list] Console.ReadKey() => no spezial chars on Linux In-Reply-To: <22011524.post@talk.nabble.com> References: <22011524.post@talk.nabble.com> Message-ID: <3d2f29dc0902191354t19b3b03ck2c8e0dba9721ed7c@mail.gmail.com> On Mon, Feb 16, 2009 at 4:33 PM, Paebbels wrote: > Home returns on Windows ConsoleKey.Home, on Mono ConsoleKey.Esc with ASCII > Char 27 (also: End, Delete, ....) It seems in the case that Mono is not translating CSI escape codes to their corresponding symbolic value. For example, if you strike the home key in a console that doesn't interpret it (e.g. bash will not work) then you will see "^[OH". ^[ is the representation of the escape key. If you think Mono should do this translation for you then you might file a bug report about it. You could also interpret them yourself. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From Paebbels at gmail.com Thu Feb 19 17:27:35 2009 From: Paebbels at gmail.com (Paebbels) Date: Thu, 19 Feb 2009 14:27:35 -0800 (PST) Subject: [Mono-list] Console.ReadKey() => no spezial chars on Linux In-Reply-To: <3d2f29dc0902191354t19b3b03ck2c8e0dba9721ed7c@mail.gmail.com> References: <22011524.post@talk.nabble.com> <3d2f29dc0902191354t19b3b03ck2c8e0dba9721ed7c@mail.gmail.com> Message-ID: <22111030.post@talk.nabble.com> How can I do this? Are you sure thats a mono problem and not linux, environment or shell based? like encoding, char tables (I haven'd found something like this...) Have you any expericenes with GetLine.cs from Miguel de Icaza or any knowledge about the new Mono.Terminal namespace? I have read of an Editor class, but there is no documentation. ---- Patrick Lehmann Chris Howie wrote: > > On Mon, Feb 16, 2009 at 4:33 PM, Paebbels wrote: >> Home returns on Windows ConsoleKey.Home, on Mono ConsoleKey.Esc with >> ASCII >> Char 27 (also: End, Delete, ....) > > It seems in the case that Mono is not translating CSI escape codes to > their corresponding symbolic value. For example, if you strike the > home key in a console that doesn't interpret it (e.g. bash will not > work) then you will see "^[OH". ^[ is the representation of the > escape key. > > If you think Mono should do this translation for you then you might > file a bug report about it. You could also interpret them yourself. > > -- > Chris Howie > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Console.ReadKey%28%29-%3D%3E-no-spezial-chars-on-Linux-tp22011524p22111030.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Thu Feb 19 17:30:39 2009 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 19 Feb 2009 17:30:39 -0500 Subject: [Mono-list] Console.ReadKey() => no spezial chars on Linux In-Reply-To: <22111030.post@talk.nabble.com> References: <22011524.post@talk.nabble.com> <3d2f29dc0902191354t19b3b03ck2c8e0dba9721ed7c@mail.gmail.com> <22111030.post@talk.nabble.com> Message-ID: <3d2f29dc0902191430j7794a130gca4075a8c8cf0de@mail.gmail.com> On Thu, Feb 19, 2009 at 5:27 PM, Paebbels wrote: > How can I do this? Make a table of the escape sequences and match them. :) > Are you sure thats a mono problem and not linux, environment or shell based? When you strike the home key, whether in a GUI terminal or a VT, ESC "OH" is exactly what gets sent to the stdin file handle. This is documented, expected behavior on Linux. It is not a problem, it's just different behavior. If you think Mono should abstract this behavior then file a bug. > Have you any expericenes with GetLine.cs from Miguel de Icaza or any > knowledge about the new Mono.Terminal namespace? I have read of an Editor > class, but there is no documentation. I have not used it, but others may have. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From garthk at gdcjk.com Thu Feb 19 18:39:30 2009 From: garthk at gdcjk.com (Garth Keesler) Date: Thu, 19 Feb 2009 17:39:30 -0600 Subject: [Mono-list] Mono 2.6 and 2.8 Message-ID: <499DEDB2.3030205@gdcjk.com> I noticed in the roadmap that Mono 2.6 and 2.8 share the same delivery date of Sept 09. I'm really interested in 2.6 and Linq to DB (SQL) and I hope that this is really scheduled for June 09 instead of the later date. Any chance of this being the case? Thanx, Garth From ddambro at gmail.com Thu Feb 19 22:14:14 2009 From: ddambro at gmail.com (ddambro) Date: Thu, 19 Feb 2009 19:14:14 -0800 (PST) Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <4998106D.9060205@gmail.com> References: <22018718.post@talk.nabble.com> <4998106D.9060205@gmail.com> Message-ID: <22114104.post@talk.nabble.com> Hi, Thanks for looking into my issues. I hope my post didn't come across as rude or anything, I was really just looking to ask if it was better to post issues here or directly to Bugzilla. I'm sure there are far more important issues than my weird floating point inconsistencies. For the curious, I am an AI researcher working on Evolutionary Computation. I tend to use Windows and .NET to run my code, but my research group has several large computing clusters that could massively speed up my experiments, but they only run Linux. Also academia tends to shy away from "Windows Only" software, so if I can say "Runs in Linux" when I release my code to the public, it's a pretty big boon for me as well as the people who want to run it. However, because of the floating point issues described, experiments run on mono are not compatible with experiments run on .NET, as over the course of a simulation, the small errors propagate over thousands of time steps into large differences in the final AI behavior. Thus, if I used both mono and .NET, not only would I have to be mindful of which experiment was run on which platform when I do analysis and demonstrations, but when I release my results to the public I would also have to mark arbitrary sets of experiments as "mono only" or ".NET only." Korn?l P?l wrote: > > Hi, > > Thanks for the test cases, I'll invetigate these as well and try to fix > them. > > The best way to get bugs fixed is to produce test cases and report them > in buzilla. > > You can help more if you are able to provide a patch to fix the bugs. > > Note that for some reasons Novell guys seem to ignore this bug mostly > because they have other things to do and their approval is required for > these changes. > > Could you please describe your scenario (application name, purpose, etc. > if they are public) where you need these floating point roundings and > describe why these bugs are critical for you. > > Providing some description may raise component owners' attention. > > Korn?l > > ddambro wrote: >> I previously posted about some differences I noticed between the floating >> point math in .NET and mono >> http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html >> here . The bug report can be found >> https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The patch >> provided (Thank you!) fixes several issues I was encountering, but >> unfortunately it led me to discover a couple more. The following two >> code >> samples were tested x86 machines using Linux mono 2.2 with the patch >> found >> in the bug report, a clean Windows mono 2.0.1, and the latest version of >> .NET targeting 3.0 framework and x86. >> >> --- >> 1. >> >> using System; >> using System.Runtime.CompilerServices; >> >> class Testing >> { >> [MethodImpl(MethodImplOptions.NoInlining)] >> public static void Main() >> { >> float f1=200; >> >> float distance=Distance(300, 500, 387.5f, 362.5f); >> >> float dist = 1 - (distance / f1); >> >> float distSqud = dist * dist; >> >> Console.WriteLine(distSqud.ToString("R")); >> >> foreach (byte b in BitConverter.GetBytes(distSqud)) >> Console.WriteLine(b); >> >> } >> >> public static float Distance(float x1, float y1, float x2, float y2) >> { >> float xDist = x1 - x2; >> float yDist = y1 - y2; >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); >> return dist; >> } >> >> On .NET this code produces: >> 0.0342619047 >> 54 >> 86 >> 12 >> 61 >> >> and on mono it produces: >> 0.03426191 >> 55 >> 86 >> 12 >> 61 >> >> --- >> 2. >> >> using System; >> using System.Runtime.CompilerServices; >> >> class Testing >> { >> [MethodImpl(MethodImplOptions.NoInlining)] >> public static void Main() >> { >> float distance = Distance(616.161255f, 391.2928f, 550.8382f, >> 131.006973f); >> Console.WriteLine(distance.ToString("R")); >> >> foreach (byte b in BitConverter.GetBytes(distance)) >> Console.WriteLine(b); >> } >> >> public static float Distance(float x1, float y1, float x2, float y2) >> { >> float xDist = x1 - x2; >> float yDist = y1 - y2; >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); >> >> Console.WriteLine(dist.ToString("R")); >> >> foreach (byte b in BitConverter.GetBytes(dist)) >> Console.WriteLine(b); >> >> return dist; >> } >> } >> >> On .NET this code produces: >> 268.3576 >> 198 >> 45 >> 134 >> 67 >> 268.3576 >> 198 >> 45 >> 134 >> 67 >> >> and on mono it produces: >> 268.357635 >> 199 >> 45 >> 134 >> 67 >> 268.357635 >> 199 >> 45 >> 134 >> 67 >> >> --- >> These seem to be very similar to the issues I was encountering before, >> but >> they are not fixed by the patch. What is the best way to resolve these >> inconsistencies? >> >> Thanks, >> David > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22114104.html Sent from the Mono - General mailing list archive at Nabble.com. From yoavhacohen at gmail.com Fri Feb 20 06:42:09 2009 From: yoavhacohen at gmail.com (Yoav HaCohen) Date: Fri, 20 Feb 2009 03:42:09 -0800 (PST) Subject: [Mono-list] Code optimizations Message-ID: <22119164.post@talk.nabble.com> Hi, I found this document very useful: http://www.mono-project.com/Linear_IL However, I think that it's not enough and I would like to open a thread where people can share their ideas for possible optimization. Of course, most of the optimizations are not unique for a specific language or to Mono/.NET, but although many documents can be found about code optimizations in other platforms/languages, it would be great to put all ideas for Mono in one place. Thus, people can discuss the benefit of each optimization, or even implement and report some ideas if they find them useful. In addition, this thread can give Mono developers a deeper understanding about what's going on behind the scene in Mono. -- View this message in context: http://www.nabble.com/Code-optimizations-tp22119164p22119164.html Sent from the Mono - General mailing list archive at Nabble.com. From yoavhacohen at gmail.com Fri Feb 20 06:43:52 2009 From: yoavhacohen at gmail.com (Yoav HaCohen) Date: Fri, 20 Feb 2009 03:43:52 -0800 (PST) Subject: [Mono-list] Code optimizations In-Reply-To: <22119164.post@talk.nabble.com> References: <22119164.post@talk.nabble.com> Message-ID: <22119176.post@talk.nabble.com> Here is my first idea: Suppose we have the following code: [DllImport(NATIVE_LIBRARY, CallingConvention = CallingConvention.Cdecl)] private static extern void NativeFoo(int temp, out int cx, out int cy); public System.Drawing.Point Foo() { int cx, cy; NativeFoo(int a, out cx, out cy); return new System.Drawing.Point(cx, cy); | This code could be written like that: public System.Drawing.Point Foo() { int cx, cy; System.Drawing.Point result; NativeFoo(int a, out result.Y, out result.X); return result; | But it's possible to pass a property as an out or ref argument. However, it's easy for the compiler to find when the properties are inlined and the private fields of the struct point are referenced directly, the code can be translated in compile time to: public System.Drawing.Point Foo() { int cx, cy; System.Drawing.Point result; NativeFoo(int a, out result.y, out result.x); // use the directly the private fields of System.Drawing.Point. return result; | In addition, if the struct result is allocated on the caller stack (also by compiler optimization), than we should eliminate the copy of the two integers twice. What do you think? -- View this message in context: http://www.nabble.com/Code-optimizations-tp22119164p22119176.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Fri Feb 20 09:30:57 2009 From: robertj at gmx.net (Robert Jordan) Date: Fri, 20 Feb 2009 15:30:57 +0100 Subject: [Mono-list] Code optimizations In-Reply-To: <22119176.post@talk.nabble.com> References: <22119164.post@talk.nabble.com> <22119176.post@talk.nabble.com> Message-ID: Yoav HaCohen wrote: > Here is my first idea: > > Suppose we have the following code: > > [DllImport(NATIVE_LIBRARY, CallingConvention = CallingConvention.Cdecl)] > private static extern void NativeFoo(int temp, out int cx, out int > cy); > > public System.Drawing.Point Foo() > { > int cx, cy; > NativeFoo(int a, out cx, out cy); > return new System.Drawing.Point(cx, cy); > | I'm aware that you did not intend to start a discussion about p/invoke, but I could not resist (1): You don't want to p/invoke just to get one point out of the unmanaged world. The managed/unmanaged transition is too costly for this. Any optimization done by the JIT after this call would be pointless. When dealing with (arrays of) Point/Rectangle/Size (and other similar well known structs), there is a (rather dirty) way to gain speed: Define Point/Rectangle/Size as structs in the unmanaged world and pass them by reference back and forth. Robert (1) that's why designers are using "lorem ipsum" paragraphs for prototyping ;) From kumpera at gmail.com Fri Feb 20 14:59:29 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 20 Feb 2009 16:59:29 -0300 Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <22114104.post@talk.nabble.com> References: <22018718.post@talk.nabble.com> <4998106D.9060205@gmail.com> <22114104.post@talk.nabble.com> Message-ID: <8cca42d80902201159k1d5c5b7fwe33ffb95397acfd6@mail.gmail.com> I have commited the fixed from Korn?l for all bugs that have tests. On Fri, Feb 20, 2009 at 12:14 AM, ddambro wrote: > > Hi, > > Thanks for looking into my issues. I hope my post didn't come across as > rude or anything, I was really just looking to ask if it was better to post > issues here or directly to Bugzilla. I'm sure there are far more important > issues than my weird floating point inconsistencies. > > For the curious, I am an AI researcher working on Evolutionary Computation. > I tend to use Windows and .NET to run my code, but my research group has > several large computing clusters that could massively speed up my > experiments, but they only run Linux. Also academia tends to shy away from > "Windows Only" software, so if I can say "Runs in Linux" when I release my > code to the public, it's a pretty big boon for me as well as the people who > want to run it. However, because of the floating point issues described, > experiments run on mono are not compatible with experiments run on .NET, as > over the course of a simulation, the small errors propagate over thousands > of time steps into large differences in the final AI behavior. Thus, if I > used both mono and .NET, not only would I have to be mindful of which > experiment was run on which platform when I do analysis and demonstrations, > but when I release my results to the public I would also have to mark > arbitrary sets of experiments as "mono only" or ".NET only." > > > Korn?l P?l wrote: > > > > Hi, > > > > Thanks for the test cases, I'll invetigate these as well and try to fix > > them. > > > > The best way to get bugs fixed is to produce test cases and report them > > in buzilla. > > > > You can help more if you are able to provide a patch to fix the bugs. > > > > Note that for some reasons Novell guys seem to ignore this bug mostly > > because they have other things to do and their approval is required for > > these changes. > > > > Could you please describe your scenario (application name, purpose, etc. > > if they are public) where you need these floating point roundings and > > describe why these bugs are critical for you. > > > > Providing some description may raise component owners' attention. > > > > Korn?l > > > > ddambro wrote: > >> I previously posted about some differences I noticed between the > floating > >> point math in .NET and mono > >> > http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html > >> here . The bug report can be found > >> https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The patch > >> provided (Thank you!) fixes several issues I was encountering, but > >> unfortunately it led me to discover a couple more. The following two > >> code > >> samples were tested x86 machines using Linux mono 2.2 with the patch > >> found > >> in the bug report, a clean Windows mono 2.0.1, and the latest version of > >> .NET targeting 3.0 framework and x86. > >> > >> --- > >> 1. > >> > >> using System; > >> using System.Runtime.CompilerServices; > >> > >> class Testing > >> { > >> [MethodImpl(MethodImplOptions.NoInlining)] > >> public static void Main() > >> { > >> float f1=200; > >> > >> float distance=Distance(300, 500, 387.5f, 362.5f); > >> > >> float dist = 1 - (distance / f1); > >> > >> float distSqud = dist * dist; > >> > >> Console.WriteLine(distSqud.ToString("R")); > >> > >> foreach (byte b in BitConverter.GetBytes(distSqud)) > >> Console.WriteLine(b); > >> > >> } > >> > >> public static float Distance(float x1, float y1, float x2, float y2) > >> { > >> float xDist = x1 - x2; > >> float yDist = y1 - y2; > >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); > >> return dist; > >> } > >> > >> On .NET this code produces: > >> 0.0342619047 > >> 54 > >> 86 > >> 12 > >> 61 > >> > >> and on mono it produces: > >> 0.03426191 > >> 55 > >> 86 > >> 12 > >> 61 > >> > >> --- > >> 2. > >> > >> using System; > >> using System.Runtime.CompilerServices; > >> > >> class Testing > >> { > >> [MethodImpl(MethodImplOptions.NoInlining)] > >> public static void Main() > >> { > >> float distance = Distance(616.161255f, 391.2928f, 550.8382f, > >> 131.006973f); > >> Console.WriteLine(distance.ToString("R")); > >> > >> foreach (byte b in BitConverter.GetBytes(distance)) > >> Console.WriteLine(b); > >> } > >> > >> public static float Distance(float x1, float y1, float x2, float y2) > >> { > >> float xDist = x1 - x2; > >> float yDist = y1 - y2; > >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * yDist); > >> > >> Console.WriteLine(dist.ToString("R")); > >> > >> foreach (byte b in BitConverter.GetBytes(dist)) > >> Console.WriteLine(b); > >> > >> return dist; > >> } > >> } > >> > >> On .NET this code produces: > >> 268.3576 > >> 198 > >> 45 > >> 134 > >> 67 > >> 268.3576 > >> 198 > >> 45 > >> 134 > >> 67 > >> > >> and on mono it produces: > >> 268.357635 > >> 199 > >> 45 > >> 134 > >> 67 > >> 268.357635 > >> 199 > >> 45 > >> 134 > >> 67 > >> > >> --- > >> These seem to be very similar to the issues I was encountering before, > >> but > >> they are not fixed by the patch. What is the best way to resolve these > >> inconsistencies? > >> > >> Thanks, > >> David > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22114104.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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/20090220/13b1aee7/attachment.html From lsd at nnt.lt Fri Feb 20 15:28:12 2009 From: lsd at nnt.lt (Genadijus Paleckis) Date: Fri, 20 Feb 2009 22:28:12 +0200 Subject: [Mono-list] can't connect to Sybase SQL Anywhere 10 Message-ID: <499F125C.7080706@nnt.lt> Hello list. I am testing different methods to access Sybase iAnywhere 10 with no luck. I've tried odbc, SybaseClient and TdsClient providers. The main reason I have tried Tds and Sybase drivers is that they use different TDS versions 4.2 and 5.0 respectively Does anybody had success with this ? test system is regular P4 (x86-32) with Ubuntu server 8.10 and mono-2.2 ODBC test code user at ubuntu:~/Test$ cat TestOdbcConnection.cs using System; using System.Data; using System.Data.Odbc; public class Test { public static void Main(string[] args) { IDbConnection dbcon = new OdbcConnection("DSN=sybdb;UID=dba;PWD=sql"); dbcon.Open(); Console.WriteLine("got here"); dbcon.Close(); } } compiled with mcs TestOdbcConnection.cs -r:System.Data.dll program returns 255 error code and doesn't show me "got here" output So I know that program failing to open connection trace output follows user at ubuntu:~/Test$ mono --trace TestOdbcConnection.exe | tail -10 [0xb7d456d0: 0.28365 4] ENTER: string:FindNotWhiteSpace (int,int,int)(this:[STRING:0x66840:sql], 2, 0, -1, ) [0xb7d456d0: 0.28368 4] LEAVE: string:FindNotWhiteSpace (int,int,int)result=2 [0xb7d456d0: 0.28371 3] LEAVE: string:Trim ()[STRING:0x66840:sql] [0xb7d456d0: 0.28392 3] ENTER: (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLConnect (intptr,string,int16,string,int16,string,int16)(0x99a0938, [STRING:0x5b9e0:sybdb], -3, [STRING:0x668a0:dba], -3, [STRING:0x66840:sql], -3, ) [0xb7d456d0: 0.28408 4] ENTER: (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_string_to_utf16 (object)([STRING:0x5b9e0:greifto], ) [0xb7d456d0: 0.28412 4] LEAVE: (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_string_to_utf16 (object)result=375276 [0xb7d456d0: 0.28416 4] ENTER: (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_string_to_utf16 (object)([STRING:0x668a0:dba], ) [0xb7d456d0: 0.28419 4] LEAVE: (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_string_to_utf16 (object)result=420012 [0xb7d456d0: 0.28422 4] ENTER: (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_string_to_utf16 (object)([STRING:0x66840:sql], ) [0xb7d456d0: 0.28426 4] LEAVE: (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_string_to_utf16 (object)result=419916 content of /etc/freetds/freetds.conf [sybdb] host = 127.0.0.1 port = 2638 tds version = 5.0 content of /etc/odbc.ini [sybdb] Driver = FreeTDS Trace = No Server = sybdb Database = testdb content of /etc/odbcinst.ini [FreeTDS] Driver = /opt/sqlanywhere10/lib32/libdbodbc10.so Setup = /usr/lib/odbc/libtdsS.so next is SybaseClient provider user at ubuntu:~/Test$ cat TestSybaseConnection.cs using System; using System.Data; using Mono.Data.SybaseClient; public class Test { public static void Main(string[] args) { IDbConnection dbcon = new SybaseConnection("Server=localhost,2638;Database=sybdb;User ID=dba;Password=sql;"); dbcon.Open(); dbcon.Close(); } } compiled with mcs TestSybaseConnection.cs -r:System.Data.dll -r:Mono.Data.SybaseClient.dll and now program fails to run user at ubuntu:~/Test$ mono TestSybaseConnection.exe Unhandled Exception: Mono.Data.SybaseClient.SybaseException: TDS: unexpected token 0 at Mono.Data.SybaseClient.SybaseConnection.ErrorHandler (System.Object sender, Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] at Mono.Data.Tds.Protocol.Tds.OnTdsErrorMessage (Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] at Mono.Data.Tds.Protocol.Tds.ProcessMessage (TdsPacketSubType subType) [0x00000] at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x00000] at Mono.Data.Tds.Protocol.Tds.NextResult () [0x00000] at Mono.Data.Tds.Protocol.Tds.SkipToEnd () [0x00000] at Mono.Data.Tds.Protocol.Tds50.Connect (Mono.Data.Tds.Protocol.TdsConnectionParameters connectionParameters) [0x00000] at Mono.Data.SybaseClient.SybaseConnection.Open () [0x00000] Same with TdsClient provider user at ubuntu:~/Test$ cat TestTdsConnection.cs using System; using System.Data; using Mono.Data.TdsClient; public class Test { public static void Main(string[] args) { IDbConnection dbcon = new TdsConnection("Server=localhost,2638;Database=sybdb;User ID=dba;Password=sql;"); dbcon.Open(); dbcon.Close(); } } compiled with mcs TestTdsConnection.cs -r:System.Data.dll -r:Mono.Data.TdsClient.dll user at ubuntu:~/Test$ mono TestTdsConnection.exe Unhandled Exception: Mono.Data.TdsClient.TdsException: TDS: unexpected token 95 at Mono.Data.TdsClient.TdsConnection.ErrorHandler (System.Object sender, Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] at Mono.Data.Tds.Protocol.Tds.OnTdsErrorMessage (Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] at Mono.Data.Tds.Protocol.Tds.ProcessMessage (TdsPacketSubType subType) [0x00000] at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x00000] at Mono.Data.Tds.Protocol.Tds.NextResult () [0x00000] at Mono.Data.Tds.Protocol.Tds.SkipToEnd () [0x00000] at Mono.Data.Tds.Protocol.Tds42.Connect (Mono.Data.Tds.Protocol.TdsConnectionParameters connectionParameters) [0x00000] at Mono.Data.TdsClient.TdsConnection.Open () [0x00000] From runxc1 at gmail.com Sat Feb 21 02:22:46 2009 From: runxc1 at gmail.com (Bret Ferrier) Date: Sat, 21 Feb 2009 00:22:46 -0700 Subject: [Mono-list] Configuring virtual host to send all request to mod_mono Message-ID: <91a3e46c0902202322o6bf7df22o9c2627fd4148fb0c@mail.gmail.com> I have been working on getting blogengine.net working with mod_mono. The application compiles and runs fine but if a physical page does not exist the request is never sent to mod_mono rather a 404 error is given. Example request: http://blog.runxc.com/2009/02/ generates a 404 error as blogengine.net uses url rewriting and no physical page of http://blog.runxc.com/2009/02/Default.aspx actually exists. If I however create a physical page named ~/2009/02/Default.aspx then the request is passed off to mod_mono and the correct output is rendered and not the dummy page that I added. So my question is how do I get apache2 to send all requests to mod_mono and not requests for pages that actually exist so that I do not need to add a physical page for every url re-writing scenario in the application? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090221/7fd1496a/attachment.html From kornelpal at gmail.com Sat Feb 21 03:30:10 2009 From: kornelpal at gmail.com (=?ISO-8859-1?Q?Korn=E9l_P=E1l?=) Date: Sat, 21 Feb 2009 09:30:10 +0100 Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <8cca42d80902201159k1d5c5b7fwe33ffb95397acfd6@mail.gmail.com> References: <22018718.post@talk.nabble.com> <4998106D.9060205@gmail.com> <22114104.post@talk.nabble.com> <8cca42d80902201159k1d5c5b7fwe33ffb95397acfd6@mail.gmail.com> Message-ID: <499FBB92.6030301@gmail.com> David, I've evaluated your test cases and found that the behavior exposed by your tests cases is not a bug. For the first sight this seems to be a bug is MS.NET, but it isn't a bug of MS.NET either. ECMA specs (part3, 1.1.1 Numeric data types) explicitly state the following: When a floating-point value ... is put in a storage location, it is automatically coerced to the type of the storage location. ... However, the value might be retained in the internal representation for future use, if it is reloaded from the storage location without having been modified. ... This freedom to carry extra precision is not permitted, however, following the execution of an explicit conversion (conv.r4 or conv.r8) ... This means that unlike integer variables, floating point store/load pairs are not (necessarily) cause conversion. On the other hand if you need deterministic behavior, you should issue an explicit conv.r4 (x = (float)y; in C#) because this is an implementation detail of the current MS JIT compiler that may change in the future even in that compiler. Although ECMA specs permit the native float type to have additional precision, you will most likely never notice the same behavior with double (float64), because both Mono and MS.NET configure the FPU to round each arithmetic operations to 64-bits. Also note that there is no performance gain from using float (float32), because the FPU still operates in 64-bit mode that has to be converted to 32-bits. As a result if you want performance you shouldn't use float32 at all. A simplified test case: float f1=200; float f2=162.980057f; float f3 = (1 - (f2 / f1)); float f4 = f3*f3; Console.WriteLine(f4.ToString("R", CultureInfo.InvariantCulture)); Adding an extra conversion you will get the behavior of Mono on MS.NET as well: float f1=200; float f2=162.980057f; float f3 = (float)(1 - (f2 / f1)); float f4 = f3*f3; Console.WriteLine(f4.ToString("R", CultureInfo.InvariantCulture)); Korn?l Rodrigo Kumpera wrote: > I have commited the fixed from Korn?l for all bugs that have tests. > > On Fri, Feb 20, 2009 at 12:14 AM, ddambro > wrote: > > > Hi, > > Thanks for looking into my issues. I hope my post didn't come across as > rude or anything, I was really just looking to ask if it was better > to post > issues here or directly to Bugzilla. I'm sure there are far more > important > issues than my weird floating point inconsistencies. > > For the curious, I am an AI researcher working on Evolutionary > Computation. > I tend to use Windows and .NET to run my code, but my research group has > several large computing clusters that could massively speed up my > experiments, but they only run Linux. Also academia tends to shy > away from > "Windows Only" software, so if I can say "Runs in Linux" when I > release my > code to the public, it's a pretty big boon for me as well as the > people who > want to run it. However, because of the floating point issues > described, > experiments run on mono are not compatible with experiments run on > .NET, as > over the course of a simulation, the small errors propagate over > thousands > of time steps into large differences in the final AI behavior. > Thus, if I > used both mono and .NET, not only would I have to be mindful of which > experiment was run on which platform when I do analysis and > demonstrations, > but when I release my results to the public I would also have to mark > arbitrary sets of experiments as "mono only" or ".NET only." > > > Korn?l P?l wrote: > > > > Hi, > > > > Thanks for the test cases, I'll invetigate these as well and try > to fix > > them. > > > > The best way to get bugs fixed is to produce test cases and > report them > > in buzilla. > > > > You can help more if you are able to provide a patch to fix the bugs. > > > > Note that for some reasons Novell guys seem to ignore this bug mostly > > because they have other things to do and their approval is > required for > > these changes. > > > > Could you please describe your scenario (application name, > purpose, etc. > > if they are public) where you need these floating point roundings and > > describe why these bugs are critical for you. > > > > Providing some description may raise component owners' attention. > > > > Korn?l > > > > ddambro wrote: > >> I previously posted about some differences I noticed between the > floating > >> point math in .NET and mono > >> > http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html > >> here . The bug report can be found > >> https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The patch > >> provided (Thank you!) fixes several issues I was encountering, but > >> unfortunately it led me to discover a couple more. The > following two > >> code > >> samples were tested x86 machines using Linux mono 2.2 with the patch > >> found > >> in the bug report, a clean Windows mono 2.0.1, and the latest > version of > >> .NET targeting 3.0 framework and x86. > >> > >> --- > >> 1. > >> > >> using System; > >> using System.Runtime.CompilerServices; > >> > >> class Testing > >> { > >> [MethodImpl(MethodImplOptions.NoInlining)] > >> public static void Main() > >> { > >> float f1=200; > >> > >> float distance=Distance(300, 500, 387.5f, 362.5f); > >> > >> float dist = 1 - (distance / f1); > >> > >> float distSqud = dist * dist; > >> > >> Console.WriteLine(distSqud.ToString("R")); > >> > >> foreach (byte b in BitConverter.GetBytes(distSqud)) > >> Console.WriteLine(b); > >> > >> } > >> > >> public static float Distance(float x1, float y1, float x2, > float y2) > >> { > >> float xDist = x1 - x2; > >> float yDist = y1 - y2; > >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * > yDist); > >> return dist; > >> } > >> > >> On .NET this code produces: > >> 0.0342619047 > >> 54 > >> 86 > >> 12 > >> 61 > >> > >> and on mono it produces: > >> 0.03426191 > >> 55 > >> 86 > >> 12 > >> 61 > >> > >> --- > >> 2. > >> > >> using System; > >> using System.Runtime.CompilerServices; > >> > >> class Testing > >> { > >> [MethodImpl(MethodImplOptions.NoInlining)] > >> public static void Main() > >> { > >> float distance = Distance(616.161255f, 391.2928f, 550.8382f, > >> 131.006973f); > >> Console.WriteLine(distance.ToString("R")); > >> > >> foreach (byte b in BitConverter.GetBytes(distance)) > >> Console.WriteLine(b); > >> } > >> > >> public static float Distance(float x1, float y1, float x2, > float y2) > >> { > >> float xDist = x1 - x2; > >> float yDist = y1 - y2; > >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * > yDist); > >> > >> Console.WriteLine(dist.ToString("R")); > >> > >> foreach (byte b in BitConverter.GetBytes(dist)) > >> Console.WriteLine(b); > >> > >> return dist; > >> } > >> } > >> > >> On .NET this code produces: > >> 268.3576 > >> 198 > >> 45 > >> 134 > >> 67 > >> 268.3576 > >> 198 > >> 45 > >> 134 > >> 67 > >> > >> and on mono it produces: > >> 268.357635 > >> 199 > >> 45 > >> 134 > >> 67 > >> 268.357635 > >> 199 > >> 45 > >> 134 > >> 67 > >> > >> --- > >> These seem to be very similar to the issues I was encountering > before, > >> but > >> they are not fixed by the patch. What is the best way to > resolve these > >> inconsistencies? > >> > >> Thanks, > >> David > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22114104.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > 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 peter at wingsofdeath.nu Sat Feb 21 07:31:36 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Sat, 21 Feb 2009 13:31:36 +0100 Subject: [Mono-list] Cairo Message-ID: <1235219496.9502.9.camel@djmia-hp-peter> Hi I'm trying to create dynamic images with Mono.Cairo in a webservice. I just used some sample code from the Mono site, and the image is being created (written to disc). But, I would like to use the png output directly to a stream. I noticed that in the file Mono.Cairo.NativeMethods.cs, the write to stream interop methods are not available. So, my question is, how can I write a PNG to the Context.Request, without first writing the png to a file? Secondly, can anyone hint me howto create a jpeg (or a different filetype) from the surface? Thanx in advance Peter Hagen From yoavhacohen at gmail.com Sat Feb 21 13:16:57 2009 From: yoavhacohen at gmail.com (Yoav HaCohen) Date: Sat, 21 Feb 2009 10:16:57 -0800 (PST) Subject: [Mono-list] Code optimizations In-Reply-To: References: <22119164.post@talk.nabble.com> <22119176.post@talk.nabble.com> Message-ID: <22138683.post@talk.nabble.com> Robert Jordan wrote: > > Yoav HaCohen wrote: >> Here is my first idea: >> >> Suppose we have the following code: >> >> [DllImport(NATIVE_LIBRARY, CallingConvention = CallingConvention.Cdecl)] >> private static extern void NativeFoo(int temp, out int cx, out >> int >> cy); >> >> public System.Drawing.Point Foo() >> { >> int cx, cy; >> NativeFoo(int a, out cx, out cy); >> return new System.Drawing.Point(cx, cy); >> | > > I'm aware that you did not intend to start a discussion > about p/invoke, but I could not resist (1): > > You don't want to p/invoke just to get one point out of > the unmanaged world. The managed/unmanaged transition > is too costly for this. Any optimization done by the JIT > after this call would be pointless. > > When dealing with (arrays of) Point/Rectangle/Size (and other similar > well known structs), there is a (rather dirty) way to gain speed: > > Define Point/Rectangle/Size as structs in the unmanaged > world and pass them by reference back and forth. > > Robert > > (1) that's why designers are using "lorem ipsum" paragraphs for > prototyping ;) > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > I know that it's costly to call unmanaged from managed code but there are a good reason in this case for doing that. Anyway, this is just an example, such cases can be also found in the managed code. My philosophy is that there is no "pointless" optimization if nothing is required from the developer. Yoav -- View this message in context: http://www.nabble.com/Code-optimizations-tp22119164p22138683.html Sent from the Mono - General mailing list archive at Nabble.com. From gabriel.balint at gmail.com Sat Feb 21 13:29:01 2009 From: gabriel.balint at gmail.com (gabriel balint) Date: Sat, 21 Feb 2009 13:29:01 -0500 Subject: [Mono-list] MySql error Stream is not a valid .resources file, magic=0x6d783f3c Message-ID: <1235240941.20993.4.camel@ubunta> I'm getting this when connecting to mysql server from my ubuntu 8.10: Stream is not a valid .resources file, magic=0x6d783f3c There is nothing much on google about this except https://lists.ubuntu.com/archives/universe-bugs/2008-December/028127.html where it sais it's fixed, but it does not work for me. Any ideas? mysql: Server version: 5.0.67-0ubuntu6 I use MySql.Data.dll for mono. From surfzoid at gmail.com Sat Feb 21 16:01:20 2009 From: surfzoid at gmail.com (Petit Eric) Date: Sat, 21 Feb 2009 22:01:20 +0100 Subject: [Mono-list] MySql error Stream is not a valid .resources file, magic=0x6d783f3c In-Reply-To: <1235240941.20993.4.camel@ubunta> References: <1235240941.20993.4.camel@ubunta> Message-ID: <84776a970902211301s63dffbbt6d80520a707ea177@mail.gmail.com> 2009/2/21 gabriel balint : > I'm getting this when connecting to mysql server from my ubuntu 8.10: > Stream is not a valid .resources file, magic=0x6d783f3c > > There is nothing much on google about this except > https://lists.ubuntu.com/archives/universe-bugs/2008-December/028127.html where it sais it's fixed, but it does not work for me. Any ideas? > mysql: Server version: 5.0.67-0ubuntu6 > I use MySql.Data.dll for mono. what is your mono -V can you try with the last MySQL.data dll from mysql, also yesterday after other problem, i used the old ByteFx who solve my "update/write" problems :-) > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From fevans at harris.com Sat Feb 21 17:26:44 2009 From: fevans at harris.com (fevans) Date: Sat, 21 Feb 2009 14:26:44 -0800 (PST) Subject: [Mono-list] Mixing Mono and .NET dlls? Message-ID: <22141289.post@talk.nabble.com> Miguel's blog on Mono.Options, got me wondering (again) about hybrid projects. http://tirania.org/blog/archive/2009/Feb-21.html On the technical side, what are the advantages and pitfalls of mixing dlls from both stacks. I develop mainly in Visual Studio. Can I include Mono.Options.dll in my .NET project? Another Mono widget I'm contemplating is the Webbrowser form. I use the .NET webbrowser form, but I'm not happy with its performance. Also, it doesn't work on linux. I would like to try the mono/gluezilla widget. Can I simply include Mono.System.Windows.Forms in Visual Studio? And then there's the legal question. Is there anything wrong with swapping out bits of .NET with Mono? -- View this message in context: http://www.nabble.com/Mixing-Mono-and-.NET-dlls--tp22141289p22141289.html Sent from the Mono - General mailing list archive at Nabble.com. From zarevucky.jiri at gmail.com Sat Feb 21 17:39:43 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Sat, 21 Feb 2009 23:39:43 +0100 Subject: [Mono-list] Mixing Mono and .NET dlls? In-Reply-To: <22141289.post@talk.nabble.com> References: <22141289.post@talk.nabble.com> Message-ID: 2009/2/21 fevans : > > Miguel's blog on Mono.Options, got me wondering (again) about hybrid > projects. > http://tirania.org/blog/archive/2009/Feb-21.html > > On the technical side, what are the advantages and pitfalls of mixing dlls > from both stacks. I develop mainly in Visual Studio. Can I include > Mono.Options.dll in my .NET project? As long as it's a purely managed assembly, it should work the same way everywhere. Mono.Options is, so there is no problem at all. > Another Mono widget I'm contemplating is the Webbrowser form. I use the .NET > webbrowser form, but I'm not happy with its performance. Also, it doesn't > work on linux. I would like to try the mono/gluezilla widget. > Can I simply include Mono.System.Windows.Forms in Visual Studio? I guess you must not reference the MS winforms assembly, but I never tried anything Mono-related on Windows. Perhaps it won't work at all. I'm not sure how the Mono implementation works. > And then there's the legal question. Is there anything wrong with swapping > out bits of .NET with Mono? I'm not a lawyer (and especially not an EULA reader), but I think that is like asking "is there something wrong with using my own library?". From ddambro at gmail.com Sat Feb 21 21:06:11 2009 From: ddambro at gmail.com (ddambro) Date: Sat, 21 Feb 2009 18:06:11 -0800 (PST) Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <499FBB92.6030301@gmail.com> References: <22018718.post@talk.nabble.com> <4998106D.9060205@gmail.com> <22114104.post@talk.nabble.com> <8cca42d80902201159k1d5c5b7fwe33ffb95397acfd6@mail.gmail.com> <499FBB92.6030301@gmail.com> Message-ID: <22142912.post@talk.nabble.com> Korn?l, Thank you for looking into this issue for me. After adding a few more explicit float conversions and removing some temporary variables, I was able to create a version of my program that runs the same on both mono (svn127604) and .NET. However, I am interested in what you said about doubles. If I'm understanding correctly, if I use doubles instead of floats I shouldn't have to worry about these rounding inconsistencies? I think we started with doubles, but moved to floats because they were supposedly faster, but if what you say is true, I might try and change everything over when I have time. Checking Google only reveals that there is some conflict as to if floats are faster than doubles in C#. Plus if I ever decide to use the SIMD instructions, I can only do half as much work at a time. But even if there is a performance loss it might be worth it to avoid constantly having to test new versions for .NET/mono compatibility. David Korn?l P?l wrote: > > David, > > I've evaluated your test cases and found that the behavior exposed by > your tests cases is not a bug. > > For the first sight this seems to be a bug is MS.NET, but it isn't a bug > of MS.NET either. > > ECMA specs (part3, 1.1.1 Numeric data types) explicitly state the > following: > > When a floating-point value ... is put in a storage location, it is > automatically coerced to the type of the storage location. ... However, > the value might be retained in the internal representation for future > use, if it is reloaded from the storage location without having been > modified. ... This freedom to carry extra precision is not permitted, > however, following the execution of an explicit conversion (conv.r4 or > conv.r8) ... > > This means that unlike integer variables, floating point store/load > pairs are not (necessarily) cause conversion. > > On the other hand if you need deterministic behavior, you should issue > an explicit conv.r4 (x = (float)y; in C#) because this is an > implementation detail of the current MS JIT compiler that may change in > the future even in that compiler. > > Although ECMA specs permit the native float type to have additional > precision, you will most likely never notice the same behavior with > double (float64), because both Mono and MS.NET configure the FPU to > round each arithmetic operations to 64-bits. > > Also note that there is no performance gain from using float (float32), > because the FPU still operates in 64-bit mode that has to be converted > to 32-bits. As a result if you want performance you shouldn't use > float32 at all. > > A simplified test case: > float f1=200; > float f2=162.980057f; > float f3 = (1 - (f2 / f1)); > float f4 = f3*f3; > Console.WriteLine(f4.ToString("R", CultureInfo.InvariantCulture)); > > Adding an extra conversion you will get the behavior of Mono on MS.NET > as well: > float f1=200; > float f2=162.980057f; > float f3 = (float)(1 - (f2 / f1)); > float f4 = f3*f3; > Console.WriteLine(f4.ToString("R", CultureInfo.InvariantCulture)); > > Korn?l > > Rodrigo Kumpera wrote: >> I have commited the fixed from Korn?l for all bugs that have tests. >> >> On Fri, Feb 20, 2009 at 12:14 AM, ddambro > > wrote: >> >> >> Hi, >> >> Thanks for looking into my issues. I hope my post didn't come across >> as >> rude or anything, I was really just looking to ask if it was better >> to post >> issues here or directly to Bugzilla. I'm sure there are far more >> important >> issues than my weird floating point inconsistencies. >> >> For the curious, I am an AI researcher working on Evolutionary >> Computation. >> I tend to use Windows and .NET to run my code, but my research group >> has >> several large computing clusters that could massively speed up my >> experiments, but they only run Linux. Also academia tends to shy >> away from >> "Windows Only" software, so if I can say "Runs in Linux" when I >> release my >> code to the public, it's a pretty big boon for me as well as the >> people who >> want to run it. However, because of the floating point issues >> described, >> experiments run on mono are not compatible with experiments run on >> .NET, as >> over the course of a simulation, the small errors propagate over >> thousands >> of time steps into large differences in the final AI behavior. >> Thus, if I >> used both mono and .NET, not only would I have to be mindful of which >> experiment was run on which platform when I do analysis and >> demonstrations, >> but when I release my results to the public I would also have to mark >> arbitrary sets of experiments as "mono only" or ".NET only." >> >> >> Korn?l P?l wrote: >> > >> > Hi, >> > >> > Thanks for the test cases, I'll invetigate these as well and try >> to fix >> > them. >> > >> > The best way to get bugs fixed is to produce test cases and >> report them >> > in buzilla. >> > >> > You can help more if you are able to provide a patch to fix the >> bugs. >> > >> > Note that for some reasons Novell guys seem to ignore this bug >> mostly >> > because they have other things to do and their approval is >> required for >> > these changes. >> > >> > Could you please describe your scenario (application name, >> purpose, etc. >> > if they are public) where you need these floating point roundings >> and >> > describe why these bugs are critical for you. >> > >> > Providing some description may raise component owners' attention. >> > >> > Korn?l >> > >> > ddambro wrote: >> >> I previously posted about some differences I noticed between the >> floating >> >> point math in .NET and mono >> >> >> >> http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html >> >> here . The bug report can be found >> >> https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The >> patch >> >> provided (Thank you!) fixes several issues I was encountering, >> but >> >> unfortunately it led me to discover a couple more. The >> following two >> >> code >> >> samples were tested x86 machines using Linux mono 2.2 with the >> patch >> >> found >> >> in the bug report, a clean Windows mono 2.0.1, and the latest >> version of >> >> .NET targeting 3.0 framework and x86. >> >> >> >> --- >> >> 1. >> >> >> >> using System; >> >> using System.Runtime.CompilerServices; >> >> >> >> class Testing >> >> { >> >> [MethodImpl(MethodImplOptions.NoInlining)] >> >> public static void Main() >> >> { >> >> float f1=200; >> >> >> >> float distance=Distance(300, 500, 387.5f, 362.5f); >> >> >> >> float dist = 1 - (distance / f1); >> >> >> >> float distSqud = dist * dist; >> >> >> >> Console.WriteLine(distSqud.ToString("R")); >> >> >> >> foreach (byte b in BitConverter.GetBytes(distSqud)) >> >> Console.WriteLine(b); >> >> >> >> } >> >> >> >> public static float Distance(float x1, float y1, float x2, >> float y2) >> >> { >> >> float xDist = x1 - x2; >> >> float yDist = y1 - y2; >> >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * >> yDist); >> >> return dist; >> >> } >> >> >> >> On .NET this code produces: >> >> 0.0342619047 >> >> 54 >> >> 86 >> >> 12 >> >> 61 >> >> >> >> and on mono it produces: >> >> 0.03426191 >> >> 55 >> >> 86 >> >> 12 >> >> 61 >> >> >> >> --- >> >> 2. >> >> >> >> using System; >> >> using System.Runtime.CompilerServices; >> >> >> >> class Testing >> >> { >> >> [MethodImpl(MethodImplOptions.NoInlining)] >> >> public static void Main() >> >> { >> >> float distance = Distance(616.161255f, 391.2928f, >> 550.8382f, >> >> 131.006973f); >> >> Console.WriteLine(distance.ToString("R")); >> >> >> >> foreach (byte b in BitConverter.GetBytes(distance)) >> >> Console.WriteLine(b); >> >> } >> >> >> >> public static float Distance(float x1, float y1, float x2, >> float y2) >> >> { >> >> float xDist = x1 - x2; >> >> float yDist = y1 - y2; >> >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * >> yDist); >> >> >> >> Console.WriteLine(dist.ToString("R")); >> >> >> >> foreach (byte b in BitConverter.GetBytes(dist)) >> >> Console.WriteLine(b); >> >> >> >> return dist; >> >> } >> >> } >> >> >> >> On .NET this code produces: >> >> 268.3576 >> >> 198 >> >> 45 >> >> 134 >> >> 67 >> >> 268.3576 >> >> 198 >> >> 45 >> >> 134 >> >> 67 >> >> >> >> and on mono it produces: >> >> 268.357635 >> >> 199 >> >> 45 >> >> 134 >> >> 67 >> >> 268.357635 >> >> 199 >> >> 45 >> >> 134 >> >> 67 >> >> >> >> --- >> >> These seem to be very similar to the issues I was encountering >> before, >> >> but >> >> they are not fixed by the patch. What is the best way to >> resolve these >> >> inconsistencies? >> >> >> >> Thanks, >> >> David >> > _______________________________________________ >> > Mono-list maillist - Mono-list at lists.ximian.com >> >> > http://lists.ximian.com/mailman/listinfo/mono-list >> > >> > >> >> -- >> View this message in context: >> >> http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22114104.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> 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 > > -- View this message in context: http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22142912.html Sent from the Mono - General mailing list archive at Nabble.com. From kornelpal at gmail.com Sun Feb 22 04:41:52 2009 From: kornelpal at gmail.com (=?UTF-8?B?S29ybsOpbCBQw6Fs?=) Date: Sun, 22 Feb 2009 10:41:52 +0100 Subject: [Mono-list] More .NET and mono floating point inconsistencies In-Reply-To: <22142912.post@talk.nabble.com> References: <22018718.post@talk.nabble.com> <4998106D.9060205@gmail.com> <22114104.post@talk.nabble.com> <8cca42d80902201159k1d5c5b7fwe33ffb95397acfd6@mail.gmail.com> <499FBB92.6030301@gmail.com> <22142912.post@talk.nabble.com> Message-ID: <49A11DE0.8000104@gmail.com> Hi, At least on x86 changing the FPU's control flags is expensive so it usually runs with 64-bit precision. (Both Mono and MS.NET use it as double is 64-bit sized.) There may be architectures that support different size floating point operations simultaneously but on x86 you have to use one size and convert the results to lower precision when needed. As a result float (float32) and double (float64) work either at the same speed, or float32 is slower when you do a lot of float64 to float32 conversions on the FP stack without storing it to a variable. The only thing you save is storage when you store float32 out of the FP stack. Korn?l ddambro wrote: > Korn?l, > > Thank you for looking into this issue for me. After adding a few more > explicit float conversions and removing some temporary variables, I was able > to create a version of my program that runs the same on both mono > (svn127604) and .NET. However, I am interested in what you said about > doubles. If I'm understanding correctly, if I use doubles instead of floats > I shouldn't have to worry about these rounding inconsistencies? I think we > started with doubles, but moved to floats because they were supposedly > faster, but if what you say is true, I might try and change everything over > when I have time. Checking Google only reveals that there is some conflict > as to if floats are faster than doubles in C#. Plus if I ever decide to use > the SIMD instructions, I can only do half as much work at a time. But even > if there is a performance loss it might be worth it to avoid constantly > having to test new versions for .NET/mono compatibility. > > David > > > Korn?l P?l wrote: >> David, >> >> I've evaluated your test cases and found that the behavior exposed by >> your tests cases is not a bug. >> >> For the first sight this seems to be a bug is MS.NET, but it isn't a bug >> of MS.NET either. >> >> ECMA specs (part3, 1.1.1 Numeric data types) explicitly state the >> following: >> >> When a floating-point value ... is put in a storage location, it is >> automatically coerced to the type of the storage location. ... However, >> the value might be retained in the internal representation for future >> use, if it is reloaded from the storage location without having been >> modified. ... This freedom to carry extra precision is not permitted, >> however, following the execution of an explicit conversion (conv.r4 or >> conv.r8) ... >> >> This means that unlike integer variables, floating point store/load >> pairs are not (necessarily) cause conversion. >> >> On the other hand if you need deterministic behavior, you should issue >> an explicit conv.r4 (x = (float)y; in C#) because this is an >> implementation detail of the current MS JIT compiler that may change in >> the future even in that compiler. >> >> Although ECMA specs permit the native float type to have additional >> precision, you will most likely never notice the same behavior with >> double (float64), because both Mono and MS.NET configure the FPU to >> round each arithmetic operations to 64-bits. >> >> Also note that there is no performance gain from using float (float32), >> because the FPU still operates in 64-bit mode that has to be converted >> to 32-bits. As a result if you want performance you shouldn't use >> float32 at all. >> >> A simplified test case: >> float f1=200; >> float f2=162.980057f; >> float f3 = (1 - (f2 / f1)); >> float f4 = f3*f3; >> Console.WriteLine(f4.ToString("R", CultureInfo.InvariantCulture)); >> >> Adding an extra conversion you will get the behavior of Mono on MS.NET >> as well: >> float f1=200; >> float f2=162.980057f; >> float f3 = (float)(1 - (f2 / f1)); >> float f4 = f3*f3; >> Console.WriteLine(f4.ToString("R", CultureInfo.InvariantCulture)); >> >> Korn?l >> >> Rodrigo Kumpera wrote: >>> I have commited the fixed from Korn?l for all bugs that have tests. >>> >>> On Fri, Feb 20, 2009 at 12:14 AM, ddambro >> > wrote: >>> >>> >>> Hi, >>> >>> Thanks for looking into my issues. I hope my post didn't come across >>> as >>> rude or anything, I was really just looking to ask if it was better >>> to post >>> issues here or directly to Bugzilla. I'm sure there are far more >>> important >>> issues than my weird floating point inconsistencies. >>> >>> For the curious, I am an AI researcher working on Evolutionary >>> Computation. >>> I tend to use Windows and .NET to run my code, but my research group >>> has >>> several large computing clusters that could massively speed up my >>> experiments, but they only run Linux. Also academia tends to shy >>> away from >>> "Windows Only" software, so if I can say "Runs in Linux" when I >>> release my >>> code to the public, it's a pretty big boon for me as well as the >>> people who >>> want to run it. However, because of the floating point issues >>> described, >>> experiments run on mono are not compatible with experiments run on >>> .NET, as >>> over the course of a simulation, the small errors propagate over >>> thousands >>> of time steps into large differences in the final AI behavior. >>> Thus, if I >>> used both mono and .NET, not only would I have to be mindful of which >>> experiment was run on which platform when I do analysis and >>> demonstrations, >>> but when I release my results to the public I would also have to mark >>> arbitrary sets of experiments as "mono only" or ".NET only." >>> >>> >>> Korn?l P?l wrote: >>> > >>> > Hi, >>> > >>> > Thanks for the test cases, I'll invetigate these as well and try >>> to fix >>> > them. >>> > >>> > The best way to get bugs fixed is to produce test cases and >>> report them >>> > in buzilla. >>> > >>> > You can help more if you are able to provide a patch to fix the >>> bugs. >>> > >>> > Note that for some reasons Novell guys seem to ignore this bug >>> mostly >>> > because they have other things to do and their approval is >>> required for >>> > these changes. >>> > >>> > Could you please describe your scenario (application name, >>> purpose, etc. >>> > if they are public) where you need these floating point roundings >>> and >>> > describe why these bugs are critical for you. >>> > >>> > Providing some description may raise component owners' attention. >>> > >>> > Korn?l >>> > >>> > ddambro wrote: >>> >> I previously posted about some differences I noticed between the >>> floating >>> >> point math in .NET and mono >>> >> >>> >>> http://www.nabble.com/Mono-and-.Net-Floating-Point-Inconsistencies-to21428695ef1367.html >>> >> here . The bug report can be found >>> >> https://bugzilla.novell.com/show_bug.cgi?id=467201 here . The >>> patch >>> >> provided (Thank you!) fixes several issues I was encountering, >>> but >>> >> unfortunately it led me to discover a couple more. The >>> following two >>> >> code >>> >> samples were tested x86 machines using Linux mono 2.2 with the >>> patch >>> >> found >>> >> in the bug report, a clean Windows mono 2.0.1, and the latest >>> version of >>> >> .NET targeting 3.0 framework and x86. >>> >> >>> >> --- >>> >> 1. >>> >> >>> >> using System; >>> >> using System.Runtime.CompilerServices; >>> >> >>> >> class Testing >>> >> { >>> >> [MethodImpl(MethodImplOptions.NoInlining)] >>> >> public static void Main() >>> >> { >>> >> float f1=200; >>> >> >>> >> float distance=Distance(300, 500, 387.5f, 362.5f); >>> >> >>> >> float dist = 1 - (distance / f1); >>> >> >>> >> float distSqud = dist * dist; >>> >> >>> >> Console.WriteLine(distSqud.ToString("R")); >>> >> >>> >> foreach (byte b in BitConverter.GetBytes(distSqud)) >>> >> Console.WriteLine(b); >>> >> >>> >> } >>> >> >>> >> public static float Distance(float x1, float y1, float x2, >>> float y2) >>> >> { >>> >> float xDist = x1 - x2; >>> >> float yDist = y1 - y2; >>> >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * >>> yDist); >>> >> return dist; >>> >> } >>> >> >>> >> On .NET this code produces: >>> >> 0.0342619047 >>> >> 54 >>> >> 86 >>> >> 12 >>> >> 61 >>> >> >>> >> and on mono it produces: >>> >> 0.03426191 >>> >> 55 >>> >> 86 >>> >> 12 >>> >> 61 >>> >> >>> >> --- >>> >> 2. >>> >> >>> >> using System; >>> >> using System.Runtime.CompilerServices; >>> >> >>> >> class Testing >>> >> { >>> >> [MethodImpl(MethodImplOptions.NoInlining)] >>> >> public static void Main() >>> >> { >>> >> float distance = Distance(616.161255f, 391.2928f, >>> 550.8382f, >>> >> 131.006973f); >>> >> Console.WriteLine(distance.ToString("R")); >>> >> >>> >> foreach (byte b in BitConverter.GetBytes(distance)) >>> >> Console.WriteLine(b); >>> >> } >>> >> >>> >> public static float Distance(float x1, float y1, float x2, >>> float y2) >>> >> { >>> >> float xDist = x1 - x2; >>> >> float yDist = y1 - y2; >>> >> float dist = (float)Math.Sqrt(xDist * xDist + yDist * >>> yDist); >>> >> >>> >> Console.WriteLine(dist.ToString("R")); >>> >> >>> >> foreach (byte b in BitConverter.GetBytes(dist)) >>> >> Console.WriteLine(b); >>> >> >>> >> return dist; >>> >> } >>> >> } >>> >> >>> >> On .NET this code produces: >>> >> 268.3576 >>> >> 198 >>> >> 45 >>> >> 134 >>> >> 67 >>> >> 268.3576 >>> >> 198 >>> >> 45 >>> >> 134 >>> >> 67 >>> >> >>> >> and on mono it produces: >>> >> 268.357635 >>> >> 199 >>> >> 45 >>> >> 134 >>> >> 67 >>> >> 268.357635 >>> >> 199 >>> >> 45 >>> >> 134 >>> >> 67 >>> >> >>> >> --- >>> >> These seem to be very similar to the issues I was encountering >>> before, >>> >> but >>> >> they are not fixed by the patch. What is the best way to >>> resolve these >>> >> inconsistencies? >>> >> >>> >> Thanks, >>> >> David >>> > _______________________________________________ >>> > Mono-list maillist - Mono-list at lists.ximian.com >>> >>> > http://lists.ximian.com/mailman/listinfo/mono-list >>> > >>> > >>> >>> -- >>> View this message in context: >>> >>> http://www.nabble.com/More-.NET-and-mono-floating-point-inconsistencies-tp22018718p22114104.html >>> Sent from the Mono - General mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> 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 sanfordarmstrong at gmail.com Sun Feb 22 09:48:56 2009 From: sanfordarmstrong at gmail.com (Sandy Armstrong) Date: Sun, 22 Feb 2009 09:48:56 -0500 Subject: [Mono-list] Mixing Mono and .NET dlls? In-Reply-To: <22141289.post@talk.nabble.com> References: <22141289.post@talk.nabble.com> Message-ID: <49A165D8.8070306@gmail.com> On 02/21/2009 05:26 PM, fevans wrote: > Miguel's blog on Mono.Options, got me wondering (again) about hybrid > projects. > http://tirania.org/blog/archive/2009/Feb-21.html > > On the technical side, what are the advantages and pitfalls of mixing dlls > from both stacks. I develop mainly in Visual Studio. Can I include > Mono.Options.dll in my .NET project? Most of this has already been answered, but I wanted to mention that since Mono.Options is a single .cs file, you probably just want to include that file in an existing assembly of yours. Please read the very short MIT/X11-style license at the top of any Mono .cs file, and you should understand the freedoms that are granted to you, and your own obligations when redistributing (including copyright info, etc). Best, Sandy From geoff at controlg.com Fri Feb 13 17:07:28 2009 From: geoff at controlg.com (byteman) Date: Fri, 13 Feb 2009 14:07:28 -0800 (PST) Subject: [Mono-list] .dll Data Provider - Can do? Message-ID: <21978137.post@talk.nabble.com> First, please excuse the cross posting, but I didn't get a "nibble" in the asp.net section. Exploring mono & linux & apache as a possibility for hosting a low volume app that reads and writes foxpro data files. On the windows side, it requires the vfpoledb.dll provider. Other than that, it's a fairly straight forward asp.net 2.0 application utilizing standard controls, etc. Should this run on mono / apache / linux? If so, can someone point me towards documentation that would show me how to handle the data provider? -- View this message in context: http://www.nabble.com/.dll-Data-Provider---Can-do--tp21978137p21978137.html Sent from the Mono - General mailing list archive at Nabble.com. From michael at schmitztech.com Fri Feb 6 17:20:05 2009 From: michael at schmitztech.com (schmmd) Date: Fri, 06 Feb 2009 22:20:05 -0000 Subject: [Mono-list] BinaryFormatter serialization accross .NET and Mono Message-ID: <21881760.post@talk.nabble.com> Hi, I am asking to learn if it is a goal of the Mono project to have consistent serialization across Mono and .Net with respect to the BinaryFormatter. Serialization is the same in some cases. For example, serialization of a byte array is the same in .NET and Mono. However, serialization of a struct containing a byte array is not. Consider the attached program. In .NET the output is: 151 0100025525525525510000000122000588499112443286101114115105111110614946484648464844326711710811611711410161110101117116114971084432801179810810599751011218411110 710111061110117108108510002783101114105971081051229711610511111069120971091121081014683116114117991161000511111610410111422000930001530006000212345611 However, in mono 2.2 it is: 96 010002552552552551000000012200038499112510002783101114105971081051229711610511111069120971091121081014683116114117991161000511111610410111422000930001530006000212345611 Is this a bug or is consistency between .NET and Mono not a goal? http://www.nabble.com/file/p21881760/Program.cs Program.cs -- View this message in context: http://www.nabble.com/BinaryFormatter-serialization-accross-.NET-and-Mono-tp21881760p21881760.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Mon Feb 23 01:21:47 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 01:21:47 -0500 Subject: [Mono-list] .dll Data Provider - Can do? In-Reply-To: <21978137.post@talk.nabble.com> References: <21978137.post@talk.nabble.com> Message-ID: <3d2f29dc0902222221x7648f944j5e3d27d3f80230af@mail.gmail.com> On Fri, Feb 13, 2009 at 5:07 PM, byteman wrote: > Exploring mono & linux & apache as a possibility for hosting a low volume > app that reads and writes foxpro data files. On the windows side, it > requires the vfpoledb.dll provider. Other than that, it's a fairly straight > forward asp.net 2.0 application utilizing standard controls, etc. > > Should this run on mono / apache / linux? If so, can someone point me > towards documentation that would show me how to handle the data provider? Is vfpoledb.dll a managed assembly? If not, then the application will not run natively on Linux unless there is a Linux-native version of this library available. If it is a managed assembly then run it through MoMA and see what the results say. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From urbanetiger at lavabit.com Wed Feb 11 07:44:38 2009 From: urbanetiger at lavabit.com (RightPaddock) Date: Wed, 11 Feb 2009 04:44:38 -0800 (PST) Subject: [Mono-list] Multi Platform Database for Mono Applications Message-ID: <21947145.post@talk.nabble.com> Hi, I am considering using Mono to develop an specific purpose image browser for use on Windows, MAC/OS and Linux systems. To meet performance requirements the application requires a database to store thumbnails and search data. I am looking for suggestions for "database" products that run on Windows, MAC/OS and Linux that do not require use of technologies such as VMWare or Parallels that I can use from within a Mono/C# environment. The application along with the database and the images will be distributed on DVD at no cost to "qualified" users, so I'm looking for a zero cost run time database system. The application must run stand-alone - i.e. no network, no servers. I anticipate installing the software on users system from the DVD, but images and the database would normally be accessed from the DVD. The thumbnails and search data would be imported from the original image files, the latter being sourced from embedded IPTC metadata such as keywords and supplemental categories. The thumbnail and IPTC metadata are injected into the image files using a commercial Digital Asset Management (DAM) application. I don't insist that the "database" be SQL compliant, b-tree indexes would probably suffice. As long as the same database or index files can be used from within the same Mono application running on Windows, MAC/OS or Linux. TIA Addenda 1 : If anyone knows of an image browser that runs on Win, Mac & Linux, that can do FAST searches on ,000's of images using the IPTC Supplemental Category and Keyword fields could they please let me know. Addenda 2 : I'm leaning towards SQLite, an embedded library is probably better for this project, as opposed to products that use a separate process - such as MySQL. -- View this message in context: http://www.nabble.com/Multi-Platform-Database-for-Mono-Applications-tp21947145p21947145.html Sent from the Mono - General mailing list archive at Nabble.com. From yyao at recursionsw.com Wed Feb 11 12:32:55 2009 From: yyao at recursionsw.com (yyaomono) Date: Wed, 11 Feb 2009 09:32:55 -0800 (PST) Subject: [Mono-list] how to deploy .NET application to iphone simulator Message-ID: <21958280.post@talk.nabble.com> I have a .NET application which we want it to run on iphone. First we try to run it on iphone simulator. I understand we need mono to accomplish such task. I do not know how to deploy such .Net application to simulator with mono. Anyone has done such task before? If so, could you enlighten me as how you accomplished it? thanks! -- View this message in context: http://www.nabble.com/how-to-deploy-.NET-application-to-iphone-simulator-tp21958280p21958280.html Sent from the Mono - General mailing list archive at Nabble.com. From sharath.05131a0584 at gmail.com Fri Feb 13 04:10:35 2009 From: sharath.05131a0584 at gmail.com (nsharath) Date: Fri, 13 Feb 2009 01:10:35 -0800 (PST) Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! Message-ID: <21992667.post@talk.nabble.com> hello sir, I am working on SUSE studio MONO 2.2. I am able to run the "Console.WriteLine()" perfectly. But the "Console.ReadLine()" is showing exceptions in the sample code.But this code is running perfectly on the Windows Visual studio 2008. My doubt is : "HOW TO READ INPUT FROM USER" ?????? - - - - - - - - - - - - - SAMPLE CODE TO FIRST THE HIGHEST 2 NUMBERS IN GIVEN ARRAY - - - - - - - - using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace practice { class highest { public static void Main() { int n,first,second; Console.Write("enter size of array:"); n = Int32.Parse(Console.ReadLine()); int[] a = new int[n]; for (int i = 0; i < a.Length; i++) { Console.Write("enter number{0}:", (i+1)); a[i] = Int32.Parse(Console.ReadLine()); } Big_func(a, out first, out second); Console.WriteLine("FIRST HIGHEST = " + first); Console.WriteLine("SECOND HIGHEST = " + second); } public static void Big_func(int[] a, out int first, out int second) { first = 0; second = 0; foreach(int i in a) { if (i > first) { second = first; first = i; } else if (i > second && i < first) { second = i; } } } } } - - - - - - - - - - - - - the end - - - - - - - - -- View this message in context: http://www.nabble.com/Doubt-on-%22Console.ReadLine%28%29%22-%21%21%21%21%21-tp21992667p21992667.html Sent from the Mono - General mailing list archive at Nabble.com. From sharath.05131a0584 at gmail.com Sat Feb 14 23:28:51 2009 From: sharath.05131a0584 at gmail.com (nsharath) Date: Sat, 14 Feb 2009 20:28:51 -0800 (PST) Subject: [Mono-list] Doubt on "Console.ReadLine()" !!!!! In-Reply-To: <21992667.post@talk.nabble.com> References: <21992667.post@talk.nabble.com> Message-ID: <22019688.post@talk.nabble.com> hello sir, thanks a lot for telling me that there is an OPTION in the project menu. Can u please tell me what is the option under "projects".I am not able to locate it. Please reply me the name of that option for taking input from TERMINAL or console...... awaiting your reply !!! nsharath wrote: > > hello sir, > I am working on SUSE studio MONO 2.2. > I am able to run the "Console.WriteLine()" perfectly. > But the "Console.ReadLine()" is showing exceptions in the sample code.But > this code is running perfectly on the Windows Visual studio 2008. > > My doubt is : "HOW TO READ INPUT FROM USER" ?????? > > - - - - - - - - - - - - - SAMPLE CODE TO FIRST THE HIGHEST 2 NUMBERS IN > GIVEN ARRAY - - - - - - - - > using System; > using System.Collections.Generic; > using System.Linq; > using System.Text; > > namespace practice > { > class highest > { > public static void Main() > { > int n,first,second; > Console.Write("enter size of array:"); > n = Int32.Parse(Console.ReadLine()); > int[] a = new int[n]; > for (int i = 0; i < a.Length; i++) > { > Console.Write("enter number{0}:", (i+1)); > a[i] = Int32.Parse(Console.ReadLine()); > } > Big_func(a, out first, out second); > Console.WriteLine("FIRST HIGHEST = " + first); > Console.WriteLine("SECOND HIGHEST = " + second); > } > public static void Big_func(int[] a, out int first, out int > second) > { > first = 0; > second = 0; > foreach(int i in a) > { > if (i > first) > { > second = first; > first = i; > } > else if (i > second && i < first) > { > second = i; > } > } > } > } > } > > - - - - - - - - - - - - - the end - - - - - - - - > > -- View this message in context: http://www.nabble.com/Doubt-on-%22Console.ReadLine%28%29%22-%21%21%21%21%21-tp21992667p22019688.html Sent from the Mono - General mailing list archive at Nabble.com. From adrin84 at gmail.com Thu Feb 19 09:22:46 2009 From: adrin84 at gmail.com (adrin) Date: Thu, 19 Feb 2009 06:22:46 -0800 (PST) Subject: [Mono-list] Tar library for mono - SharpZipLib doesnt preserve attributes/ownership of files Message-ID: <22101501.post@talk.nabble.com> Hello, are there any solutions to create a tar.gz file from a directory under Mono other than running system command 'tar'? I tried SharpZipLib but it doesnt seem to preserve file attributes (all files in created tar file are +x and owned by root regardless of their original setting) - i used sharpziplib compiled from source under windows (VS2008)... i dont see any code that would handle ownership or attribute preservation logic... Anyone knows any details on this? -- View this message in context: http://www.nabble.com/Tar-library-for-mono---SharpZipLib-doesnt-preserve-attributes-ownership-of-files-tp22101501p22101501.html Sent from the Mono - General mailing list archive at Nabble.com. From paulnsubd at live.com Sat Feb 21 10:13:29 2009 From: paulnsubd at live.com (paul_radiusict) Date: Sat, 21 Feb 2009 07:13:29 -0800 (PST) Subject: [Mono-list] dependency problem while installing mono through yum Message-ID: <22137038.post@talk.nabble.com> when i give the command 'yum install mono' in the terminal after configure the mono.repo file in /etc/yum.repos.d, i faced the following dependency problems. Need help. [root at localhost ~]# yum install mono Loaded plugins: refresh-packagekit Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package mono-core.i586 0:1.9.1-2.novell set to be updated --> Processing Dependency: libgdiplus0 for package: mono-core --> Processing Dependency: mono(Mono.Mozilla) = 0.2.0.0 for package: mono-winforms --> Processing Dependency: mono-core = 1.9.1-2.fc9 for package: mono-data-sqlite --> Processing Dependency: mono-core = 1.9.1-2.fc9 for package: mono-winforms --> Processing Dependency: mono-core = 1.9.1-2.fc9 for package: mono-data --> Processing Dependency: mono-core = 1.9.1-2.fc9 for package: mono-extras --> Processing Dependency: mono-core = 1.9.1-2.fc9 for package: mono-web --> Running transaction check ---> Package mono-winforms.i586 0:1.9.1-2.novell set to be updated ---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated --> Processing Dependency: libexif.so.9 for package: libgdiplus0 ---> Package mono-data-sqlite.i586 0:1.9.1-2.novell set to be updated ---> Package mono-web.i586 0:1.9.1-2.novell set to be updated ---> Package mono-extras.i586 0:1.9.1-2.novell set to be updated ---> Package mono-data.i586 0:1.9.1-2.novell set to be updated --> Processing Conflict: mono-core conflicts mono-addins <= 0.3 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package mono-addins.noarch 0:0.3.1-0.novell set to be updated --> Processing Dependency: mono(pango-sharp) = 2.8.0.0 for package: mono-addins --> Processing Dependency: mono(gdk-sharp) = 2.8.0.0 for package: mono-addins --> Processing Dependency: mono(glib-sharp) = 2.8.0.0 for package: mono-addins --> Processing Dependency: mono(gtk-sharp) = 2.8.0.0 for package: mono-addins ---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated --> Processing Dependency: libexif.so.9 for package: libgdiplus0 --> Finished Dependency Resolution mono-addins-0.3.1-0.novell.noarch from mono has depsolving problems --> Missing Dependency: mono(pango-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) mono-addins-0.3.1-0.novell.noarch from mono has depsolving problems --> Missing Dependency: mono(glib-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) libgdiplus0-1.9-1.rhel4.novell.i386 from mono has depsolving problems --> Missing Dependency: libexif.so.9 is needed by package libgdiplus0-1.9-1.rhel4.novell.i386 (mono) mono-addins-0.3.1-0.novell.noarch from mono has depsolving problems --> Missing Dependency: mono(gdk-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) mono-addins-0.3.1-0.novell.noarch from mono has depsolving problems --> Missing Dependency: mono(gtk-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) Error: Missing Dependency: mono(gtk-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) Error: Missing Dependency: mono(glib-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) Error: Missing Dependency: mono(gdk-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) Error: Missing Dependency: libexif.so.9 is needed by package libgdiplus0-1.9-1.rhel4.novell.i386 (mono) Error: Missing Dependency: mono(pango-sharp) = 2.8.0.0 is needed by package mono-addins-0.3.1-0.novell.noarch (mono) :-( -- View this message in context: http://www.nabble.com/dependency-problem-while-installing-mono-through-yum-tp22137038p22137038.html Sent from the Mono - General mailing list archive at Nabble.com. From dimitri.gigault at free.fr Sun Feb 1 03:28:50 2009 From: dimitri.gigault at free.fr (sonatine) Date: Sun, 01 Feb 2009 08:28:50 -0000 Subject: [Mono-list] GDI+ status: InvalidParameter Message-ID: <21772704.post@talk.nabble.com> hello I a newbie and a french ( 2 firsts problems )... I 'm on Linux (Ubuntu) for 2 weeks now and i want to use some C# software I develop my-self no windows. MoMa said it's all ok, under monodevelop the build result is : " Compilation de la solution CalculPoint Compilation du projet: CalculPoint (Debug|Any CPU) Ex?cution de la compilation principale... Compilation Termin?e -- 0 Erreur, 0 Avertissement ---------------------- Fini ---------------------- Compilation r?ussie. System.Deployment est introuvable ou est invalide." So the build is OK but System.Deployment can't be found or is invalid. and when I want to execute my solution : I have this message : Unhandled Exception: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:219 at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x000be] in /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:298 at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean keepAlive) [0x00011] in /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:162 at System.Drawing.Icon.GetInternalBitmap () [0x00036] in /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:552 at System.Drawing.Icon.ToBitmap () [0x0001b] in /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:574 at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap () at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd hwnd, System.Drawing.Icon icon) [0x00021] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1168 at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x0000d] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5138 at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x00000] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:994 at System.Windows.Forms.Form.CreateHandle () [0x0007f] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1946 at System.Windows.Forms.Control.CreateControl () [0x00044] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3711 at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x0003e] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4923 at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00071] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2404 at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3372 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool) at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00059] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:736 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00014] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:635 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:623 at CalculPoint.Program.Main () [0x0000b] in /home/dimitri/Bureau/Calcul/Calcul/CalculPoint/CalculPoint/Program.cs:17 Can someone help me ? Please ........ Someone tell me to uninstall and reinstall Mono ( but i did a bad thing and i had to reinstall ubuntu instead ) Thank you Dimitri, frog newbie -- View this message in context: http://www.nabble.com/GDI%2B-status%3A-InvalidParameter-tp21772704p21772704.html Sent from the Mono - General mailing list archive at Nabble.com. From vronskij at gmail.com Sun Feb 1 06:46:06 2009 From: vronskij at gmail.com (vronskij) Date: Sun, 01 Feb 2009 11:46:06 -0000 Subject: [Mono-list] Re quest to add links to the mono-project.com site Message-ID: <21774223.post@talk.nabble.com> Hi, I have created 2 new tutorials: IronPython Mono Winforms tutorial http://zetcode.com/tutorials/ironpythontutorial/ and GTK# tutorial http://zetcode.com/tutorials/gtksharptutorial/ I would like to ask someone, who has the necessary rights to add these links to mono-project.com site, where appropriate. thanks, jan bodnar -- View this message in context: http://www.nabble.com/Request-to-add-links-to-the-mono-project.com-site-tp21774223p21774223.html Sent from the Mono - General mailing list archive at Nabble.com. From dimitri.gigault at free.fr Sun Feb 1 07:16:19 2009 From: dimitri.gigault at free.fr (sonatine) Date: Sun, 01 Feb 2009 12:16:19 -0000 Subject: [Mono-list] GDI+ status: InvalidParameter In-Reply-To: <84776a970902010157hb4e5ddcy31d90905e302796c@mail.gmail.com> References: <21772704.post@talk.nabble.com> <21773172.post@talk.nabble.com> <84776a970902010157hb4e5ddcy31d90905e302796c@mail.gmail.com> Message-ID: <21774493.post@talk.nabble.com> >>>If your solution came from VS2008/2005 and was not cleaned before, del the bin directory and in the ref, remove "Deploy" assembly (it is only VS but "optional", then compil again through MonoDevelop. i did it, and now I can't build it anymore. I've got his message : Ex?cution de la compilation principale... Compilation de la ressource '/media/Dhoom/Calcul/Calcul/CalculPoint/CalculPoint/Form1.resx' avec resgen2. Compilation de la ressource '/media/Dhoom/Calcul/Calcul/CalculPoint/CalculPoint/Properties/Resources.resx' avec resgen2. La compilation a ?chou?. ApplicationName='/usr/bin/gmcs', CommandLine='"@/tmp/tmp305010ab.tmp"', CurrentDirectory='/media/Dhoom/Calcul/Calcul/CalculPoint/CalculPoint' Another idea to help me ? -- View this message in context: http://www.nabble.com/GDI%2B-status%3A-InvalidParameter-tp21772704p21774493.html Sent from the Mono - General mailing list archive at Nabble.com. From dimitri.gigault at free.fr Sun Feb 1 07:46:22 2009 From: dimitri.gigault at free.fr (sonatine) Date: Sun, 01 Feb 2009 12:46:22 -0000 Subject: [Mono-list] GDI+ status: InvalidParameter In-Reply-To: <21774493.post@talk.nabble.com> References: <21772704.post@talk.nabble.com> <21773172.post@talk.nabble.com> <84776a970902010157hb4e5ddcy31d90905e302796c@mail.gmail.com> <21774493.post@talk.nabble.com> Message-ID: <21774766.post@talk.nabble.com> sonatine wrote: > > >>>>If your solution came from VS2008/2005 and was not cleaned before, del > the bin directory and in the ref, remove "Deploy" assembly (it is only > VS but "optional", then compil again through MonoDevelop. > > i did it, and now I can't build it anymore. I've got his message : > Ex?cution de la compilation principale... > Compilation de la ressource > '/media/Dhoom/Calcul/Calcul/CalculPoint/CalculPoint/Form1.resx' avec > resgen2. > Compilation de la ressource > '/media/Dhoom/Calcul/Calcul/CalculPoint/CalculPoint/Properties/Resources.resx' > avec resgen2. > > La compilation a ?chou?. ApplicationName='/usr/bin/gmcs', > CommandLine='"@/tmp/tmp305010ab.tmp"', > CurrentDirectory='/media/Dhoom/Calcul/Calcul/CalculPoint/CalculPoint' > > Another idea to help me ? > I've found this : sudo apt-get install mono-devel build-essential mono-gmcs libmono-dev libpango1.0-dev libgtk2.0-dev libgtksourceview2.0-cil libgecko2.0-cil monodoc libmono-system-runtime2.0-cil libmono-cairo2.0-cil gettext now i can build my project, but I can't execute it, the error is still the same. How can I upload my solution, for you to know if my code is good ? Dimitri -- View this message in context: http://www.nabble.com/GDI%2B-status%3A-InvalidParameter-tp21772704p21774766.html Sent from the Mono - General mailing list archive at Nabble.com. From schattenkeil at googlemail.com Thu Feb 5 15:30:25 2009 From: schattenkeil at googlemail.com (Sturmrabe) Date: Thu, 05 Feb 2009 20:30:25 -0000 Subject: [Mono-list] Missing libraries for .NET program Message-ID: <21860481.post@talk.nabble.com> Hello, I am trying to make a .NET framework program run under Mono on an Ubuntu 8.10 (Intrepid Ibex) system, but I have problems with some "PresentationFramework" it misses or can't run. The version of the "mono-runtime" package included in this distribution is: 1.9.1+dfsg-4ubuntu2. At first it complained: ** (CharacterBuilder.exe:7789): WARNING **: Could not load file or assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The entry point method could not be loaded I tried to fix that by copying some files over from a .NET framework installation und putting the files under /windows/Program Files (x86)/Reference Assemblies/Microsoft/Framework/V3.0 into the MONO_PATH. Now it complains: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Character_Builder.App ---> System.InvalidProgramException: Invalid IL code in SmartAssembly.SmartExceptionsCore.UnhandledException:? (System.Exception): IL_000a: ret Does anyone have an idea how I may get around this? -- View this message in context: http://www.nabble.com/Missing-libraries-for-.NET-program-tp21860481p21860481.html Sent from the Mono - General mailing list archive at Nabble.com. From schattenkeil at googlemail.com Fri Feb 6 07:54:06 2009 From: schattenkeil at googlemail.com (Sturmrabe) Date: Fri, 06 Feb 2009 12:54:06 -0000 Subject: [Mono-list] Missing libraries for .NET program In-Reply-To: <498B63C3.7060208@gmail.com> References: <21860481.post@talk.nabble.com> <21861904.post@talk.nabble.com> <498B63C3.7060208@gmail.com> Message-ID: <21871894.post@talk.nabble.com> Thank you... so it seems I'd have to use a VMWare and buy another copy of Windows to get the program running (which would eat up too much resources and would be too expensive), or I could try to install the .NET Framework using Wine... which is unlikely to work. Sandy Armstrong wrote: > > That being said, depending on what you need from that, it *may* be > available in mono-olive. > > Sandy > > On 02/05/2009 01:48 PM, Stifu wrote: >> If I'm not mistaken, "PresentationFramework" refers to WPF, which is not >> supported by Mono, and the support of which is not planned either. >> >> >> Sturmrabe wrote: >>> Hello, >>> >>> I am trying to make a .NET framework program run under Mono on an Ubuntu >>> 8.10 (Intrepid Ibex) system, but I have problems with some >>> "PresentationFramework" it misses or can't run. The version of the >>> "mono-runtime" package included in this distribution is: >>> 1.9.1+dfsg-4ubuntu2. At first it complained: >>> >>> ** (CharacterBuilder.exe:7789): WARNING **: Could not load file or >>> assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, >>> PublicKeyToken=31bf3856ad364e35' or one of its dependencies. >>> The entry point method could not be loaded >>> >>> I tried to fix that by copying some files over from a .NET framework >>> installation und putting the files under /windows/Program Files >>> (x86)/Reference Assemblies/Microsoft/Framework/V3.0 into the MONO_PATH. >>> Now it complains: >>> >>> Unhandled Exception: System.TypeInitializationException: An exception >>> was >>> thrown by the type initializer for Character_Builder.App ---> >>> System.InvalidProgramException: Invalid IL code in >>> SmartAssembly.SmartExceptionsCore.UnhandledException:? >>> (System.Exception): IL_000a: ret >>> >>> Does anyone have an idea how I may get around this? >>> >> > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Missing-libraries-for-.NET-program-tp21860481p21871894.html Sent from the Mono - General mailing list archive at Nabble.com. From sienna74 at btinternet.com Sun Feb 8 10:19:48 2009 From: sienna74 at btinternet.com (Sienna) Date: Sun, 8 Feb 2009 07:19:48 -0800 (PST) Subject: [Mono-list] Embedded Databases in .NET/Mono Message-ID: <21899885.post@talk.nabble.com> Hello, Currently I am fiddling around with different embedded databases on the .NET platform (SQLite, SQLServerCE). But both are either not supported in Mono or use a different API, which makes things very complicated. Does anyone know an embedded database, which is easy to install (or does not require installation at all), and allows SQL-style queries, that runs on both .NET 2.0 and Mono without touching the code? Any pointers in the right directions are highly appreciated ;-) -- View this message in context: http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p21899885.html Sent from the Mono - General mailing list archive at Nabble.com. From sienna74 at btinternet.com Sun Feb 8 11:28:23 2009 From: sienna74 at btinternet.com (Sienna) Date: Sun, 8 Feb 2009 08:28:23 -0800 (PST) Subject: [Mono-list] Embedded Databases in .NET/Mono In-Reply-To: <8EC39FD6-8967-4302-8D27-1164A3FCE47D@gmail.com> References: <21899885.post@talk.nabble.com> <21900035.post@talk.nabble.com> <8EC39FD6-8967-4302-8D27-1164A3FCE47D@gmail.com> Message-ID: <21900544.post@talk.nabble.com> Abe Gillespie wrote: > > You shouldn't even need ODBC. Sqlite ships .Net assemblies. > > Tried different ones, but didn't find any, which run out-of-the-box on both .NET and Mono without changing the code (which is important). The linuxODBC approach is off the menu too, I am afraid, because the idea of an embedded database is to not require the user of the program to install anything apart from the program itself on their machines. So the question is not: Is there any way to get any embedded DB running on both .NET and Linux/Mac OS running Mono? The question is rather: Is there an embedded DB out there, which runs on both platforms without requiring the user of the program to experience major configuration pain. :-) Thanks alot. Sienna -- View this message in context: http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p21900544.html Sent from the Mono - General mailing list archive at Nabble.com. From brett_senior at yahoo.com.au Mon Feb 9 00:27:46 2009 From: brett_senior at yahoo.com.au (Brett Senior) Date: Sun, 8 Feb 2009 21:27:46 -0800 (PST) Subject: [Mono-list] Unable to compile version 126312 of Mono from SVN Message-ID: <21907319.post@talk.nabble.com> Today I fetched version 126312 of Mono from and attempted to build it with the following commands: $ cd mono $ svn update $ cd ../mcs $ svn update $ cd ../mono $ ./autogen.sh --prefix=/opt/mono $ make clean $ make and when it attempts to build things in 'docs' I get the following error: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Cannot open assembly '../../mcs/class/lib/default/mcs.exe': No such file or directory. make[1]: *** [convert.exe] Error 2 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 2 So, I went to the ../../mcs/class/lib/default directory and created a symbolic link to ../../../mcs/mcs.exe and then the build went a little further and then I get the following error message: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly assembly, System.String name) [0x00000] at Mono.CSharp.RootNamespace.LookupTypeReflection (System.String name, Location loc) [0x00000] at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection (System.String name, Location loc) [0x00000] at Mono.CSharp.Namespace.LookupType (System.String name, Location loc) [0x00000] at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String name, Location loc) [0x00000] at Mono.CSharp.TypeManager.CoreLookupType (System.String ns_name, System.String name, Kind type_kind, Boolean required) [0x00000] at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x00000] at Mono.CSharp.Driver.LoadReferences () [0x00000] at Mono.CSharp.Driver.Compile () [0x00000] at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] make[1]: *** [convert.exe] Error 1 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 1 When I looked into this a little further it seems that mono/mono/mini/mono has a problem with the -r:AgilityPack.dll and if I use a mono other than this (eg /opt/mono/bin/mono) the convert.cs will compile to convert.exe - so the problem seems to be something related to mono/mono/mini/mono. I have compiled mono from svn in the past and have not had issues such as the above. Can someone please provide me with some help so that I can get mono build ? -- View this message in context: http://www.nabble.com/Unable-to-compile-version-126312-of-Mono-from-SVN-tp21907319p21907319.html Sent from the Mono - General mailing list archive at Nabble.com. From watyf at hotmail.com Mon Feb 9 16:26:58 2009 From: watyf at hotmail.com (WATYF) Date: Mon, 9 Feb 2009 13:26:58 -0800 (PST) Subject: [Mono-list] Tips for getting started with mono? Want to run .NET apps on Windows and Mac. Message-ID: <21922349.post@talk.nabble.com> I'd like to know if there's a place I can find some "getting started" tips for writing apps for both Windows and Mac (I suppose Linux, too, but that's not a target platform). Right now, I write in VB.NET for Windows. Someone is asking if I can develop an app that will work on Windows and Macs, to which I quickly responded, "No." :oP But, for kicks, I figured I'd look into it, and it appears that it might not be too much of a pain to try mono. So my question is... what exactly does it take to make an app for both Windows and Mac? Do I have to use two different IDE's? Do I have to do any "conversion" of the code after I'm done writing it on the Windows platform? What about the installer? I'm assuming that the VS.NET Setup and Deployment project won't work on a Mac, so how do I create an installer for Macs (especially one that will check to see if they have mono installed and tell them to download it if they don't)? This is my first foray into this type of thing, so talk real slow. :o) WATYF -- View this message in context: http://www.nabble.com/Tips-for-getting-started-with-mono--Want-to-run-.NET-apps-on-Windows-and-Mac.-tp21922349p21922349.html Sent from the Mono - General mailing list archive at Nabble.com. From watyf at hotmail.com Mon Feb 9 16:29:20 2009 From: watyf at hotmail.com (WATYF) Date: Mon, 9 Feb 2009 13:29:20 -0800 (PST) Subject: [Mono-list] Embedded Databases in .NET/Mono In-Reply-To: <21899885.post@talk.nabble.com> References: <21899885.post@talk.nabble.com> Message-ID: <21922391.post@talk.nabble.com> Sienna wrote: > > Hello, > > Currently I am fiddling around with different embedded databases on the > .NET platform (SQLite, SQLServerCE). But both are either not supported in > Mono or use a different API, which makes things very complicated. > Does anyone know an embedded database, which is easy to install (or does > not require installation at all), and allows SQL-style queries, that runs > on both .NET 2.0 and Mono without touching the code? > > Any pointers in the right directions are highly appreciated ;-) > I'm just looking into mono right now, so I don't really know anything about it, but I use an embedded database called VistaDB, which is written entirely in managed code, so I would think it would have a decent chance of working with mono. Just thought I'd throw that out there. WATYF -- View this message in context: http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p21922391.html Sent from the Mono - General mailing list archive at Nabble.com. From sienna74 at btinternet.com Mon Feb 9 16:54:16 2009 From: sienna74 at btinternet.com (Sienna) Date: Mon, 9 Feb 2009 13:54:16 -0800 (PST) Subject: [Mono-list] Embedded Databases in .NET/Mono In-Reply-To: <21922391.post@talk.nabble.com> References: <21899885.post@talk.nabble.com> <21922391.post@talk.nabble.com> Message-ID: <21922903.post@talk.nabble.com> WATYF wrote: > > I'm just looking into mono right now, so I don't really know anything > about it, but I use an embedded database called VistaDB, which is written > entirely in managed code, so I would think it would have a decent chance > of working with mono. Just thought I'd throw that out there. > Thanks for that suggestion. Unfortunately, it is a proprietary product (US$279/license), hence not compatible with my GPL'ed project. :-( I think I will have to actually provide different versions for .NET and Mono, and just use the different SQLite APIs then... -- View this message in context: http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p21922903.html Sent from the Mono - General mailing list archive at Nabble.com. From watyf at hotmail.com Mon Feb 9 19:10:07 2009 From: watyf at hotmail.com (WATYF) Date: Mon, 9 Feb 2009 16:10:07 -0800 (PST) Subject: [Mono-list] Tips for getting started with mono? Want to run .NET apps on Windows and Mac. In-Reply-To: <21922885.post@talk.nabble.com> References: <21922349.post@talk.nabble.com> <21922885.post@talk.nabble.com> Message-ID: <21925051.post@talk.nabble.com> Stifu wrote: > > Quick answer: you can just code and compile on Windows, then run on Mac, > with no modification whatsoever. > You can also make bundles for Mac, to make your apps more user friendly. > But I'll leave that for Mac users to explain. OK. So I can do all the coding in VS.NET and the exe will run on any platform with mono? I guess the only question then is the installer piece. WATYF -- View this message in context: http://www.nabble.com/Tips-for-getting-started-with-mono--Want-to-run-.NET-apps-on-Windows-and-Mac.-tp21922349p21925051.html Sent from the Mono - General mailing list archive at Nabble.com. From hywe at controlspecials.demon.co.uk Wed Feb 11 05:24:37 2009 From: hywe at controlspecials.demon.co.uk (hywel) Date: Wed, 11 Feb 2009 02:24:37 -0800 (PST) Subject: [Mono-list] Mono Compiler error for multiple assignments Message-ID: <21951900.post@talk.nabble.com> Under Mono 2.0.1 and Mono 2.2, the test program below gives the following output:- {X=100,Y=200} {X=0,Y=0} using System; using System.Drawing; namespace Test { public class Assignment { static void Main () { int X=100,Y=200; Point start, end; start = end = new Point(X,Y); Console.WriteLine(start); Console.WriteLine(end); } } } indicating that the multiple assignment start = end = new Point(X,Y) is not compiling correctly. The MS compiler works as expected. -- hywelt -- View this message in context: http://www.nabble.com/Mono-Compiler-error-for-multiple-assignments-tp21951900p21951900.html Sent from the Mono - General mailing list archive at Nabble.com. From reubens73 at gmail.com Thu Feb 12 17:34:50 2009 From: reubens73 at gmail.com (reubensm) Date: Thu, 12 Feb 2009 14:34:50 -0800 (PST) Subject: [Mono-list] Same code, different performance? Message-ID: <21986473.post@talk.nabble.com> Hello Mono community :) At work we have a piece of C# code written and compiled under Windows that we'd like to port to Linux using Mono. The code has two parts (client and server) that perform many tasks, one of which is data transfer from the cilent to the server. In our tests we see that when running on Windows, the same code achieves performance at least 3-4 times better (faster) than when running under Mono/Linux. We ran a profiler, but the results didn't give any obvious culprit, except the possibility that it might be related to synchronization primitives implementation of Mono. Can anyone think of a reason for this slowness? like said, it is the same code (and binaries, compiled under Windows) used in both Windows and Linux. Both environments are physical (no virtualization, VMs). Could this be unrelated to Mono, and a result of some OS settings? (Fedora 10) if so, what should we check? Thanks -- View this message in context: http://www.nabble.com/Same-code%2C-different-performance--tp21986473p21986473.html Sent from the Mono - General mailing list archive at Nabble.com. From michal.x.malek at us.hsbc.com Fri Feb 13 16:40:02 2009 From: michal.x.malek at us.hsbc.com (MonoMichal) Date: Fri, 13 Feb 2009 13:40:02 -0800 (PST) Subject: [Mono-list] Running .Net 1.1 application on mono 2.0 Message-ID: <22005048.post@talk.nabble.com> Hi, I would like to migrate my mono to 2.0 stable version. Do I can run my old .net 1.1 application on it without migrating application to .Net 2.0. I have application folder - do I can leave it as it is without any changes. For now I have 3 sites running on my mono 1.9 server, all use .Net 1.1. I have 3 separated mod-mono processes. I would like to migrate one of them to .Net 2.0 and leave other two applications running on .Net 1.1 Please advise, Michal PS. I'm sorry for my English. It's not perfect yet. -- View this message in context: http://www.nabble.com/Running-.Net-1.1-application-on-mono-2.0-tp22005048p22005048.html Sent from the Mono - General mailing list archive at Nabble.com. From patrickwasp at gmail.com Sun Feb 15 10:20:12 2009 From: patrickwasp at gmail.com (waspinator) Date: Sun, 15 Feb 2009 07:20:12 -0800 (PST) Subject: [Mono-list] Using tesseract-ocr in C# application Message-ID: <22023664.post@talk.nabble.com> Hi, I'd like to create a simple GUI for tesseract-ocr using Mono, C# and GTK#. I'm new to programming and I'm not sure how I would include tesseract-ocr in my program so that I could use its functions. So I guess what I want is a tesseract-ocr SDK if it exists. Can someone please point me in the right direction? I'm using MonoDevelop 1.0 on Ubuntu 8.10, and tesseract-ocr 2.03. Thanks, Waspinator -- View this message in context: http://www.nabble.com/Using-tesseract-ocr-in-C--application-tp22023664p22023664.html Sent from the Mono - General mailing list archive at Nabble.com. From gustavo.rubio at gmail.com Wed Feb 18 13:16:52 2009 From: gustavo.rubio at gmail.com (visor) Date: Wed, 18 Feb 2009 10:16:52 -0800 (PST) Subject: [Mono-list] Loading assemblies in the "csharp" or "gsharp" tools Message-ID: <22084876.post@talk.nabble.com> Im trying to load an assembly inside the gsharp tool that is included with the mono distribution since 2.2 however the application crashes, I tried with the command line tool called csharp too but it wont even open: cannot open assembly 'csharp.exe': Result too large That's the message that I get so I can't event debug it to see what's happening. I would really appreciate any hint. Thanks. -- View this message in context: http://www.nabble.com/Loading-assemblies-in-the-%22csharp%22-or-%22gsharp%22-tools-tp22084876p22084876.html Sent from the Mono - General mailing list archive at Nabble.com. From abrazaq at gmail.com Thu Feb 19 00:49:36 2009 From: abrazaq at gmail.com (kako) Date: Wed, 18 Feb 2009 21:49:36 -0800 (PST) Subject: [Mono-list] can mono support ASP.NET, Crystal Reports, Ajix Database Message-ID: <22094396.post@talk.nabble.com> hi all, i am new in mono application, can any one tell me mono can support the ASP.NET, Crystal Reports, Ajix Database. i read the artical about mono but there is not mentioned on Crystal Reports, Ajix Database. if mono support ajx and crystal report i will go start. any one can send me the mono configuration setup file. Thanks Kako -- View this message in context: http://www.nabble.com/can-mono-support-ASP.NET%2C-Crystal-Reports%2C-Ajix-Database-tp22094396p22094396.html Sent from the Mono - General mailing list archive at Nabble.com. From alecl at alecl.com Fri Feb 20 22:11:21 2009 From: alecl at alecl.com (sideout) Date: Fri, 20 Feb 2009 19:11:21 -0800 (PST) Subject: [Mono-list] C# Quorum over IP Pattern Message-ID: <22132385.post@talk.nabble.com> I have 6 machines. I'm interested in implementing a system where only one node can possibly be active doing a particular task at a time. If that node becomes unresponsive or disconnects from the rest, it should lose the ability to continue doing work (important because it may still actually we working, just not able to communicate over the network) and another node should be elected active and begin work again. This is how a http://www.windowsnetworking.com/articles_tutorials/Cluster-Quorums.html server cluster is implemented. I was wondering if there are any open source frameworks or examples for this. Ideally well tested and peer reviewed. If not at least a well thought out paper explaining the theory and possible implementation. I could invent my own, but I may not think of everything the first time around nor is it efficient to re-invent the wheel. -- View this message in context: http://www.nabble.com/C--Quorum-over-IP-Pattern-tp22132385p22132385.html Sent from the Mono - General mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090220/d3f70c6b/attachment.html From britainc at fifthorder.com Fri Feb 20 23:05:05 2009 From: britainc at fifthorder.com (bcrooker) Date: Fri, 20 Feb 2009 20:05:05 -0800 (PST) Subject: [Mono-list] Mono on CentOS 4 / Plesk 9 Message-ID: <22132612.post@talk.nabble.com> I have installed Mono, XSP and Mod_Mono on our VPS. If I try to access the XSP Test code (after copying it to a subfolder of our domain) we get the following in the error log: System.UnauthorizedAccessException: Access to the path "/var/www/vhosts/mydomain.com/httpdocs" is denied. at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] at System.IO.DirectoryInfo.GetFiles (System.String searchPattern) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:GetFiles (string) at Mono.WebServer.ModMonoWorker.CheckDirectory (System.IO.DirectoryInfo info) [0x00000] at Mono.WebServer.ModMonoWorker.GetOrCreateApplication (System.String vhost, Int32 port, System.String filepath, System.String virt) [0x00000] at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000] at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000] [Fri Feb 20 22:59:09 2009] [error] (70014)End of file found: read_data failed [Fri Feb 20 22:59:09 2009] [error] Command stream corrupted, last command was -1 We are using the standard autohosting setup. If I run XSP, I can browse to it using the 8080 port and it seems to work mostly. -- View this message in context: http://www.nabble.com/Mono-on-CentOS-4---Plesk-9-tp22132612p22132612.html Sent from the Mono - General mailing list archive at Nabble.com. From adolfoabegg at gmail.com Sun Feb 22 10:44:53 2009 From: adolfoabegg at gmail.com (adol) Date: Sun, 22 Feb 2009 07:44:53 -0800 (PST) Subject: [Mono-list] No C# installer found after installing mono-2.2 from source Message-ID: <22148120.post@talk.nabble.com> Hi people, I've just installed Mono 2.2 from source on a shiny new CentOS 5.2 box. ./configure --prefix=/usr/local/ make make install Then, when I tried to configure xsp, I've got this: [root at mybox xsp-2.2]# ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking for pkg-config... /usr/bin/pkg-config checking if tracing is requested... no checking for csc... no checking for mcs... no checking for gmcs... no checking for mono... /usr/local/bin/mono checking for gacutil... no checking for sn... no configure: error: No C# compiler found I searched for gmcs and mcs but I didn't find them installed on my box... Obviusly, something went wrong when installing Mono.... I've no idea why it didn't install any c# compiler... Suggestions? Thank you in advance! -- View this message in context: http://www.nabble.com/No-C--installer-found-after-installing-mono-2.2-from-source-tp22148120p22148120.html Sent from the Mono - General mailing list archive at Nabble.com. From s-a-s-u-k-e at hotmail.de Sun Feb 22 18:03:28 2009 From: s-a-s-u-k-e at hotmail.de (Don't Know) Date: Sun, 22 Feb 2009 15:03:28 -0800 (PST) Subject: [Mono-list] Error while trying to start a exe Message-ID: <22152930.post@talk.nabble.com> Hello, here is my problem: /home/rse/server/FamilyNetwork$ mono ChatServer.exe ** (ChatServer.exe:11828): WARNING **: The following assembly referenced from /home/rse/server/FamilyNetwork/ChatServer.exe could not be loaded: Assembly: System (assemblyref_index=1) Version: 2.0.0.0 Public Key: b77a5c561934e089 The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/rse/server/FamilyNetwork/). ** (ChatServer.exe:11828): WARNING **: Could not load file or assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' The programm is written in c#. The system of the server is debian. in this programm there is used a StreamReader. That's the only thing i can say to this "IO-Story" in the errormessage. Thanks for help -- View this message in context: http://www.nabble.com/Error-while-trying-to-start-a-exe-tp22152930p22152930.html Sent from the Mono - General mailing list archive at Nabble.com. From radical at gmail.com Mon Feb 23 01:48:06 2009 From: radical at gmail.com (Ankit Jain) Date: Mon, 23 Feb 2009 12:18:06 +0530 Subject: [Mono-list] Need help with xbuild. In-Reply-To: <21513686.post@talk.nabble.com> References: <21513686.post@talk.nabble.com> Message-ID: > 1. What's the project file supported by xbuild? Ara there anything manual of > xbuild? xbuild from svn currently supports both csproj and sln files. Its still work in progress, but you could try it. Just run it as - xbuild foo.csproj xbuild foo.csproj /t:Clean -- to run specific targets, like Clean Or you could try MonoDevelop (www.monodevelop.com), it supports msbuild projects emitted by VS200X. -Ankit > > 2. Get a exception from prj2make: > > ==Foo.cs======= > using System; > public class HelloWord{ > public static void Main(){ > Console.WriteLine("Hello .net"); > } > } > > ==Foo.csproj======== > xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> > > Library > Foo > > > > > > > > > > > ==cmd======== > D:\E4SL>prj2make Foo.csproj > EXCEPTION: System.NullReferenceException: Object reference not set to an > instanc > e of an object > at Mfconsulting.General.Prj2Make.SlnMaker.GetCsprojFileVersion > (System.String > strInCsprojFile) [0x00000] > at Mfconsulting.General.Prj2Make.SlnMaker.MsSlnHelper (Boolean isUnixMode, > Boo > lean isMcsMode, Boolean isSln, System.String slnFile) [0x00000] > > I hope you can help me, and show me a sample for xbuild. > > Thanks. > stan zhang > -- > View this message in context: http://www.nabble.com/Need-help-with-xbuild.-tp21513686p21513686.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Blog : http://www.ankitjain.org/blog From gnorton at novell.com Mon Feb 23 01:59:38 2009 From: gnorton at novell.com (Geoff Norton) Date: Mon, 23 Feb 2009 01:59:38 -0500 Subject: [Mono-list] Media Pack for Monolight 1.0 In-Reply-To: References: Message-ID: <1235372378.4245.10.camel@limestone> No, it doesn't: [0.23][01:59] plasma at limestone:~/Desktop$ objdump -p silverlight-media-pack-linux-x86-5-1.so | grep NEEDED NEEDED libmoon.so.0 NEEDED libstdc++.so.6 NEEDED libm.so.6 NEEDED libc.so.6 NEEDED libgcc_s.so.1 -g On Sat, 2009-01-17 at 01:14 +0100, Chris Hills wrote: > Hi > > The media pack for Monolight 1 on Firefox for Linux > (silverlight-media-pack-linux-x86-5-1.so) links to libmono.so.0. This > requires the full Mono framework to be installed as it is not provided > by Monolight. This was not clear at install time. > > Regards, > > Chris Hills > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From surfzoid at gmail.com Mon Feb 23 03:12:15 2009 From: surfzoid at gmail.com (Petit Eric) Date: Mon, 23 Feb 2009 09:12:15 +0100 Subject: [Mono-list] Tar library for mono - SharpZipLib doesnt preserve attributes/ownership of files In-Reply-To: <22101501.post@talk.nabble.com> References: <22101501.post@talk.nabble.com> Message-ID: <84776a970902230012i1336173bq65bf60daf817db3c@mail.gmail.com> 2009/2/19 adrin : > > Hello, > are there any solutions to create a tar.gz file from a directory under Mono > other than running system command 'tar'? > I tried SharpZipLib but it doesnt seem to preserve file attributes (all > files in created tar file are +x and owned by root regardless of their > original setting) - i used sharpziplib compiled from source under windows > (VS2008)... i dont see any code that would handle ownership or attribute > preservation logic... Anyone knows any details on this? > -- > View this message in context: http://www.nabble.com/Tar-library-for-mono---SharpZipLib-doesnt-preserve-attributes-ownership-of-files-tp22101501p22101501.html perhap's try the one include in Mono at last yu can imagine, a list of file with there attribute, write that in a text file and embded it in the zip, but i think it should preserve attrib. Another way is to folow RPM, by build a CPIO (it is very easy) and gzip the CPIO > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From cdhowie at gmail.com Mon Feb 23 03:39:03 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 03:39:03 -0500 Subject: [Mono-list] How can use my software (Win32) on Linux plz? In-Reply-To: <21574737.post@talk.nabble.com> References: <21574737.post@talk.nabble.com> Message-ID: <3d2f29dc0902230039l54e60bb2tb1a13bc815626546@mail.gmail.com> On Tue, Jan 20, 2009 at 7:21 PM, arnomedia wrote: > I made a litle software with VB 2008 Express on Windows XP. I would like to > run it on another computer under Linux only. Please, how can do that > exactly? I am not confortable at all with Linux. I had read something about > VMware but I don't know if I need to install it. At present, I am under > Ubuntu 8.10, but I can change of distrib if you know another distrib that > could be better in my case. I have been doing a lot of research on the web, > but this does not help me enough. VMware is a software virtualization layer that allows you to run entire operating systems on top of another operating system. In other words, you could use this to run Windows in a virtual machine on Linux. If you are doing this to run .NET applications then you do not need Mono at all. > Otherwise, is it possible to use Wine? I tried it with another software, > that certainly does not need NET Framework, and it seem easiest to use. Wine does not support .NET applications out of the box, but supposedly it does if you install the Windows version of Mono using Wine. Which is pointless except to test that scenario, since Mono runs natively on Linux. If Ubuntu supports it, you can try right-clicking the .exe file and choosing "Run with Mono." If mono is not installed then you need to install mono-1.0-runtime and/or mono-2.0-runtime using the package manager, then try it again. If that does not work then you need to open a terminal and type "mono path/to/your/app.exe". -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 03:41:58 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 03:41:58 -0500 Subject: [Mono-list] Tips for getting started with mono? Want to run .NET apps on Windows and Mac. In-Reply-To: <21925051.post@talk.nabble.com> References: <21922349.post@talk.nabble.com> <21922885.post@talk.nabble.com> <21925051.post@talk.nabble.com> Message-ID: <3d2f29dc0902230041h78e06dddmad92a9ee1f3650d4@mail.gmail.com> On Mon, Feb 9, 2009 at 7:10 PM, WATYF wrote: > OK. So I can do all the coding in VS.NET and the exe will run on any > platform with mono? I guess the only question then is the installer piece. Yes, if you follow these guidelines: -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 03:46:25 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 03:46:25 -0500 Subject: [Mono-list] Running .Net 1.1 application on mono 2.0 In-Reply-To: <22005048.post@talk.nabble.com> References: <22005048.post@talk.nabble.com> Message-ID: <3d2f29dc0902230046i4b0b57c1n38f5844c6ae3efd2@mail.gmail.com> On Fri, Feb 13, 2009 at 4:40 PM, MonoMichal wrote: > I would like to migrate my mono to 2.0 stable version. > > Do I can run my old .net 1.1 application on it without migrating application > to .Net 2.0. > I have application folder - do I can leave it as it is without any changes. Note that Mono 2.0 does not mean that this is the 2.0 .NET Framework version of Mono. The version numbers are totally unrelated. > For now I have 3 sites running on my mono 1.9 server, all use .Net 1.1. I > have 3 separated mod-mono processes. > > I would like to migrate one of them to .Net 2.0 and leave other two > applications running on .Net 1.1 I am not sure how this is configured from the mod_mono side of things, but you should be able to pick which version of the framework is used for each web application. Mono 2.0 includes the 1.0, 2.0, and pieces of the 3.5 stack. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 03:49:30 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 03:49:30 -0500 Subject: [Mono-list] Error while trying to start a exe In-Reply-To: <22152930.post@talk.nabble.com> References: <22152930.post@talk.nabble.com> Message-ID: <3d2f29dc0902230049nbbe4cc6od67697581c9d3de2@mail.gmail.com> On Sun, Feb 22, 2009 at 6:03 PM, Don't Know wrote: > Hello, > > here is my problem: > > /home/rse/server/FamilyNetwork$ mono ChatServer.exe > > ** (ChatServer.exe:11828): WARNING **: The following assembly referenced > from /home/rse/server/FamilyNetwork/ChatServer.exe could not be loaded: > Assembly: System (assemblyref_index=1) > Version: 2.0.0.0 > Public Key: b77a5c561934e089 > The assembly was not found in the Global Assembly Cache, a path listed in > the MONO_PATH environment variable, or in the location of the executing > assembly (/home/rse/server/FamilyNetwork/). > ** (ChatServer.exe:11828): WARNING **: Could not load file or assembly > 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' > or one of its dependencies. > Unhandled Exception: System.IO.FileNotFoundException: Could not load file or > assembly 'System, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089' or one of its dependencies. > File name: 'System, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089' > > > The programm is written in c#. The system of the server is debian. > > in this programm there is used a StreamReader. That's the only thing i can > say to this "IO-Story" in the errormessage. By the looks of it, you have the 1.0 framework assemblies installed but not the 2.0 framework assemblies. Try installing the libmono-system2.0-cil package. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 03:58:32 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 03:58:32 -0500 Subject: [Mono-list] Parametized generics puzzler In-Reply-To: <21704985.post@talk.nabble.com> References: <21704985.post@talk.nabble.com> Message-ID: <3d2f29dc0902230058y962bd4ft27e19a81d6cc427e@mail.gmail.com> On Wed, Jan 28, 2009 at 7:40 AM, ebichete wrote: > Does anyone know why the following code doesn't "do the expected thing" ? I > think I've properly coded my intent in C# but I could be wrong. > > I'm trying to get the base class static methods to act differently based on > static data in the derived classes. > > [snip] The problem here is that you are declaring new members with the same name on the derived type Truck and are not actually overriding them. This distinction is important. Further, static members cannot be overridden -- period. What you want is something like: public class Vehicle { public virtual string REG_TYPE { get { return ""; } } public virtual string TAX_CAT { get { return ""; } } } public class Truck : Vehicle { public override string REG_TYPE { get { return "G"; } } public override string TAX_CAT { get { return "J4"; } } } No generics or obnoxious getter methods needed. P.S. Names like REG_TYPE are in bad taste. Try something like RegistrationType. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 04:02:31 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 04:02:31 -0500 Subject: [Mono-list] Multi Platform Database for Mono Applications In-Reply-To: <21947145.post@talk.nabble.com> References: <21947145.post@talk.nabble.com> Message-ID: <3d2f29dc0902230102o190e6e21sbbfef8c7d6de6768@mail.gmail.com> On Wed, Feb 11, 2009 at 7:44 AM, RightPaddock wrote: > Addenda 2 : I'm leaning towards SQLite, an embedded library is probably > better for this project, as opposed to products that use a separate process > - such as MySQL. Sounds like you had your answer before you sent the message. http://www.mono-project.com/SQLite -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 04:06:22 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 04:06:22 -0500 Subject: [Mono-list] Problems with CopyTo, using Contains(...) and inserting a character from one string into another. In-Reply-To: <21683670.post@talk.nabble.com> References: <21683670.post@talk.nabble.com> Message-ID: <3d2f29dc0902230106u5fa6aec9m31961dae03b91443@mail.gmail.com> On Tue, Jan 27, 2009 at 6:53 AM, PFJ wrote: > I'm trying to copy a specific section of a string to another string. > My code looks like this > > void search(string s) > string newstring; > for (int a = 0 ; a < s.Length; ++a) > { > if (a + 1 > s.Length) > continue; > if (s[a + 1] < 'a') > s.CopyTo(a, newstring.ToCharArray(), 0, 1); > else > { > s.CopyTo(a, newstring.ToCharArray(),0, 2); > a++; > } > } I did not look too deeply into the exception you are getting because this approach is simply wrong. You are copying the characters into a new array that you never use again. In other words, this block of code would do absolutely nothing but burn CPU cycles even if it did work. You probably want to look at the StringBuilder class as well. It better encapsulates actions like this and is designed to prevent you from creating several intermediate String objects (which you don't do here but are very likely to do if you haven't done this kind of thing before). -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Mon Feb 23 04:08:36 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 04:08:36 -0500 Subject: [Mono-list] BinaryFormatter serialization accross .NET and Mono In-Reply-To: <21881760.post@talk.nabble.com> References: <21881760.post@talk.nabble.com> Message-ID: <3d2f29dc0902230108v603c6abcu3c95fe9739ea886b@mail.gmail.com> On Fri, Feb 6, 2009 at 5:19 PM, schmmd wrote: > Hi, I am asking to learn if it is a goal of the Mono project to have > consistent serialization across Mono and .Net with respect to the > BinaryFormatter. Serialization is the same in some cases. For example, > serialization of a byte array is the same in .NET and Mono. However, > serialization of a struct containing a byte array is not. > > [snip] > > Is this a bug or is consistency between .NET and Mono not a goal? I do not believe it is a very high-priority goal. You might try the SoapFormatter class. It at least produces more readable output so if there is an issue it's easier to spot, and hence easier for the developers to fix. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From robertj at gmx.net Mon Feb 23 05:57:42 2009 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Feb 2009 11:57:42 +0100 Subject: [Mono-list] BinaryFormatter serialization accross .NET and Mono In-Reply-To: <21881760.post@talk.nabble.com> References: <21881760.post@talk.nabble.com> Message-ID: schmmd wrote: > Hi, I am asking to learn if it is a goal of the Mono project to have > consistent serialization across Mono and .Net with respect to the > BinaryFormatter. Serialization is the same in some cases. For example, > serialization of a byte array is the same in .NET and Mono. However, > serialization of a struct containing a byte array is not. Consider the > attached program. In .NET the output is: The output is not always bitwise equal, but after a roundtrip the same objects are created. This usually happens due to minor serialization metadata differences or while roundtripping between different framework versions. Robert From donbonifacio at gmail.com Mon Feb 23 06:03:04 2009 From: donbonifacio at gmail.com (Pedro Santos) Date: Mon, 23 Feb 2009 11:03:04 +0000 Subject: [Mono-list] Bug within ASP.NET WebControls? Message-ID: Hello, I'm moving an application from a windows to mono. Today I got a problem while rendering a custom web control. This works fine on a windows machine. I use it on the aspx as: And the contents of the control are basically: http://pastebin.com/m214a6c22 This control renders in MS .NET as: But on Mono 2.2 I get the following exception: Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Web.UI.WebControls.Style.AddAttributesToRender (System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebControl owner) [0x00000] at System.Web.UI.WebControls.WebControl.AddAttributesToRender (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.WebControls.TextBox.AddAttributesToRender (System.Web.UI.HtmlTextWriter w) [0x00000] at System.Web.UI.WebControls.WebControl.RenderBeginTag (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.WebControls.TextBox.Render (System.Web.UI.HtmlTextWriter w) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at Institutional.WebComponents.Controls.StringEditor`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer, Institutional.Core.ExceptionInfo t, Int32 renderCount, Boolean flipFlop) [0x00000] at Institutional.WebComponents.Controls.BaseFieldControl`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at Institutional.WebComponents.Controls.BaseEntityItem`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (System.Web.UI.HtmlTextWriter w) [0x00000] at System.Web.UI.HtmlControls.HtmlContainerControl.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.HtmlControls.HtmlForm.Render (System.Web.UI.HtmlTextWriter w) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.HtmlControls.HtmlForm.RenderControl (System.Web.UI.HtmlTextWriter w) [0x00000] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Page.RenderPage () [0x00000] at System.Web.UI.Page.InternalProcessRequest () [0x00000] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] Could I have some assistance? May this considered a bug? Is it already known? What should I do? If it's known, is there any quick workaround? Thank you for your time. -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu From robertj at gmx.net Mon Feb 23 06:10:22 2009 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Feb 2009 12:10:22 +0100 Subject: [Mono-list] Bug within ASP.NET WebControls? In-Reply-To: References: Message-ID: Pedro Santos wrote: > http://pastebin.com/m214a6c22 Please don't use pastebin for mailing list posts, as those pastes usually expire too soon to be useful for other people looking for the same problem in the future. Robert From donbonifacio at gmail.com Mon Feb 23 06:16:12 2009 From: donbonifacio at gmail.com (Pedro Santos) Date: Mon, 23 Feb 2009 11:16:12 +0000 Subject: [Mono-list] Bug within ASP.NET WebControls? In-Reply-To: References: Message-ID: > Please don't use pastebin for mailing list posts, as those > pastes usually expire too soon to be useful for other > people looking for the same problem in the future. Yes, you're right, didn't think of that. BTW, I commented the following line: text.CssClass = CssClass; On my Render method, and the exception isn't thrown. Here's the code: public abstract class StringEditor : BaseEntityFieldEditor where T : IDescriptable { #region Fields & Properties protected TextBox text = new TextBox(); public string Text { get { return text.Text; } set { text.Text = value; } } public bool Enabled { get { return text.Enabled; } set { text.Enabled = value; } } public int Length { get { return text.MaxLength; } set { text.MaxLength = value; } } public bool ReadOnly { get { return text.ReadOnly; } set { text.ReadOnly = value; } } public TextBox TextBox { get { return text; } } #endregion Fields & Properties #region Events protected override void OnInit( EventArgs args ) { base.OnInit(args); text.ID = TargetName; Controls.Add(text); } protected override void Render( HtmlTextWriter writer, T t, int renderCount, bool flipFlop ) { text.CssClass = CssClass; SetCaption(t); foreach (Control control in Controls) { control.RenderControl(writer); } } private void SetCaption(T t) { if (Page.IsPostBack && !string.IsNullOrEmpty(text.Text)) { // let's just use the post back value return; } text.Text = GetCaption(t); } #endregion Events #region Abstract Members protected abstract string GetCaption( T t ); protected abstract string TargetName { get; } #endregion }; On Mon, Feb 23, 2009 at 11:10 AM, Robert Jordan wrote: > Pedro Santos wrote: >> http://pastebin.com/m214a6c22 > > Please don't use pastebin for mailing list posts, as those > pastes usually expire too soon to be useful for other > people looking for the same problem in the future. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu From robertj at gmx.net Mon Feb 23 06:16:32 2009 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Feb 2009 12:16:32 +0100 Subject: [Mono-list] No C# installer found after installing mono-2.2 from source In-Reply-To: <22148120.post@talk.nabble.com> References: <22148120.post@talk.nabble.com> Message-ID: adol wrote: > Hi people, > > I've just installed Mono 2.2 from source on a shiny new CentOS 5.2 box. > ./configure --prefix=/usr/local/ > make > make install > ... > > I searched for gmcs and mcs but I didn't find them installed on my box... > Obviusly, something went wrong when installing Mono.... I've no idea why it > didn't install any c# compiler... Well, the "make & make install" steps above are emitting a lot of diag messages. One of them, usually the last ;-), is containing the reason of why mcs wasn't built. Robert From robertj at gmx.net Mon Feb 23 06:46:04 2009 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Feb 2009 12:46:04 +0100 Subject: [Mono-list] Bug within ASP.NET WebControls? In-Reply-To: References: Message-ID: Pedro Santos wrote: >> Please don't use pastebin for mailing list posts, as those >> pastes usually expire too soon to be useful for other >> people looking for the same problem in the future. > > Yes, you're right, didn't think of that. > > BTW, I commented the following line: > > text.CssClass = CssClass; > > On my Render method, and the exception isn't thrown. This is already fixed in SVN and Mono 2.4 which will be released soon. If you don't assign null to the Control.CssClass property, your code will work with all mono versions: if (CssClass != null) text.CssClass = CssClass; > > Here's the code: Thanks :) Robert From adolfoabegg at gmail.com Mon Feb 23 07:57:07 2009 From: adolfoabegg at gmail.com (adol) Date: Mon, 23 Feb 2009 04:57:07 -0800 (PST) Subject: [Mono-list] No C# installer found after installing mono-2.2 from source In-Reply-To: References: <22148120.post@talk.nabble.com> Message-ID: <22161032.post@talk.nabble.com> Thanks Robert, I'm afraid you're right. Is there any log I can check to post its content here? I mean, I really don't know if make & make install generated a compilation/installation log. If not, I'll have to start all over again and catch the output into a file, right? Thanks again. Robert Jordan wrote: > > adol wrote: >> Hi people, >> >> I've just installed Mono 2.2 from source on a shiny new CentOS 5.2 box. >> ./configure --prefix=/usr/local/ >> make >> make install >> > ... > >> >> I searched for gmcs and mcs but I didn't find them installed on my box... >> Obviusly, something went wrong when installing Mono.... I've no idea why >> it >> didn't install any c# compiler... > > Well, the "make & make install" steps above are emitting a lot of diag > messages. One of them, usually the last ;-), is containing the reason > of why mcs wasn't built. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > ----- Adolfo Abegg Software Development @ Barcelona -- View this message in context: http://www.nabble.com/No-C--installer-found-after-installing-mono-2.2-from-source-tp22148120p22161032.html Sent from the Mono - General mailing list archive at Nabble.com. From sascha.leib at gmail.com Mon Feb 23 07:58:43 2009 From: sascha.leib at gmail.com (Sascha Leib) Date: Mon, 23 Feb 2009 13:58:43 +0100 Subject: [Mono-list] Generics Conversions Message-ID: <49A29D83.3050702@gmail.com> Hello all, I noticed one behaviour when using Generics: List StringList = new List(); List ObjectList = (StringList as List); // Error The error message is: Program.cs(14,51): error CS0039: Cannot convert type `System.Collections.Generic.List' to `System.Collections.Generic.List' via a built-in conversion Is that a wanted behaviour? Or am I missing something? This really stops me from using more Generics at the moment :-/ /sascha PS: At least it is consistent with how VS handles it... From felipe.lessa at gmail.com Mon Feb 23 08:12:40 2009 From: felipe.lessa at gmail.com (Felipe Lessa) Date: Mon, 23 Feb 2009 10:12:40 -0300 Subject: [Mono-list] Generics Conversions In-Reply-To: <49A29D83.3050702@gmail.com> References: <49A29D83.3050702@gmail.com> Message-ID: On Mon, Feb 23, 2009 at 9:58 AM, Sascha Leib wrote: > List StringList = new List(); > > List ObjectList = (StringList as List); // [snip] > Is that a wanted behaviour? Or am I missing something? This really stops > me from using more Generics at the moment :-/ Accepting this code would defeat the purposes of generics. You could, for example, add an integer to the 'ObjectList', so how would 'StringList' return that integer as a string? It doesn't make any sense. -- Felipe. From ricky.clarkson at gmail.com Mon Feb 23 08:10:36 2009 From: ricky.clarkson at gmail.com (Ricky Clarkson) Date: Mon, 23 Feb 2009 13:10:36 +0000 Subject: [Mono-list] Generics Conversions In-Reply-To: <49A29D83.3050702@gmail.com> References: <49A29D83.3050702@gmail.com> Message-ID: <7eeb06460902230510g58626929hfe404f2b046e5754@mail.gmail.com> I'll explain this by jumping to Java for a moment. Java's arrays (but not its generics) are broken in that they do what you want, which is broken: Number[] numbers = new Double[1]; numbers[0] = 5; This causes an ArrayStoreException at runtime. C#'s arrays and generics are not broken in this manner, and will give a compile error instead. A list of strings is not a list of objects, as long as a list is mutable. C# 4 adds covariance and contravariance. IEnumerable objects = new List(); will be valid. List more = new List(); will not be valid. List will still be declared as List, and IEnumerable will be interface IEnumerable { stuff }. Right now I'd use IEnumerable objects = stringList.Select(x => (object)x); or if you must have List<>, List objects = stringList.Select(x => (object)x).ToList(); The advantage of the IEnumerable is that no actual copying is done. Have fun, Ricky. 2009/2/23 Sascha Leib > Hello all, > > I noticed one behaviour when using Generics: > > List StringList = new List(); > > List ObjectList = (StringList as List); // > Error > > The error message is: > Program.cs(14,51): error CS0039: Cannot convert type > `System.Collections.Generic.List' to > `System.Collections.Generic.List' via a built-in conversion > > Is that a wanted behaviour? Or am I missing something? This really stops > me from using more Generics at the moment :-/ > > /sascha > > PS: At least it is consistent with how VS handles it... > > > _______________________________________________ > 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/20090223/cb3176e8/attachment.html From cdhowie at gmail.com Mon Feb 23 08:23:41 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 08:23:41 -0500 Subject: [Mono-list] Generics Conversions In-Reply-To: <49A29D83.3050702@gmail.com> References: <49A29D83.3050702@gmail.com> Message-ID: <3d2f29dc0902230523x6e0d00b0pee02b177b92ff03e@mail.gmail.com> On Mon, Feb 23, 2009 at 7:58 AM, Sascha Leib wrote: > Hello all, > > I noticed one behaviour when using Generics: > > List StringList = new List(); > > List ObjectList = (StringList as List); // > Error > > The error message is: > Program.cs(14,51): error CS0039: Cannot convert type > `System.Collections.Generic.List' to > `System.Collections.Generic.List' via a built-in conversion > > Is that a wanted behaviour? Or am I missing something? This really stops > me from using more Generics at the moment :-/ To further explain what the others have said, consider this C# code: List stringList = new List(); stringList.Add("a string"); List objectList = (List) stringList; Console.WriteLine(objectList[0]); So far, so good, right? But what about: objectList.Add(10); Wait, that's a compile-time error, right? No, it's not. The signature of the Add method will be "public void List.Add(object item);" and an integer can be boxed to satisfy this condition. This would add a non-string to a List. The only type-safe way to prevent this from happening is to prevent a cast from List to List. As a side note, you should not use the "(object as type)" form of casting in this scenario -- use "(type) object" instead. The former will succeed regardless of the type of the object and return null, causing any usage of the result of the cast to throw a NullReferenceException. The latter will immediately throw a ClassCastException, which is a good indication of what is going on. Using the "as" cast would result in cryptic errors and time wasted debugging trying to figure out why the original object is null when in fact it's just not of the requested type. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From robertj at gmx.net Mon Feb 23 08:23:31 2009 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Feb 2009 14:23:31 +0100 Subject: [Mono-list] Generics Conversions In-Reply-To: <49A29D83.3050702@gmail.com> References: <49A29D83.3050702@gmail.com> Message-ID: Sascha Leib wrote: > Hello all, > > I noticed one behaviour when using Generics: > > List StringList = new List(); > > List ObjectList = (StringList as List); // > Error > > The error message is: > Program.cs(14,51): error CS0039: Cannot convert type > `System.Collections.Generic.List' to > `System.Collections.Generic.List' via a built-in conversion > > Is that a wanted behaviour? Or am I missing something? This really stops > me from using more Generics at the moment :-/ An explication: http://jopinblog.wordpress.com/2007/10/26/c-generic-covariance/ Robert From cdhowie at gmail.com Mon Feb 23 08:31:17 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 23 Feb 2009 08:31:17 -0500 Subject: [Mono-list] Generics Conversions In-Reply-To: <7eeb06460902230510g58626929hfe404f2b046e5754@mail.gmail.com> References: <49A29D83.3050702@gmail.com> <7eeb06460902230510g58626929hfe404f2b046e5754@mail.gmail.com> Message-ID: <3d2f29dc0902230531yf81567dwda83f572326689e7@mail.gmail.com> On Mon, Feb 23, 2009 at 8:10 AM, Ricky Clarkson wrote: > Right now I'd use IEnumerable objects = stringList.Select(x => > (object)x); or if you must have List<>, List objects = > stringList.Select(x => (object)x).ToList(); > > The advantage of the IEnumerable is that no actual copying is done. Maybe something like this could be used until C# 4 hits: public static IEnumerable Upcast(this IEnumerable e) where T : U { foreach (T i in e) yield return i; } IEnumerable e = someStringList.Upcast(); -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From ricky.clarkson at gmail.com Mon Feb 23 08:36:29 2009 From: ricky.clarkson at gmail.com (Ricky Clarkson) Date: Mon, 23 Feb 2009 13:36:29 +0000 Subject: [Mono-list] Generics Conversions In-Reply-To: <3d2f29dc0902230531yf81567dwda83f572326689e7@mail.gmail.com> References: <49A29D83.3050702@gmail.com> <7eeb06460902230510g58626929hfe404f2b046e5754@mail.gmail.com> <3d2f29dc0902230531yf81567dwda83f572326689e7@mail.gmail.com> Message-ID: <7eeb06460902230536o2995865cg4d3db33d2b2c39db@mail.gmail.com> Alternative implementation: return e.Select(x => (U)x); 2009/2/23 Chris Howie > On Mon, Feb 23, 2009 at 8:10 AM, Ricky Clarkson > wrote: > > Right now I'd use IEnumerable objects = stringList.Select(x => > > (object)x); or if you must have List<>, List objects = > > stringList.Select(x => (object)x).ToList(); > > > > The advantage of the IEnumerable is that no actual copying is done. > > Maybe something like this could be used until C# 4 hits: > > public static IEnumerable Upcast(this IEnumerable e) where T : > U { > foreach (T i in e) > yield return i; > } > > IEnumerable e = someStringList.Upcast(); > > -- > Chris Howie > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090223/b23f2ba5/attachment.html From fejj at novell.com Mon Feb 23 10:10:48 2009 From: fejj at novell.com (Jeffrey Stedfast) Date: Mon, 23 Feb 2009 10:10:48 -0500 Subject: [Mono-list] BinaryFormatter serialization accross .NET and Mono In-Reply-To: <3d2f29dc0902230108v603c6abcu3c95fe9739ea886b@mail.gmail.com> References: <21881760.post@talk.nabble.com> <3d2f29dc0902230108v603c6abcu3c95fe9739ea886b@mail.gmail.com> Message-ID: <49A2BC78.8040004@novell.com> Chris Howie wrote: > On Fri, Feb 6, 2009 at 5:19 PM, schmmd wrote: > >> Hi, I am asking to learn if it is a goal of the Mono project to have >> consistent serialization across Mono and .Net with respect to the >> BinaryFormatter. Serialization is the same in some cases. For example, >> serialization of a byte array is the same in .NET and Mono. However, >> serialization of a struct containing a byte array is not. >> >> [snip] >> >> Is this a bug or is consistency between .NET and Mono not a goal? >> > > I do not believe it is a very high-priority goal. You might try the > SoapFormatter class.