Re: [Mono-winforms-list] third party tools
pmol wrote: Hello: I am using visual studio 2005 and third party tools like a datagrid and input controls. It is possible to run this app in linux and Mac or i must use only the default controls that comes in vs2005. If those 3rd party libs are implemented on top WinForms/System.Drawing then it should work, at least in theory. Unfortunately, many libs are usually sprinkled with non-portable Win32 GDI p/invoke calls, so your mileage might vary. Robert ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Re: [Mono-dev] Bug in DataGridView.ScrollBars
2009/2/20 Marcelo Marques Inacio marceloina...@hotmail.com: Dear friends developers. The property ScrollBars.Vertical or ScrollBars.Horizontal in the DataGridView control is not working properly. The horizontal and vertical bar is always visible. Attached the following changes to correct operation. I have fixed this in r127716, thanks. Please next time directly file bugs for the WinForms component next time - http://mono-project.com/Bugs . -- Kind Regards, Ivan N. Zlatev ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Bug in DataGridView.ScrollBars
2009/2/23 Ivan N. Zlatev cont...@i-nz.net: 2009/2/20 Marcelo Marques Inacio marceloina...@hotmail.com: Dear friends developers. The property ScrollBars.Vertical or ScrollBars.Horizontal in the DataGridView control is not working properly. The horizontal and vertical bar is always visible. Attached the following changes to correct operation. I have fixed this in r127716, thanks. Please next time directly file bugs for the WinForms component next time - http://mono-project.com/Bugs . Nothing to see with this ? : https://bugzilla.novell.com/show_bug.cgi?id=477748 -- Kind Regards, Ivan N. Zlatev ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-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-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] misc: C# request info
Hi, well, I was looking into C# some, and admittedly I have much less fammiliarity with the language than with others... (I have started looking at ECMA-334 some, but it is long and a little awkward to answer specific questions from absent some digging...). so, firstly, it is my guess that in order to compile C# properly, it is required to load a whole group of files at once (I am uncertain whether the term 'assembly' also applies to the collection of input source files, or only to a produced DLL or EXE). You can load C# source code files as well as assemblies or modules. my guess is that it works like this: the group of files is loaded; each file is preprocessed and parsed (it is looking like C# uses a context-independent syntax?...); Incorrect, C# uses context dependent keywords. all of the namespaces and declarations are lifted out of the parse trees; each file's parse tree can then be compiled. from what I can tell, types are like this: type = qualifiers* type-name so, I can type: static Foo bar; and the parser will know that 'Foo' is the type, even if the type for Foo is not visible at the time of parsing (in C, this can't be done since there is no clear distinction or ordering between types and qualifiers, and so one would not know if 'Foo' is the type, or an intended variable name with the type being assumed to be 'int'). No, parser does not yet know the type of 'Foo'. so, in C we can have: unsigned int i; int unsigned i; int volatile i; _Complex float f; double _Complex g; unsigned i; short int j; int long k; .. so, my guess then is that C# code is just parsed, with no need to lookup, for example, is Foo a struct or class or other typedef'ed type? ... as far as the parser is concerned 'int' or 'byte' is syntactically not different from 'Foo' or 'Bar'?... Correct. Marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.SIMD
Hey, The big issue you're having is that you haven't implemented a SIMD algorithm ;) I spent 15 mins 'optimising' your code and came up with this. Notice that I made everything a SIMD operation. There is no scalar code in the method anymore. This tripled performance as compared to the non-SIMD version. On my machine: -FLOAT 00:00:00.3888930 Color -SIMD 00:00:00.1266820 Mono.Simd.Vector4f You'd want to double check the result just in case I made a mistake with my alterations. Alan. public static Vector4f GradientSIMD() { Vector4f finv_WH = new Vector4f (1.0f / (w*h), 1.0f / (w*h), 1.0f / (w*h), 1.0f / (w*h)); Vector4f ret = new Vector4f(); Vector4f a = new Vector4f(0.0f, 0.0f, 1.0f, 1.0f); a += new Vector4f(0.0f, 1.0f, 0.0f, 1.0f); a += new Vector4f(1.0f, 0.0f, 0.0f, 1.0f); a += new Vector4f(0.5f, 0.5f, 1.0f, 1.0f); //Process operator Vector4f yVec = new Vector4f (h, h, 0, 0); Vector4f yDiff = new Vector4f (-1, -1, 1, 1); for (int y=0; yh; y++) { Vector4f factor = yVec * finv_WH; yVec += yDiff; Vector4f xVec = new Vector4f (w, 0, w, 0); Vector4f xDiff = new Vector4f (-1, 1, -1, 1); for (int x=0; xw; x++) { ret += (a * xVec * factor); xVec += xDiff; } } return ret; } On Fri, Feb 20, 2009 at 8:12 AM, Johann_fxgen jnadalu...@gmail.com wrote: I have done some performance tests of SIMD under windows. Results tests in ms: In MS C 235 (Visual Studio Release Mode With SIMD) In MS C 360 (Visual Studio Release Mode With 4D Float) In Mono C#453 (With Mono SIMD) In Mono C#562 (With Mono 4D Float) In MS C# 609 (Visual Studio With 4D Float) In MS C 672 (Visual Studio Debug Mode) I'm just surprise by difference between C SIMD and mono SIMD version. Is Mono.SIMD under linux speeder than under windows ? Johann. My mono code for test: using Mono.Simd; using System; using Mono; public struct Color { public float r,g,b,a; }; public class TestMonoSIMD { public Color m_pixels; const int w = 4096; const int h = 4096; public static void Main () { //Debug Console.WriteLine(AccelMode: {0}, Mono.Simd.SimdRuntime.AccelMode ); //Without SIMD DateTime start1 = DateTime.Now; Color ret1 = Gradient(); TimeSpan ts1 = DateTime.Now - start1; Console.WriteLine(-FLOAT {0} {1}, ts1, ret1); //With SIMD DateTime start2 = DateTime.Now; Vector4f ret2 = GradientSIMD(); TimeSpan ts2 = DateTime.Now - start2; Console.WriteLine(-SIMD {0} {1}, ts2, ret2); } public static Color Gradient() { float finv_WH = 1.0f / (float)(w*h); Color ret = new Color(); ret.r=ret.g=ret.b=ret.a=0.0f; Color a = new Color(); Color b = new Color(); Color c = new Color(); Color d = new Color(); a.r=0.0f; a.g=0.0f; a.b=1.0f; a.a=1.0f; b.r=0.0f; b.g=1.0f; b.b=0.0f; b.a=1.0f; c.r=1.0f; c.g=0.0f; c.b=0.0f; c.a=1.0f; d.r=0.5f; d.g=0.5f; d.b=1.0f; d.a=1.0f; //Process operator for (int y=0; yh; y++) { for (int x=0; xw; x++) { //Calc percent A,B,C,D float pa = (float)((w-x)* (h-y)) * finv_WH; float pb = (float)((x) * (h-y)) * finv_WH; float pc = (float)((w-x)* (y)) * finv_WH; float pd = (float)((x) * (y)) * finv_WH; float cr= ((a.r*pa) + (b.r*pb) + (c.r*pc) + (d.r*pd)); float cg= ((a.g*pa) + (b.g*pb) + (c.g*pc) + (d.g*pd)); float cb= ((a.b*pa) + (b.b*pb) + (c.b*pc) + (d.b*pd)); float ca= ((a.a*pa) + (b.a*pb) + (c.a*pc) + (d.a*pd));
Re: [Mono-dev] Unable to call methods on managed objects while running Mono on the iPhone
Hi, You have to compile your AOT code using --aot=full, and run the runtime using the --full-aot option. When embedding, the later can be achieved by setting the mono_aot_only variable to TRUE _before_ calling mono_jit_init (). Zoltan On Mon, Feb 23, 2009 at 6:07 AM, mobbe peter.mob...@gmail.com wrote: An update on this one...I found a setting in XCode that said Compile for Thumb and that one was set to true. I unchecked it and recompiled everything and now the code doesn't stop at the same position anymore...now I get an EXC_BAD_ACCESS on the get_hazardous_pointer...so I am still not there but at least I cleared the hurdle I first posted about. Since thumb instructions are 16 bits and ARM mode are 32 bits things must have not been aligned properly and hence the BAD_INSTRUCTION exceptions. This is the call stack right now... #0 0x0007e0cc in get_hazardous_pointer at domain.c:276 #1 0x0007e4e8 in mono_jit_info_table_find at domain.c:370 #2 0x0020f17c in mono_get_generic_context_from_code at mini-generic-sharing.c:26 #3 0x0020f5a8 in mono_convert_imt_slot_to_vtable_slot at mini-trampolines.c:47 #4 0x0021044c in mono_magic_trampoline at mini-trampolines.c:348 #5 0x03904524 in method_order_end I guess my next step is to research my hazardous_pointers mobbe wrote: Over the past couple of weeks I have been working with getting the Mono framework up and running on the iPhone and I am darn close to have it all working.. .I have been able to get the AOT compilation to work and was able this morning to startup Mono in full aot mode on the device. Big thanks to Zoltan Varga for helping me through all the roadblocks I ran into. I have been working with a SVN HEAD version that I updated last week sometime. Next step I took was to try to invoke some methods on classes in the msorlib assembly to see if I could execute managed code and this is where I ran into a new road block.. It looks like I am only able to execute .ctor methods!? During the startup of Mono it creates a few exceptions (OutOfMemoryException etc..) and it invokes its constructor method and passes in parameters. This works just fine...and here it is executing managed code. However, I tried to execute the ToString() method on an instance of the Exception class and then the program is interrupted and stopped in the prolog for the function mono_get_lmf_addr.. if I continue to run the program I get a BAD_INSTRUCTION message and the whole thing shuts down... Here is the code I am trying to execute... MonoDomain * domain = mono_jit_init(); MonoAssembly* msCorlib = mono_domain_assembly_open (domain,mscorlib); MonoImage* image = mono_assembly_get_image(msCorlib); MonoClass *klass = mono_class_from_name (image, System, Exception); MonoObject* o = mono_object_new (domain, klass); MonoMethodDesc* methodDesc = mono_method_desc_new(System.Object:ToString, TRUE); MonoMethod* toStringMethod = mono_method_desc_search_in_class(methodDesc, klass); MonoObject* result = mono_runtime_invoke(toStringMethod, o, NULL, NULL); I don't know if it would help you but here is the assembly where it all stops... mono_get_lmf_addr 0x001d5bdc + push {r4, r5, r7, lr} 0x001d5bde +0002 add r7, sp, #8 0x001d5be0 +0004 sub sp, #12 -- stops here 0x001d5be2 +0006 ldr r3, [pc, #76] (0x1d5c30 mono_get_lmf_addr+84) 0x001d5be4 +0008 add r3, pc 0x001d5be6 +0010 ldr r3, [r3, #0] 0x001d5be8 +0012 adds r0, r3, #0 0x001d5bea +0014 bl 0x3e640 TlsGetValue I get the same problem if I try to run other methods on other objects or static methods as well...Only constructor methods seems to work. It looks to me that the stack isn't setup properly since it always throws the EXC_BAD_INSTRUCTION when trying to access the stack pointer. I have been banging my head against this problem for two days and right now I am not able to figure out how to troubleshoot this. If there is anyone out there that have any suggestion on how I should go about troubleshooting this I would really appreciate it. It stings a bit to come this close and not be able to cross the finish line... Thanks, -- View this message in context: http://www.nabble.com/Unable-to-call-methods-on-managed-objects-while-running-Mono-on-the-iPhone-tp22155202p2216.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Making your own programming language for mono
Hey, There are already several existing tools you may use like Irony (grammar and parser framework) and the DLR (turning AST into running programs). Both are on CodePlex if you want the code. That's the two I used to get a minimal implementation of Scheme running on Mono. -- Jérémie Laval jeremie.la...@gmail.com http://garuma.wordpress.com On Sun, Feb 22, 2009 at 3:52 PM, xiul ziul1...@gmail.com wrote: Hi everyone, I just want to know if it's possible to create your own language (a very simple one and probably not object oriented) for mono (for academy purpose of a course at university), and if this task is possible, I want to know just what steps probably I should follow to do this task, like: create lexer in this way, create parser that generate this kind of AST, then pass the AST to this function to generate code or something like that. Thanks for any help. -- View this message in context: http://www.nabble.com/Making-your-own-programming-language-for-mono-tp22147566p22147566.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.SIMD
Hey, The C++ code seems very similar to the C# SIMD code, so I don't know what would make the C# version any faster. This question would be best directed at jit guys, who may know what causes the difference. If you want to try speeding up the mono version, you should just use trial and error to see if you can rewrite things so that you can get better performance. For example, unrolling the loop may improve performance noticably. Alan. On Mon, Feb 23, 2009 at 1:16 PM, Johann Nadalutti jnadalu...@gmail.comwrote: Hey, thanks a lot for your modifications. I have now SIMD x3 faster than 4DFloat version ! I make the same code in C++ and It's x3 more faster than Mono.SIMD. I just want to know why and how to optimize my Mono code. What do you use as IDE to develop and debug Mono ? My Visual C++ code for test: class VectorSIMD { public: VectorSIMD(); VectorSIMD(float x, float y, float z, float w); VectorSIMD operator*(const VectorSIMD other) { VectorSIMD r; r.vec = _mm_mul_ps(vec, other.vec); return r; } VectorSIMD operator*(float f) { VectorSIMD r; __m128 b = _mm_load1_ps(f); r.vec = _mm_mul_ps(vec, b); return r; } VectorSIMD operator+(const VectorSIMD other) { VectorSIMD r; r.vec = _mm_add_ps(vec, other.vec); return r; } //Datas union { __m128 vec; struct { float x, y, z, w; }; }; }; VectorSIMD::VectorSIMD() { } VectorSIMD::VectorSIMD(float _x, float _y, float _z, float _w) { x=_x;y=_y; z=_z; w=_w; } VectorSIMD GradientSIMD() { VectorSIMD finv_WH(1.0f / (_W*_H), 1.0f / (_W*_H), 1.0f / (_W*_H), 1.0f / (_W*_H)); VectorSIMD ret(0.0, 0.0, 0.0, 0.0); VectorSIMD a(0.0f, 0.0f, 1.0f, 1.0f); a =a + VectorSIMD(0.0f, 1.0f, 0.0f, 1.0f); a =a + VectorSIMD(1.0f, 0.0f, 0.0f, 1.0f); a =a + VectorSIMD(0.5f, 0.5f, 1.0f, 1.0f); //Process operator VectorSIMD yVec(_H, _H, 0, 0); VectorSIMD yDiff(-1.0f, -1.0f, 1.0f, 1.0f); for (int y=0; y_H; y++) { VectorSIMD factor = yVec * finv_WH; yVec = yVec + yDiff; VectorSIMD xVec(_W, 0, _W, 0); VectorSIMD xDiff(-1.0f, 1.0f, -1.0f, 1.0f); for (int x=0; x_W; x++) { ret=ret+(a*xVec*factor); xVec=xVec+xDiff; } } return ret; } Johann. 2009/2/23 Alan McGovern alan.mcgov...@gmail.com Hey, The big issue you're having is that you haven't implemented a SIMD algorithm ;) I spent 15 mins 'optimising' your code and came up with this. Notice that I made everything a SIMD operation. There is no scalar code in the method anymore. This tripled performance as compared to the non-SIMD version. On my machine: -FLOAT 00:00:00.3888930 Color -SIMD 00:00:00.1266820 Mono.Simd.Vector4f You'd want to double check the result just in case I made a mistake with my alterations. Alan. public static Vector4f GradientSIMD() { Vector4f finv_WH = new Vector4f (1.0f / (w*h), 1.0f / (w*h), 1.0f / (w*h), 1.0f / (w*h)); Vector4f ret = new Vector4f(); Vector4f a = new Vector4f(0.0f, 0.0f, 1.0f, 1.0f); a += new Vector4f(0.0f, 1.0f, 0.0f, 1.0f); a += new Vector4f(1.0f, 0.0f, 0.0f, 1.0f); a += new Vector4f(0.5f, 0.5f, 1.0f, 1.0f); //Process operator Vector4f yVec = new Vector4f (h, h, 0, 0); Vector4f yDiff = new Vector4f (-1, -1, 1, 1); for (int y=0; yh; y++) { Vector4f factor = yVec * finv_WH; yVec += yDiff; Vector4f xVec = new Vector4f (w, 0, w, 0); Vector4f xDiff = new Vector4f (-1, 1, -1, 1); for (int x=0; xw; x++) { ret += (a * xVec * factor); xVec += xDiff; } } return ret; } On Fri, Feb 20, 2009 at 8:12 AM, Johann_fxgen jnadalu...@gmail.comwrote: I have done some performance tests of SIMD under windows. Results tests in ms: In MS C 235 (Visual Studio Release Mode With SIMD) In MS C 360 (Visual Studio Release Mode With 4D Float) In Mono C#453 (With Mono SIMD) In Mono C#562 (With Mono 4D Float) In MS C# 609 (Visual Studio With 4D Float) In MS C 672 (Visual Studio Debug Mode) I'm just surprise by difference between C SIMD and mono SIMD version. Is Mono.SIMD under linux speeder than under windows ? Johann. My mono code for test: using Mono.Simd; using System; using Mono; public struct Color { public float r,g,b,a; }; public class TestMonoSIMD { public Color m_pixels; const int w = 4096;
Re: [Mono-dev] Unable to call methods on managed objects while running Mono on the iPhone
Hi, got it to work! I forgot that I had to undefine the HAVE_MMAP. Seems like that call doesn't work (but doesn't complain either) on the iPhone. After doing that I was able to call the ToString on the Exception class and retrieve the string back just fine! On Feb 23, 2009, at 5:12 AM, Zoltan Varga wrote: Hi, You have to compile your AOT code using --aot=full, and run the runtime using the --full-aot option. When embedding, the later can be achieved by setting the mono_aot_only variable to TRUE _before_ calling mono_jit_init (). Zoltan On Mon, Feb 23, 2009 at 6:07 AM, mobbe peter.mob...@gmail.com wrote: An update on this one...I found a setting in XCode that said Compile for Thumb and that one was set to true. I unchecked it and recompiled everything and now the code doesn't stop at the same position anymore...now I get an EXC_BAD_ACCESS on the get_hazardous_pointer...so I am still not there but at least I cleared the hurdle I first posted about. Since thumb instructions are 16 bits and ARM mode are 32 bits things must have not been aligned properly and hence the BAD_INSTRUCTION exceptions. This is the call stack right now... #0 0x0007e0cc in get_hazardous_pointer at domain.c:276 #1 0x0007e4e8 in mono_jit_info_table_find at domain.c:370 #2 0x0020f17c in mono_get_generic_context_from_code at mini-generic-sharing.c:26 #3 0x0020f5a8 in mono_convert_imt_slot_to_vtable_slot at mini-trampolines.c:47 #4 0x0021044c in mono_magic_trampoline at mini-trampolines.c:348 #5 0x03904524 in method_order_end I guess my next step is to research my hazardous_pointers mobbe wrote: Over the past couple of weeks I have been working with getting the Mono framework up and running on the iPhone and I am darn close to have it all working.. .I have been able to get the AOT compilation to work and was able this morning to startup Mono in full aot mode on the device. Big thanks to Zoltan Varga for helping me through all the roadblocks I ran into. I have been working with a SVN HEAD version that I updated last week sometime. Next step I took was to try to invoke some methods on classes in the msorlib assembly to see if I could execute managed code and this is where I ran into a new road block.. It looks like I am only able to execute .ctor methods!? During the startup of Mono it creates a few exceptions (OutOfMemoryException etc..) and it invokes its constructor method and passes in parameters. This works just fine...and here it is executing managed code. However, I tried to execute the ToString() method on an instance of the Exception class and then the program is interrupted and stopped in the prolog for the function mono_get_lmf_addr.. if I continue to run the program I get a BAD_INSTRUCTION message and the whole thing shuts down... Here is the code I am trying to execute... MonoDomain * domain = mono_jit_init(); MonoAssembly* msCorlib = mono_domain_assembly_open (domain,mscorlib); MonoImage* image = mono_assembly_get_image(msCorlib); MonoClass *klass = mono_class_from_name (image, System, Exception); MonoObject* o = mono_object_new (domain, klass); MonoMethodDesc* methodDesc = mono_method_desc_new(System.Object:ToString, TRUE); MonoMethod* toStringMethod = mono_method_desc_search_in_class(methodDesc, klass); MonoObject* result = mono_runtime_invoke(toStringMethod, o, NULL, NULL); I don't know if it would help you but here is the assembly where it all stops... mono_get_lmf_addr 0x001d5bdc + push {r4, r5, r7, lr} 0x001d5bde +0002 add r7, sp, #8 0x001d5be0 +0004 sub sp, #12 -- stops here 0x001d5be2 +0006 ldr r3, [pc, #76] (0x1d5c30 mono_get_lmf_addr+84) 0x001d5be4 +0008 add r3, pc 0x001d5be6 +0010 ldr r3, [r3, #0] 0x001d5be8 +0012 adds r0, r3, #0 0x001d5bea +0014 bl 0x3e640 TlsGetValue I get the same problem if I try to run other methods on other objects or static methods as well...Only constructor methods seems to work. It looks to me that the stack isn't setup properly since it always throws the EXC_BAD_INSTRUCTION when trying to access the stack pointer. I have been banging my head against this problem for two days and right now I am not able to figure out how to troubleshoot this. If there is anyone out there that have any suggestion on how I should go about troubleshooting this I would really appreciate it. It stings a bit to come this close and not be able to cross the finish line... Thanks, -- View this message in context: http://www.nabble.com/Unable-to-call-methods-on-managed-objects-while-running-Mono-on-the-iPhone-tp22155202p2216.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com
Re: [Mono-dev] Help about how to start?
On Wed, 2009-02-11 at 08:28 -0800, shweta123 wrote: I wish to contribute the project as a developer. But I don't know how can I help. So please let me know how can I understand the project? This should be a good start: http://www.mono-project.com/Contributing The larger question is: what areas do you find interesting? There are large swaths of the .NET framework that could use additional help (e.g. see the Roadmap [0]) such as System.Data.Linq (done with the assistance of DbLinq [1]), MSBuild support, ASP.NET MVC, WCF, C#4 support, and more. Or you may want to use the Class Status pages [2] to find a section of the class library which hasn't been implemented yet. Have fun! - Jon [0] http://www.mono-project.com/Roadmap [1] http://linq.to/db [2] http://go-mono.com/status/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Developing using Mono/Gtk# Vs Mono.WinForms (Windows Linux)
On Fri, 2009-02-13 at 16:57 +0100, Chris Hills wrote: Tom Opgenorth wrote: What could be better to use Gtk# or Winforms? The rule of thumb would use: if the majority of users are Windows, use WinForms. If Linux, use GTK#. Of course, this is assuming that you're equally skilled in both. Bear in mind that if one chooses Gtk# one will have to include it with one's Windows packages, as the vast majority of Windows users do not have it installed already. Winforms is available in both .Net and Mono as standard. The desktop integration of WinForms in Mono could be improved if someone does the work to allow use of native widgets. I suspect that this isn't possible, because native GTK+ widgets would require a GLib event loop, etc., and wouldn't be able to raise the SWF events that would be needed (which is why implementing SWF atop Gtk# was never a workable solution). The best that is likely possible is theming, which Mono has support for, but theming is a far cry from actual support (see also Word 6.0/Mac, one of the most hated Word releases of all time, which wasn't even themed but was hated by ~everyone because it didn't behave properly). On a related note, I would like to see a Qt backend for WinForms available as well. I believe the KDE project is still working on Qyoto. Mono's System.Windows.Forms doesn't have a backend that is handled by other toolkits (such as GTK+ or Qt), so this doesn't make sense. The entire SWF implementation is custom drawn with System.Drawing (itself built upon Cairo on Linux). In summary, Mono's SWF hasn't used native widgets in years, nor will it do so any time soon (afaik), and SWF looks like ass on Linux. Even if it didn't look like ass (and good theme engines will help), it will still behave differently from other Linux apps -- just see all the years of problems with the feel part of look and feel that Java Swing has dealt with (and oftentimes still suffers from). GTK+ on Windows has similar problems, from what I've heard (looking alien, not feeling correct, etc.). So there is no perfect, one framework fits all solution. (Just see all the people who claim to be able to tell a Qt app at a glance on OS X.) The best solution, from the user perspective, is to provide a UI for each platform, not provide one UI for all platforms. Unfortunately this increases costs, but users tend to prefer this solution, by far... - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Patch: Ternary ops in mini and general ATOMIC_CAS
Hi, My problems with this patch, and with adding support for ternary ops in general: - it increases the size of MonoInst by 4/8 bytes. - it slows down every phase of the JIT by changing linear code into loops, ie. instead of process sreg1 process sreg2 it is now a loop with an unknown upper bound. All this to add support for exactly one rarely used instruction, CAS. Zoltan On Mon, Feb 23, 2009 at 8:26 PM, Mark Probst mark.pro...@gmail.com wrote: Hey, These patches implement ternary ops in mini and a general ATOMIC_CAS (for x86, AMD64 and PPC(64)). Please review, especially my register allocator changes. The global register allocator is not adapted, yet. Mark ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] misc: C# request info
- Original Message - From: Marek Safar marek.sa...@seznam.cz To: BGB cr88...@hotmail.com Cc: mono-devel-list@lists.ximian.com Sent: Monday, February 23, 2009 7:56 PM Subject: Re: [Mono-dev] misc: C# request info Hi, well, I was looking into C# some, and admittedly I have much less fammiliarity with the language than with others... (I have started looking at ECMA-334 some, but it is long and a little awkward to answer specific questions from absent some digging...). so, firstly, it is my guess that in order to compile C# properly, it is required to load a whole group of files at once (I am uncertain whether the term 'assembly' also applies to the collection of input source files, or only to a produced DLL or EXE). You can load C# source code files as well as assemblies or modules. yes, ok. my guess is that it works like this: the group of files is loaded; each file is preprocessed and parsed (it is looking like C# uses a context-independent syntax?...); Incorrect, C# uses context dependent keywords. I meant, context independent as in, the parser can parse things without knowing about previous declarations. in C, it is necessary to know about declarations (typedefs, structs, ...) in order to be able to parse (otherwise... the syntax is ambiguous...). sadly, I am not all that familiar in detail with C#'s syntax. in C#, this would mean having to know about all of the classes in all of the visible namespaces before being able to parse, which would not seem to be the case. actually, it is looking to me (just my guess from looking at ECMA-334), that rather than processing code a few-tokens at a time and using a syntax where the current parsing depends on prior declarations, C# is using a syntax where it is possible to parse everything without knowing the types at parse-time (I will presume this is assumed/required from the way the language is structured), but that the syntax is not disambiguated be the next 1-or-2 tokens, but may require trying to parse everything that could work and using the first syntactic form that does work. this leads to a difference in parsing strategy, namely that rather than parsing along token-by-token and reporting a parse error the first time an unexpected token is seen, one descends into parsing branches, tries to parse, and if there would be a parse error then returning gracefully, allowing the next higher level to try the next possible interpretation. for example: '(Foo)' is ambiguous, and may be assumed to be a reference in parenthesis; '(Foo)bar' is recognized as a cast, on the grounds that otherwise it would not parse correctly. well, I am not strictly following the syntax structure given in the spec, mostly because to do so would require completely rewriting my existing parser, rather I am figuring out how to make it work (AFAICT, the descriptions in ECMA-334 are LR or LALR, but my parsers are typically hand-written recursive descent, and infact I am using a C parser as the basis for a C# parser, but am having to deal with many subtle but fundamental differences between the languages...). basically, one of the earlier forms of my C compiler is being used as a template (I am using an earlier form which uses S-Exps as the basis, rather than a later form which used DOM instead, as S-Exps are faster and less memory-consuming than DOM nodes). not all is free though, as I had to redirect (via search-and-replace) the old typesystem API to the new typesystem API. decided to leave out big chunk about my uncertainty over the convention of usage of letter-case in said APIs naming convention (which differs some from my newer naming rules, AKA: from 'alllower' to 'camelCase'). note: technically, I am doing all this for a few specific reasons: a new compiler frontend will be less effort for the time being than getting either my JBC or CIL frontend working (JBC and CIL still require some work...); the prior effort have already lead to me adding much of the needed machinery into the compiler core (I am still deciding on the details of how I will do exception handling, and am generally leaning against SEH, but there seems to be little standardization here, so I may do my own thing and possibly hook it into the others using VEH, ...); it would be much less effort (and ugliness) to modify a C frontend into a C# frontend, than to hack OO and namespaces onto C while still preserving its C-ness (I beat around some ideas, they were ugly...). as noted, this C# compiler would take the same basic compilation route as my existing C compiler (no intermediate CIL), and will use the same shared backend as my other compilers (since the backend and basic machinery are shared, it doesn't matter too much which frontend uses it, so no real lost effort here...). I have opted against adding CPS to my backend for now (creates too many issues, and would be too much effort, and for now generalized tail-calls and
[Mono-dev] SVN upgraded to subversion 1.5.x
The Mono SVN server at mono-cvs.ximian.com has been upgraded to Subversion 1.5.x. That means that if you have a 1.5.x client you will finally be able to enjoy merge tracking, sparse checkouts, changelists... See http://subversion.tigris.org/svn_1.5_releasenotes.html for the complete list of new features. If you have an older client, this should not affect you in any way. Enjoy! -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] I can not use beagle which is based on mono
I use mono 2.2-r3. I can not use beagle which is based on mono in gentoo. when I run beagle --fg --debug, it will halt and exit after a while. it displays: Debug: Delaying add of file:///media/bak/oo/FILE/??n?¤ì???·.chm until FSQ comes across it ** ERROR:strenc.c:193:mono_unicode_to_external: assertion failed: (utf8!=NULL) Aborted how to fix it ? thanks ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono is losing session when cookieless=true
On Thu, 2009-02-12 at 12:13 -0800, MonoMichal wrote: Hi, I have a problem, I need to use cookieless session. It works very good on my windows machine (Windows XP 5.1 Build 2600, IIS 5.1), I experience no issues. However when I migrate my project to mono server, mono is losing session. I have trouble reading data from Session object. My application goes down :( When I set cookieless to false everything is ok. However I can't use session with cookies because of environment which I work in. Requirement for my application is to not use cookies. I'm fighting with this some time and can't solve :( I can't solve a problem that I can't reproduce ;-). Would you mind entering a bug in bugzilla.novell.com and attaching a self-contained test case that reproduces the problem? Contrary to common knowledge, in the case of tests, the smaller the better. TIA -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] XML validation : xsi:nil attribute ignored
Hello, Sorry for the late reply. I haven't read this message until now. It's already fixed in svn at some stage. Atsushi Eno yproust wrote: Hi I am trying to validate XML with an XSD schema, but it seems that the xsi:nil attributes are ignored. As the element must be a dateTime, validation fails on an empty element : XmlSchema error: Invalidly typed data was specified. XML Line 3, Position 31. I am using Mono 2.2 under CentOS 5.2. The validation fails through Monodevelop 2.0 Alpha 2 (1.9.1) with the same error. On the other hand, the XML is validated with Microsoft Visual Studio under Windows XP. Are there specific options to use in the code ? A specific namespace to use in the XSD and/or XML ? Thanks for your help Here are the files I used to perform my tests : XSD ?xml version=1.0 encoding=utf-16? xs:schema xmlns=http://www.test.com; elementFormDefault=qualified targetNamespace=http://www.test.com; xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=Message xs:complexType xs:all xs:element name=MyDateTime nillable=true type=xs:dateTime / /xs:all /xs:complexType /xs:element /xs:schema Validated XML ?xml version=1.0 encoding=utf-8? Message xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://www.test.com; xsi:schemaLocation=http://www.test.com test.xsd MyDateTime2009-01-23T12:00:00Z/MyDateTime /Message Not validated XML ?xml version=1.0 encoding=utf-8? Message xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://www.test.com; xsi:schemaLocation=http://www.test.com test.xsd MyDateTime xsi:nil=true/MyDateTime /Message Code used to validate XML : StreamReader reader = new StreamReader(test.xml); string xml = reader.ReadToEnd(); string xsd = /home/yproust/dev/test/test.xsd; XmlReaderSettings settings = new XmlReaderSettings(); settings.ValidationEventHandler += delegate(object sender, ValidationEventArgs e) { throw new Exception(Error while validating message with xsd: + e.Message); }; settings.ValidationType = ValidationType.Schema; // Load the xsd if( xsd != null ) settings.Schemas.Add(null, new XmlTextReader(xsd)); StringReader stringReader = new StringReader(message); try { myXmlValidatingReader = XmlReader.Create(stringReader, settings); while (myXmlValidatingReader.Read()) { } myXmlValidatingReader.Close(); } finally { stringReader.Close(); } Error when validation fails : XmlSchema error: Invalidly typed data was specified. XML Line 3, Position 31. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Tar library for mono - SharpZipLib doesnt preserve attributes/ownership of files
2009/2/19 adrin adri...@gmail.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 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@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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] How can use my software (Win32) on Linux plz?
On Tue, Jan 20, 2009 at 7:21 PM, arnomedia arnome...@yahoo.fr 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Tips for getting started with mono? Want to run .NET apps on Windows and Mac.
On Mon, Feb 9, 2009 at 7:10 PM, WATYF wa...@hotmail.com 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: http://www.mono-project.com/Guidelines:Application_Portability -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Running .Net 1.1 application on mono 2.0
On Fri, Feb 13, 2009 at 4:40 PM, MonoMichal michal.x.ma...@us.hsbc.com 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Error while trying to start a exe
On Sun, Feb 22, 2009 at 6:03 PM, Don't Know s-a-s-u-...@hotmail.de 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Parametized generics puzzler
On Wed, Jan 28, 2009 at 7:40 AM, ebichete ebich...@yahoo.com 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Multi Platform Database for Mono Applications
On Wed, Feb 11, 2009 at 7:44 AM, RightPaddock urbaneti...@lavabit.com 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problems with CopyTo, using Contains(...) and inserting a character from one string into another.
On Tue, Jan 27, 2009 at 6:53 AM, PFJ pjohns...@uclan.ac.uk 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] BinaryFormatter serialization accross .NET and Mono
On Fri, Feb 6, 2009 at 5:19 PM, schmmd mich...@schmitztech.com 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] BinaryFormatter serialization accross .NET and Mono
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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Bug within ASP.NET WebControls?
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: Institutional:ExceptionInfoNameEditor runat=server / And the contents of the control are basically: http://pastebin.com/m214a6c22 This control renders in MS .NET as: textarea name=ctl00$content$ctl02$Mid_StringEditor__name rows=2 cols=20 id=ctl00_content_ctl02_Mid_StringEditor__name/textarea span id=ctl00_content_ctl02_ctl00 style=color:Red;display:none;/spanspan id=ctl00_content_ctl02_ctl01 style=color:Red;display:none;/span 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) [0x0] at System.Web.UI.WebControls.WebControl.AddAttributesToRender (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.WebControls.TextBox.AddAttributesToRender (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.WebControls.WebControl.RenderBeginTag (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.WebControls.TextBox.Render (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at Institutional.WebComponents.Controls.StringEditor`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer, Institutional.Core.ExceptionInfo t, Int32 renderCount, Boolean flipFlop) [0x0] at Institutional.WebComponents.Controls.BaseFieldControl`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at Institutional.WebComponents.Controls.BaseEntityItem`1[Institutional.Core.ExceptionInfo].Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.HtmlControls.HtmlContainerControl.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.Render (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.RenderControl (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Page.RenderPage () [0x0] at System.Web.UI.Page.InternalProcessRequest () [0x0] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0] 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Bug within ASP.NET WebControls?
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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Bug within ASP.NET WebControls?
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 StringEditorT : BaseEntityFieldEditorT 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 robe...@gmx.net 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@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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] No C# installer found after installing mono-2.2 from source
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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Bug within ASP.NET WebControls?
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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] No C# installer found after installing mono-2.2 from source
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@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. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Generics Conversions
Hello all, I noticed one behaviour when using Generics: ListString StringList = new ListString(); ListObject ObjectList = (StringList as ListObject); // Error The error message is: Program.cs(14,51): error CS0039: Cannot convert type `System.Collections.Generic.Liststring' to `System.Collections.Generic.Listobject' 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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Generics Conversions
On Mon, Feb 23, 2009 at 9:58 AM, Sascha Leib sascha.l...@gmail.com wrote: ListString StringList = new ListString(); ListObject ObjectList = (StringList as ListObject); // [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. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Generics Conversions
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. IEnumerableobject objects = new Liststring(); will be valid. Listobject more = new Liststring(); will not be valid. List will still be declared as ListT, and IEnumerable will be interface IEnumerableout T { stuff }. Right now I'd use IEnumerableobject objects = stringList.Select(x = (object)x); or if you must have List, Listobject 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 sascha.l...@gmail.com Hello all, I noticed one behaviour when using Generics: ListString StringList = new ListString(); ListObject ObjectList = (StringList as ListObject); // Error The error message is: Program.cs(14,51): error CS0039: Cannot convert type `System.Collections.Generic.Liststring' to `System.Collections.Generic.Listobject' 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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Generics Conversions
On Mon, Feb 23, 2009 at 7:58 AM, Sascha Leib sascha.l...@gmail.com wrote: Hello all, I noticed one behaviour when using Generics: ListString StringList = new ListString(); ListObject ObjectList = (StringList as ListObject); // Error The error message is: Program.cs(14,51): error CS0039: Cannot convert type `System.Collections.Generic.Liststring' to `System.Collections.Generic.Listobject' 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: Liststring stringList = new Liststring(); stringList.Add(a string); Listobject objectList = (Listobject) 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 Listobject.Add(object item); and an integer can be boxed to satisfy this condition. This would add a non-string to a Liststring. The only type-safe way to prevent this from happening is to prevent a cast from Liststring to Listobject. 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Generics Conversions
Sascha Leib wrote: Hello all, I noticed one behaviour when using Generics: ListString StringList = new ListString(); ListObject ObjectList = (StringList as ListObject); // Error The error message is: Program.cs(14,51): error CS0039: Cannot convert type `System.Collections.Generic.Liststring' to `System.Collections.Generic.Listobject' 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Generics Conversions
On Mon, Feb 23, 2009 at 8:10 AM, Ricky Clarkson ricky.clark...@gmail.com wrote: Right now I'd use IEnumerableobject objects = stringList.Select(x = (object)x); or if you must have List, Listobject 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 IEnumerableU UpcastT, U(this IEnumerableT e) where T : U { foreach (T i in e) yield return i; } IEnumerableobject e = someStringList.Upcaststring, object(); -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Generics Conversions
Alternative implementation: return e.Select(x = (U)x); 2009/2/23 Chris Howie cdho...@gmail.com On Mon, Feb 23, 2009 at 8:10 AM, Ricky Clarkson ricky.clark...@gmail.com wrote: Right now I'd use IEnumerableobject objects = stringList.Select(x = (object)x); or if you must have List, Listobject 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 IEnumerableU UpcastT, U(this IEnumerableT e) where T : U { foreach (T i in e) yield return i; } IEnumerableobject e = someStringList.Upcaststring, object(); -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] BinaryFormatter serialization accross .NET and Mono
Chris Howie wrote: On Fri, Feb 6, 2009 at 5:19 PM, schmmd mich...@schmitztech.com 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. Things might be able to be serialized slightly differently and yet achieve the same results. However, I would suggest that, if things are not working using the binary formatter between .NET and Mono, then you should submit a bug. It's important that Mono and .NET are able to communicate properly. Jeff ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono Performance Question
I realize this is an extremely open ended and vague question but I'm running an application that's doing some intense computation and taking forever and a half. Using strace I looked at what it was doing and I didn't know what to make of what I saw. I pasted it below- % time seconds usecs/call callserrors syscall -- --- --- - - 57.970.053464 59 911 431 futex 35.740.032959 122 270 270 rt_sigsuspend 5.420.004995 1782828 epoll_wait 0.880.000813 1 550 tgkill 0.000.00 0 4 mmap 0.000.00 0 5 mprotect 0.000.00 0 540 540 rt_sigreturn 0.000.00 0 448 clock_gettime -- --- --- - - 100.000.092231 2756 1269 total Does anybody have an idea as to why it's spending so much time calling futex and rt_sigsuspend? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Code Coverage
Is there a good FOSS .Net code-coverage tool out there? Thanks for any help. -Abe ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Multi Platform Database for Mono Applications
Chris Howie wrote: On Wed, Feb 11, 2009 at 7:44 AM, RightPaddock urbaneti...@lavabit.com wrote: Sounds like you had your answer before you sent the message. http://www.mono-project.com/SQLite Chris Howie No, I did not have the answer before I posted the message, but I did find it in the interval between my original post and Nabble sending the message (which was about a week). As I investigated the issue through other channels I added addenda to my original message, I guess I should have time stamped them. Had I been able I would have removed the message. RightPaddock -- View this message in context: http://www.nabble.com/Multi-Platform-Database-for-Mono-Applications-tp21947145p22165417.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono Performance Question
On Mon, Feb 23, 2009 at 11:37 AM, Aaron Knister aaron.knis...@gmail.com wrote: Does anybody have an idea as to why it's spending so much time calling futex and rt_sigsuspend? Well, futex does userspace locking, and it's possible that Mono uses this when locking on objects. Do you use lock(){} a lot? -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] string/buffer allocation speed issue
tomjohnson3 wrote: the performance difference (caused by the string and buffer allocation) when running this simple program on windows xp using microsoft vs. mono 2.2 is pretty big...and i was hoping there's something i can do to reduce or eliminate the difference. here are the performance numbers for test 1 (allocating the char array once, upfront): microsoft/windows xp: duration: 0.047sec; rate: 10638298/sec mono 2.2/windows xp: duration: 0.234sec; rate: 2136752/sec Since your sample does nothing, MS.NET has probably optimized out parts of the code. If you're benching mono, do it under Linux and with real world code. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] I don't find the mod_mono.conf file
Juan Carlos Martinez-2 wrote: In a Windows 2003 server, I just installed: a) Apache HTTP Server 2.2.4 b) Mono 1.2.4-gtksharp-2.8.3-win32-3 Now I'm trying to include the file mod_mono.conf in the Apache's configuration file, but I don't find it anywhere. I am having the very same issue on a Win XP (although I doubt the operating system makes much difference). Being new to this stuff, is there another part to the installation that I missed? David Cottrell -- View this message in context: http://www.nabble.com/I-don%27t-find-the-mod_mono.conf-file-tp11720851p22066656.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] [newbee] Please, help me to run my basic software ? (Path)
On Wed, 2009-01-21 at 17:36 -0800, arnomedia wrote: SEE THE ERROR MESSAGE FROM MONO: ** (/home/arnofly/Bureau/TestForLinux.exe:5467): WARNING **: The following assembly referenced from /home/arnofly/Bureau/TestForLinux.exe could not be loaded: Assembly: Microsoft.VisualBasic(assemblyref_index=1) Version:8.0.0.0 Public Key: b03f5f7f11d50a3a 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/arnofly/Bureau). ** (/home/arnofly/Bureau/TestForLinux.exe:5467): WARNING **: Could not load file or assembly 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. You don't have Microsoft.VisualBasic.dll installed into your GAC. Alas, you seem to be running Debian or Ubuntu (given your prior mention of Synaptic), and Ubuntu Jaunty (9.04) will be the first version to have the libmono-microsoft-visualbasic8.0-cil package which provides this assembly... :-( Debian unstable also provides the libmono-microsoft-visualbasic8.0-cil package, which should install onto Ubuntu 8.10; see: http://packages.debian.org/sid/all/libmono-microsoft-visualbasic8.0-cil/download If that doesn't work, you might consider building mono from source, which will include this assembly, but that may be more work than you'd like to consider. Regardless, see: http://www.mono-project.com/Parallel_Mono_Environments - Jon ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Embedded Databases in .NET/Mono
On Sun, Feb 8, 2009 at 9:28 AM, Sienna sienn...@btinternet.com wrote: 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. :-) Would something like db4o work for you? -- http://www.opgenorth.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] string/buffer allocation speed issue
Hi, All this test does is allocate memory non-stop which is a GC stress test. It is known that monos GC is currently slower than the MS GC. If you're wondering what kind of performance you can get out of a C#, gmcs would be a good example. Alan On Mon, Feb 23, 2009 at 4:30 PM, Robert Jordan robe...@gmx.net wrote: tomjohnson3 wrote: the performance difference (caused by the string and buffer allocation) when running this simple program on windows xp using microsoft vs. mono 2.2 is pretty big...and i was hoping there's something i can do to reduce or eliminate the difference. here are the performance numbers for test 1 (allocating the char array once, upfront): microsoft/windows xp: duration: 0.047sec; rate: 10638298/sec mono 2.2/windows xp: duration: 0.234sec; rate: 2136752/sec Since your sample does nothing, MS.NET has probably optimized out parts of the code. If you're benching mono, do it under Linux and with real world code. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Embedded Databases in .NET/Mono
2009/2/23 Tom Opgenorth opgeno...@gmail.com: On Sun, Feb 8, 2009 at 9:28 AM, Sienna sienn...@btinternet.com wrote: 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. :-) Would something like db4o work for you? Do you consider XML as database ? also but not sur, embeded ressource can be use ? -- http://www.opgenorth.net ___ Mono-list maillist - Mono-list@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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Embedded Databases in .NET/Mono
If some people call MSAccess as a database, XML or ASCII can be also considered as one too :) -Original Message- From: mono-list-boun...@lists.ximian.com [mailto:mono-list- boun...@lists.ximian.com] On Behalf Of Petit Eric Sent: segunda-feira, 23 de Fevereiro de 2009 19:59 To: t...@opgenorth.net Cc: mono-list@lists.ximian.com; Sienna Subject: Re: [Mono-list] Embedded Databases in .NET/Mono 2009/2/23 Tom Opgenorth opgeno...@gmail.com: On Sun, Feb 8, 2009 at 9:28 AM, Sienna sienn...@btinternet.com wrote: 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. :-) Would something like db4o work for you? Do you consider XML as database ? also but not sur, embeded ressource can be use ? -- http://www.opgenorth.net ___ Mono-list maillist - Mono-list@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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Embedded Databases in .NET/Mono
Sienna wrote: 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... Have you looked at DB4O? It's GPL, although it's not SQL ;) Andrés -- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] GDI+ status: InvalidParameter
On Sun, 2009-02-01 at 00:28 -0800, 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 This looks like an invalid icon (file or format). Try removing your icon from the form to see if it works. If it does then please attach the icon to a bug report[1] so that we can check if this was fixed after Mono 1.9.1 (which is already quite old). If it still does not work then post back on the list what error you getting (without the icon). [1] http://bugzilla.novell.com 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) [0xd] 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) [0x0] 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) [0xc] 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) [0x0] in /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:623 at CalculPoint.Program.Main () [0xb] 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Embedded Databases in .NET/Mono
Haha, that's true indeed, Jorge :-) Anyway, in the meantime, I solved the issue like this: I am using Mono.Data.Sqlite on both Windows/.NET and Mono. That works perfectly and saves me implementing two different APIs. As the Mono.Data.Sqlite is a managed provider, the only dependency is sqlite.dll, which is in the Public Domain and also works on both .NET and Mono. So basically, I achieved the goal of bundling all necessary pieces and sticking to open source / free software. Thanks for giving it a thought, though! Sienna On 23 Feb 2009, at 20:46, Jorge Bastos wrote: If some people call MSAccess as a database, XML or ASCII can be also considered as one too :) -Original Message- From: mono-list-boun...@lists.ximian.com [mailto:mono-list- boun...@lists.ximian.com] On Behalf Of Petit Eric Sent: segunda-feira, 23 de Fevereiro de 2009 19:59 To: t...@opgenorth.net Cc: mono-list@lists.ximian.com; Sienna Subject: Re: [Mono-list] Embedded Databases in .NET/Mono 2009/2/23 Tom Opgenorth opgeno...@gmail.com: On Sun, Feb 8, 2009 at 9:28 AM, Sienna sienn...@btinternet.com wrote: 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. :-) Would something like db4o work for you? Do you consider XML as database ? also but not sur, embeded ressource can be use ? -- http://www.opgenorth.net ___ Mono-list maillist - Mono-list@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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list Sienna http://www.robo2sl.org An open source bot framework for SL ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Npgsql 2.0.3 released!
Hi, all!! The Npgsql Development Team is proud to announce the Npgsql2 2.0.3 release! Npgsql is a .Net Data provider written 100% in C# which allows .net programs to talk to postgresql backends. Npgsql is licensed under BSD. More info can be obtained from http://www.npgsql.org This release is a minor bug fix for the stable 2.0 series. The biggest highlight goes to fixes for entity framework support thanks Josh Cooley Jon Hanna added a lot of improvements to Npgsql. You can see full changelog and release notes here: http://pgfoundry.org/frs/shownotes.php?release_id=1320 You can dowload it from here: http://downloads.npgsql.org Thank you to Josh Cooley for all his help with entity framework support! Thanks Jon Hanna for all your help on fixes and improvements. Please, give it a try and let us know if you have any problems. Check out our forums: http://forums.npgsql.org P.S.: If you like Npgsql, you can send us a postcard. Here are the addresses: Josh Cooley 102 Boston Harbour Way Madison, AL 35758 USA Francisco Figueiredo Jr. QMSW 05 Lote 02 Bloco C Apto 116 Sudoeste - Brasilia - DF - Brazil Zip Code: 70680-500 Brazil Thank you very much! -- Regards, Francisco Figueiredo Jr. Npgsql Lead Developer http://fxjr.blogspot.com http://www.npgsql.org ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list