[Mono-list] [ANN] nUML 0.4 released
Hello everybody, After eight months since our last release, we are pleased to announce a new version of nUML. nUML is a library for manipulating UML 2.0 (and MOF) models. It works with Microsoft(R) .NET Framework, Mono::, and DotGNU. Serialization to and from XMI 2.1 is supported. In this release (0.4), besides several bug fixes, you will find: - Improved interoperability with ArgoUML 0.24. An XSLT stylesheet to transform XMI 2.0 to XMI 1.2 is provided, thus exporting nUML files to ArgoUML format is now possible (the inverse operation was available in previous releases, and has been enhanced in this one.) - Implementation of the Templates package from UML 2.0 (attributes and serialization only). - More control over XMI production: object references can be serialized either as XML attributes (as before) or XML elements (new default option). - A working implementation of the Profiles package. See http://numl.sourceforge.net/index.php/Profiles_and_Stereotypes - New interfaces IModelDomain and IModelDomainProvider (in NUml.Xmi2), which allow to create model domains other than files. - More (even weirder!) stuff. Check the ChangeLog and RELNOTES files. If you were looking for a way to process your UML models with C#, this library is for you. Links: http://numl.sourceforge.net/index.php/Main_Page http://sourceforge.net/projects/numl/ http://sourceforge.net/project/showfiles.php?group_id=163831 [download page] Best regards, Rodolfo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] About bug #77127
Hello, I would like to know what will happen to bug #77127 (Interface re-implementations lost in inheritance, http://bugzilla.ximian.com/show_bug.cgi?id=77127). I verified it today (svn revision 57031) and the bug is still present. This bug affects the UML libraries provided by ExpertCoder and, in consequence, MonoUML. Any comments? Thanks in advance, best regards, Rodolfo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Assembly.Load doubts
Hi, On 7/28/05, Mario Sopena [EMAIL PROTECTED] wrote: I have the following scenario: -- TestBase.cs --- public interface TestBase { void Print(); } --Test.cs--- public class Test : TestBase { public Test () {} public void Print() { System.Console.WriteLine (Hola); } } --- TestClass.cs using System; using System.Reflection; public class TestClass { public static void Main (string[] args) { new TestClass(); } public TestClass () { AssemblyName asna = AssemblyName.GetAssemblyName (Test.dll); Assembly asm = Assembly.LoadWithPartialName (asna.FullName); Type t = asm.GetType(Test, true); object obj = Activator.CreateInstance (t); TestBase tb = (TestBase) obj; //InvalidCastException tb.Print(); } } I compile like this: mcs -target:library Test.cs TestBase.cs mcs -debug TestClass.cs TestBase.cs So I end up with a Test.dll and TestClass.exe. Now, executing the TestClass.exe throws an InvalidCastException in the line with the comment. I think the problem is that i don't load the dll in the correct context, but I've tried other possibilities and I couldn't make it work. Two days ago I didn't know was an AppDomain was, so there is the possibility that I'm doing something really stupid. Any help pleaase? We just discussed this problem in monohispano: https://listas.hispalinux.es/pipermail/mono-hispano/2005-July/003327.html (I'm assuming that you speak spanish) Cheers, Rodolfo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] [Problem] Unhandled Exception
Hi, On 7/15/05, 頌凱 [EMAIL PROTECTED] wrote: when i remove image1.Pixbuf that line can't see errors please help me my code: /* * date: 2005/07/15 * author:huki (SongKai Huang) * mail:[EMAIL PROTECTED] * filename:test1.cs */ using Gtk; using Glade; using GtkSharp; using System.Reflection; public class test1 { [Widget] Image image1; [Widget] Fixed fixed1; public test1 () { Application.Init(); Glade.XML gxml = new Glade.XML (./test1.glade, window1, null); gxml.Autoconnect (this); image1.Pixbuf = new Gdk.Pixbuf (null, icon.png); Application.Run(); } public static void Main (string [] args) { new test1(); } public void on_window1_delete_event (object o, DeleteEventArgs args) { Application.Quit (); } } error: [EMAIL PROTECTED] ~/test1]$ mcs test1.cs -pkg:glade-sharp -pkg:gtk-sharp test1.cs(15) warning CS0169: The private field 'test1.fixed1' is never used Compilation succeeded - 1 warning(s) [EMAIL PROTECTED] ~/test1]$ mono test1.exe Unhandled Exception: System.ArgumentException: resource must be a valid resource name of 'assembly'. in 0x00094 Gdk.Pixbuf:.ctor (System.Reflection.Assembly assembly, System.String resource) in 0x00065 test1:.ctor () in 0x00016 test1:Main (System.String[] args) Try building with: mcs -pkg:glade-sharp -pkg:gtk-sharp -resource:icon.png test1.cs Regards, Rodolfo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Netron
Hello, On 5/28/05, caner Sahan [EMAIL PROTECTED] wrote: Hi everybody; i have just learnt a tool written with mono. But it isn't on go-mono page in action. When Mr.Icaza was in Istanbul for a conference ,we had an interview with him and he said he didn't like uml and he didn't liked who liked uml. But it was a joke we know :)) Anyway, this project a simple UML tool it is called Netron-Project what do you think about this project? Is it useful? AFAIK, the Netron project is more general than a UML tool; is a diagramming toolkit for writing graph-based visual tools. If you want a UML tool powered by Mono::, take a look at MonoUML [1]. Beware that is currently under heavy development. If you want to programmatically manipulate UML models using C# or another language supported by the .NET framework, you can use ExpertCoder's libraries for UML 2.0 and XMI 2.0 [2]. It wouldn't be fair for me to say whether these projects are useful or not, because I'm a member of both development teams; however, I would love to hear other people's opinion. I hope this helps, Rodolfo [1] http://www.monouml.org/ [2] http://expertcoder.sf.net/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problems with updater.exe
Hello, I think the preferred way to generate and mantain documentation is using monodocer. IIRC it's place somewhere within the directory monodoc in the sources. I'm not at home so I don't have my GNU/Linux box at hand in order to give you more precise info. On 4/28/05, Giuseppe Greco [EMAIL PROTECTED] wrote: Hi all, I'm trying to build some documentation with updater.exe (shipped with monodoc)... but no way: [EMAIL PROTECTED] sdk]$ mono /usr/lib/monodoc/updater.exe ../../build/thermota-0.7/bin/Thermota.Core.dll -o ../../build/thermota-0.7/doc/sdk/en-US -f I always get the message Segmentation fault. I've also tried to recompile the latest version of updater.exe from SVN, but nothing... I'm running mono 1.1.6 on Fedora 3; any help would be really appreciated. Thanks, j3d. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problem with monodevelop
Hi, On Apr 4, 2005 4:04 AM, Hubert FONGARNAND [EMAIL PROTECTED] wrote: When I try to load a cs file, nothing appear unless this exception... Is there a problem with MIME? Error while loading System.InvalidCastException: Cannot cast from source type to destination type. in 0x00058 GtkSourceView.SourceLanguagesManager:GetLanguageFromMimeType (System.String mime_type) in 0x00013 MonoDevelop.Services.SourceViewService:GetLanguageFromMimeType (System.String mimetype) in 0x00016 MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadText (System.String text, System.String mime) in 0x00036 MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadFile (System.String file, System.String mime) in 0x00050 MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBindingWrapper:Load (System.String fileName) in 0x0002a MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding:CreateContentForFile (System.String fileName) in 0x00023 MonoDevelop.Services.DefaultFileService+LoadFileWrapper:Invoke (System.String fileName) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_string (string) in 0x00014 MonoDevelop.Core.Services.FileUtilityService+LoadWrapper:Invoke () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () in 0x00018 MonoDevelop.Core.Services.FileUtilityService:ObservedLoad (MonoDevelop.Core.Services.FileOperationDelegate saveFile, System.String fileName, System.String message, FileErrorPolicy policy) Could someone help me? Try updating gtksourceview-sharp. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] automake errors with mono from svn
Hello, On Feb 26 2005, John Bytheway wrote: I'm trying to compile mono from svn of Debian testing, but when I run autogen.sh I get vast numbers of warnings as well as a few errors from automake, including the following: Which version of automake are you using? I think that it should work if you use 1.7. I'm using automake 1.9, and some warnings aside, it works fine. Check also the version requirements for autoconf. Hope this helps, Rodolfo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Hello, Mono!
with regard to the resource referenced here, (and just to keep the information updated): http://lists.ximian.com/archives/public/mono-list/2003-September/015760.html; it points to - http://groups.yahoo.com/group/monoar/; but is not available anymore :( Yahoo! Groups There is no group called monoar. There's a broader group you may find interesting - mono-hispano: http://listas.monohispano.org/mailman/listinfo/mono-hispano Welcome to mono ! Rodolfo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-docs-list] [PATCH] generator/updater.cs - questions
From: Joshua Tauberer [EMAIL PROTECTED] The patch fixes the file generator/updater in monodoc. I had to do this because I was getting a NullReferenceException. Monodocer in /monodoc/tools should be used. It's more stable, more complete, and generates proper doc files. 'monodoc --update' runs updater, which I advise against. If I use monodocer, will I be able to edit the XML files with monodoc and then merge the changes as explained in the tutorial? _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list
Re: [Mono-docs-list] [PATCH] generator/updater.cs - questions
From: Joshua Tauberer [EMAIL PROTECTED] If I use monodocer, will I be able to edit the XML files with monodoc and then merge the changes as explained in the tutorial? Monodocer does the exact same thing that updater does, only it does it correctly. So yes. Thanks Joshua! I'll try monodocer. _ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list
[Mono-list] [ANN] Expert Coder version 20050115 released
I'm proud to announce that Expert Coder version 20050115 has been released. Expert Coder is a framework for MDA [1] projects. It has been split into two modules: - generation: code generation libraries. Version 0.6. - modeling: UML 2.0, MOF 2.0 and XMI 2.0 libraries. Version 0.7. These modules evolve independently, hence the different version numbers. You can find more information about Expert Coder at its home page: http://expertcoder.sourceforge.net/ and at its project page: http://www.sourceforge.net/projects/expertcoder Discussion is held in the forums: http://sourceforge.net/forum/?group_id=105200 and the mailing list: http://sourceforge.net/mail/?group_id=105200 HELP WANTED === - Are you interested in MDA, UML and code generation? There are lots of areas where you can help. - Are you a talented web designer with some spare time? We need a new design for our site. Please check the contact info at the project's home page. Best regards, Rodolfo Campero [1] http://www.omg.org/mda/ _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] foreach and GetEnumerator (with fixed test case)
From: RoBiK [EMAIL PROTECTED] To: 'Rodolfo Campero' [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: RE: [Mono-list] foreach and GetEnumerator (with fixed test case) Date: Wed, 6 Oct 2004 13:23:29 +0200 Hi, I think this is a mono c# compiler error. Because there are two GetEnumerator() methods with the same signature, the compiler should report an error on the foreach statement. The microsoft compiler does it right wit the The call is ambiguous between the following methods or properties error message. OK, I filed a bug report in bugzilla - #67689. Thanks for your feedback. Robert Best regards, Rodolfo _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] how to compile a java
From: miKeL a.k.a.mc2 [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] how to compile a java Date: Wed, 06 Oct 2004 16:04:23 +0200 hello, I can't compile source like // created on 06/10/2004 at 00:48 class HolaMon{ public static void main(String [] args){ System.out.println(Hola mon); } } miKeL, mono supports C# and partially VB.NET, but not Java. If you're use using mcs, your program should look like: class HolaMon { public static void main(string [] args){ System.Console.WriteLine(Hola mon); } } Pay attention to the lower case in string. Regards, Rodolfo _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] how to compile a java
From: Juan Cristóbal Olivares [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: [Mono-list] how to compile a java Date: Wed, 6 Oct 2004 10:33:10 -0400 1.- The entry point is Main, not main [M is uppercase] 2.- You can use String, but you'll need either using System; or System.String reference. I stand corrected. Man! I should do something about my fast and dirty fingers... they're making me look bad lately :) _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] please ignore message foreach and GetEnumerator
Hello, Please ignore my previous message, subject: foreach and GetEnumerator I just tested the code at work, and in fact it works. I will investigate further my original (bigger) code. Sorry for the noise. Rodolfo _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] foreach and GetEnumerator (with fixed test case)
Hello, I'm resending this email, this time with a sample that actually reproduces the problem - I checked it in both MS .NET and mono 1.1.1.0. Sorry for the previous one. Considering that the previous sample actually compiles and run in MS .NET, now I'm thinking it's a bug in csc... anyway, I'd like to read your comments, and if a mono hacker considers it's a mono bug, I can file a bug report. Here goes the testcase; it doesn't compile on Windows, but it does on mono (if you run it, you'll get a NullReferenceException but that's ok): compiled with: Microsoft (R) Visual C# .NET Compiler version 7.00.9951 for Microsoft (R) .NET Framework version 1.0.3705 The error is in the line that contains the 'foreach' statement: The call is ambiguous between the following methods or properties: 'Testing.ICustomEnumerable.GetEnumerator()' and 'System.Collections.IEnumerable.GetEnumerator()' 8 using System; using System.Collections; namespace Testing { interface ICustomEnumerable { IEnumerator GetEnumerator(); } interface IMixedEnumerable : IEnumerable, ICustomEnumerable {} class TestCollection : IMixedEnumerable { IEnumerator IEnumerable.GetEnumerator() { Console.WriteLine(IEnumerable); return null; } IEnumerator ICustomEnumerable.GetEnumerator() { Console.WriteLine(ICustomEnumerable); return null; } } class Test { public static void Main(string[] args) { IMixedEnumerable c = new TestCollection(); foreach(object o in c) {} } } } 8 El lun, 04-10-2004 a las 20:04, Rodolfo Campero escribió: Hello, I've run into a situation with foreachs and the GetEnumerator method. The issue is reproduced with this small piece of code: the wrong example was removed/ This program can be compiled using mcs, and when I run it I get: $ mono cols.exe IEnumerable The problem is that this same piece of code won't compile in MS.NET csc compiler (I checked my original program with version 1.1, but not this simplified example): it complains that it can't choose between System.Collections.IEnumerable and IMyEnumerable. I'm rising this question because I'm not sure if this is a mono or a MS .NET bug, because I find the spec (ECMA-334, 15.8.4) rather ambiguous. At a given point it reads: A type C is said to be a collection type if it implements the System.IEnumerable interface or implements the collection pattern by meeting all of the following criteria: [...] The thing is that it's not specified what happens when _both_ criteria are met. So, what do you think? Looking forward to reading all your comments, Rodolfo _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] foreach and GetEnumerator
Hello, I've run into a situation with foreachs and the GetEnumerator method. The issue is reproduced with this small piece of code: 8--- using System; using System.Collections; public interface IMyEnumerable { IEnumerator GetEnumerator(); } public class TestCol : IEnumerable, IMyEnumerable { IEnumerator IEnumerable.GetEnumerator() { Console.WriteLine(IEnumerable); return null; } IEnumerator IMyEnumerable.GetEnumerator() { Console.WriteLine(IMyEnumerable); return null; } public static void Main(string[] args) { TestCol t = new TestCol(); try { foreach(object o in t) {} } catch(Exception) {} } } 8--- This program can be compiled using mcs, and when I run it I get: $ mono cols.exe IEnumerable The problem is that this same piece of code won't compile in MS.NET csc compiler (I checked my original program with version 1.1, but not this simplified example): it complains that it can't choose between System.Collections.IEnumerable and IMyEnumerable. I'm rising this question because I'm not sure if this is a mono or a MS .NET bug, because I find the spec (ECMA-334, 15.8.4) rather ambiguous. At a given point it reads: A type C is said to be a collection type if it implements the System.IEnumerable interface or implements the collection pattern by meeting all of the following criteria: [...] The thing is that it's not specified what happens when _both_ criteria are met. So, what do you think? Looking forward to reading all your comments, Rodolfo _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Using Custom Namespaces
El dom, 03-10-2004 a las 19:40, Joshua Tauberer escribió: tracy Anne wrote: I don't like MonoDevelop all that much, it barely handles forms based projects, and I can't write Web Applications with it (my big need for developing on Linux). But that aside. I like MonoDevelop a lot. (positive comments don't get posted nearly enough) Well, that's true. So in order to balance things to the positive side, I'll say that I also like it a lot. In fact, it's the development environment I use for my projects. I see that, more often than not, the only feedback you get from open source projects are complaints, and that's a shame. I really appreciate the effort you Mono and Monodevelop guys are doing, and I want to thank you for it. Cheer up! Rodolfo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-docs-list] MonoDoc item schema
Hi Francisco, El lun, 16-08-2004 a las 10:44, Francisco T. Martinez escribió: Hello: Does any one know if there is an XSD file that describes the complete schema that may be used for MonoDoc documents (overviews, specific item pages, etc.) I am building MS Help Files for Win32 and plan to do a lot of XSLT to generate HTML versions of the existing XML formats. I have taken a look at the great work that was done in monodoc/tools but may need much more finer degree of control over the HTML generation process. IIRC Kevin Downs from NDoc was working on a tool to convert monodoc files into MS-XML documentation file format, in order to use NDoc to generate documentation from monodoc files. Of course if no one knows about the existence of such schema, I may create my own and may publish or make accessible my documentation in the documentation format generated by XML Spy (see the following link of a sample based on the project file format used by MonoDevelop: http://www.mfconsulting.com/product/prj2make-sharp/prjxDoc/index.html ) Paco ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list -- Rodolfo Campero http://expertcoder.sourceforge.net/ ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list
[Mono-list] [ANN] Expert Coder 0.4 released
Hello everybody, I'm glad to announce that Expert Coder version 0.4 has been released. Expert Coder is a framework for writing code generators. This is the first announcement in mono-list, because I was holding until a key piece of the system were ready: a library for handling UML 2.0 models. This UML 2.0 library supports serialization using the format specified in the XMI 2.0 standard. You can find more information about Expert Coder at its home page: http://expertcoder.sourceforge.net/ and at its project page: http://www.sourceforge.net/projects/expertcoder Best regards, Rodolfo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] MonoDevelop-Help?
From: Kent Loobey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] MonoDevelop-Help? Date: Wed, 7 Jul 2004 20:03:14 -0700 I managed to get my Help Index separated from my base MonoDevelop window so that now it floats separately on my desktop. Is there a way for me to get it docked back on the left side of my MonoDevelop window? Try drag drop - not on the window border, drag the label Help Index. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] MonoDevelop?
From: Kent Loobey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] MonoDevelop? Date: Thu, 8 Jul 2004 10:40:12 -0700 What is the correct procedure for adding a file to an existing project. I Right-click with the mouse over the project on the solution view. Choose the option Add files... (or something like that, I don't have monodevelop at work so I can't check). thought it might mean editing the Makefile but it includes the following warning: # This makefile is autogenerated by MonoDevelop # Do not modify this file It seems that one might just edit the file.prjx file since it includes no warning... I edited this file by hand a couple of times without problems, but I guess this is not advisable. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Weird problem with pkg-config and monodoc
Hello, Sorry for the noise, turns out that I was so sleepy yesterday that I didn't realized that echo `pkg-config monodoc --version` gives me pkgconfig's version... so stupid! So everything is OK. Cheers, Rodolfo El vie, 02-07-2004 a las 23:35, Rodolfo Campero escribió: Hello, I'm having this weird problem with pkg-config and monodoc. I discovered it when I tried to build monodevelop 0.5. When I do: $ echo `pkg-config monodoc --version` I get: 0.15.0 However, $ locate monodoc.pc gives me: /usr/lib/pkgconfig/monodoc.pc /home/rodolfo/anoncvs/monodoc/monodoc.pc.in /home/rodolfo/anoncvs/monodoc/monodoc.pc and the content of the first file (the first and third files are equal) $ cat /usr/lib/pkgconfig/monodoc.pc is: prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib Name: Monodoc Description: Monodoc - Mono Documentation Browser Version: 1.0 Libs: /r:${libdir}/mono/gtk-sharp/monodoc.dll The environment variable PKG_CONFIG_PATH is set to /usr/lib/pkgconfig. I've monodoc from today's CVS. Any clues? TIA, Rodolfo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Rodolfo Campero http://expertcoder.sourceforge.net/ ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Weird problem with pkg-config and monodoc
Hello, I'm having this weird problem with pkg-config and monodoc. I discovered it when I tried to build monodevelop 0.5. When I do: $ echo `pkg-config monodoc --version` I get: 0.15.0 However, $ locate monodoc.pc gives me: /usr/lib/pkgconfig/monodoc.pc /home/rodolfo/anoncvs/monodoc/monodoc.pc.in /home/rodolfo/anoncvs/monodoc/monodoc.pc and the content of the first file (the first and third files are equal) $ cat /usr/lib/pkgconfig/monodoc.pc is: prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib Name: Monodoc Description: Monodoc - Mono Documentation Browser Version: 1.0 Libs: /r:${libdir}/mono/gtk-sharp/monodoc.dll The environment variable PKG_CONFIG_PATH is set to /usr/lib/pkgconfig. I've monodoc from today's CVS. Any clues? TIA, Rodolfo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Casting and Plugin Issue
Hello Pablo, (inline) El dom, 27-06-2004 a las 17:43, Pablo Fischer escribió: Hi! I'll explain what I'm doing and what I'm looking for: I've three plugins to post/get data from different Blogs (supporting XMLRPC and SOAP). In order to standardize these plugins I'm using Interfaces and three type of Structs (PostStruct, BlogStruct, CategoryStruct) each one XmlSerialized. So, the method to retrieve a list of posts should return a PostStruct. The problem is: When I'm using the plugin to Invoke the methods of these plugins (dll's) I'm having problems with these objects, for example: my_method = t.GetMethod(MGetPosts); object retVal = my_method.Invoke(activator, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod, null, new Object[]{3, user}, null); Will return a PostStruct (cause I'm asking for Posts) with the last 3 posts (3, and the userInfo). When I do a WriteLine of retVal I get a PostStruct, that should be, however, When I try to cast retVal to a PostStruct so I can read I get this: Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in 0x0020e PluginLoader:Main (string[]) From: PostStruct p = (PostStruct)retVal; What I'm doing wrong if the Console.WriteLine(retVal) show me that retVal is a PostStruct?. Maybe you're compiling the source file where PostStruct is defined in both assemblies, caller and callee. What you should do is to compile it only in the caller, and then compile the plugin with a reference to the caller assembly. Beware that you can't do this if the caller is an exe. Any Clues? I'm running Beta3 Maybe you could also add an interface, lets say IPlugin, which defines the method GetPosts. This way you wouldn't have to use reflection in order to invoke methods. Thanks! Pablo Hope this helps, Rodolfo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Casting and Plugin Issue
El dom, 27-06-2004 a las 20:17, Pablo Fischer escribió: Hi! Maybe you're compiling the source file where PostStruct is defined in both assemblies, caller and callee. What you should do is to compile it only in the caller, and then compile the plugin with a reference to the caller assembly. Beware that you can't do this if the caller is an exe. Yeah, It works!. I compiled these *Struct.cs files as a Assembly (dll) and I'm compiling the plugin and main app with a reference to Struct.dll and it works!. :) It feels nice to be helpful. Maybe you could also add an interface, lets say IPlugin, which defines the method GetPosts. This way you wouldn't have to use reflection in order to invoke methods. Uhm, I did not understand very well this. In IPlugin.cs I have defined these methods (GetPost, GetPosts, etc) and in each Plugin I'm inheriting from it (IPlugin) so with the Wrapper I just call GetPost instead of calling each method with different names (Blogger, MetaWebLog, LiveJournal, etc). Or you have another idea? :-) I don't have any other idea, but I thought that maybe instead of doing: snip my_method = t.GetMethod(MGetPosts); object retVal = my_method.Invoke(activator, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod, null, new Object[]{3, user}, null); /snip You could do: IPluging p = (IPlugin)t; object retVal = p.MGetPosts(3, user); Thanks!! Pablo Happy hacking, Rodolfo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Casting and Plugin Issue
El lun, 28-06-2004 a las 00:02, Marcus escribió: I think that you need to put IPlugin in the shared assembly (that the main program and plugins both references). Yes, I agree. On Sunday 27 June 2004 9:19 pm, Pablo Fischer wrote: Hi! I don't have any other idea, but I thought that maybe instead of doing: snip my_method = t.GetMethod(MGetPosts); object retVal = my_method.Invoke(activator, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod, null, new Object[]{3, user}, null); /snip You could do: IPluging p = (IPlugin)t; object retVal = p.MGetPosts(3, user); Sounds great, I tried what you said with two assemblies: one is the Structs.dll (*Struct.cs) and the other Plugin.dll (Plugin.cs and the interface IPlugin.cs), then I compiled MyApp with mcs MyApp.cs -r Structs.dll And then tried to cast it, and it fails: Test7.cs(20) error CS0246: Cannot find type `IPlugin' Also I did a Console.WriteLine to 't' (Type) and prints MBloggy.Plugins.IPlugin. Seems that I can't cast an interface, or what I'm doing wrong?. Assembly a; Type t; MethodInfo my_method; a = Assembly.LoadFrom(BloggerPlugin.dll); t = a.GetType(MBloggy.Plugins.IPlugin); Console.WriteLine(t); As I said, I'm testing what you suggested, but with Reflections the plugins are working great! My wrong. I thought that t was an object instance. Thanks Pablo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Rodolfo Campero http://expertcoder.sourceforge.net/ ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Embedding mono
El sáb, 19-06-2004 a las 12:08, Joe Ante escribió: It sounds like you want a highly dynamic environment, in which existing code can be changed at runtime, with older code silently invoking newer code. I don't believe it's possible, or at least easily possible, to do this in C#. This sounds more like something System.Reflection.Emit and a custom compiler would be useful for. That way, you could ensure fast compile time, and you could come up with a custom way for pre-existing code to invoke newer code without requiring recompilation (interfaces might be good for this). Ok I think I formulated the problem not very well. I think its good enough to create one assembly for an island of scripts that somehow depend on each other. Very often in our engine we have the case that just 1-3 scripts depend on each other. So I want to make sure that when someone changes one of those 3 scripts, we will only recompile those 3 scripts and not every single script in the entire project. So I would like to have something like C's #include foobar.cs thingy, from which I can then generate a dependency list so that I know which files to recompile when the user saves a script. Am I completely off track and stuck in the C past with that idea? You can define modules instead of assemblies, and trace dependencies towards its source files using makefiles - you will have only one assembly made up of several modules. This way, instead of recompile the whole thing every time a source file changes, you can compile just the module. The result is the same as having a single assembly, but the compile time will decrease. How does monodevelop handle this? I mean when you change a single file in one project does monodevelop recompile every single .cs file that makes up the exe? Joachim Ante www.otee.dk ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Rodolfo Campero http://expertcoder.sourceforge.net/ ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] building mono from source
Below... From: Milan Konecny [EMAIL PROTECTED] Reply-To: Milan Konecny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] building mono from source Date: Thu, 17 Jun 2004 09:44:57 +0200 Hi, I try to install mono-0.96(Beta 3)! I use Mandrake 10.0! I didn't use linux before, but I want to see .NET code runnig on linux... Is there a way haw can I see if I install glib properly as well as pkgconfig??? I'm from Slovakia so sorry for my english and please don't give me advice like use redcarpet and download it from net, my notebook is not connected to internet, thanks!!! First I build glib-2.0.6: ./configure --prefix=/usr/local make make install then pkgconfig-0.15.0: ./configure --prefix=/usr/local make make install finnaly I try to buld mono but I get this error: ./configure --prefix=/usr/local Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found checking for glib-2.0 = 1.3.11... Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found configure: error: Library requirements (glib-2.0 = 1.3.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them. Just do that... I mean: echo $PKG_CONFIG_PATH will show you the list of paths where pkgconfig will look for libraries. If /usr/local/pkgconfig doesn't appear in the list, do export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/pkgconfig and try again. (syntax and/or paths may be wrong, I'm at work now and I don't have a Linux box to check) Thanks a lot! http://www.logofun.pobox.sk - urobte radost svojmu telefonu ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] building mono from source
From: Rodolfo Campero [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Mono-list] building mono from source Date: Thu, 17 Jun 2004 12:58:04 + Below... From: Milan Konecny [EMAIL PROTECTED] Reply-To: Milan Konecny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] building mono from source Date: Thu, 17 Jun 2004 09:44:57 +0200 Hi, I try to install mono-0.96(Beta 3)! I use Mandrake 10.0! I didn't use linux before, but I want to see .NET code runnig on linux... Is there a way haw can I see if I install glib properly as well as pkgconfig??? I'm from Slovakia so sorry for my english and please don't give me advice like use redcarpet and download it from net, my notebook is not connected to internet, thanks!!! First I build glib-2.0.6: ./configure --prefix=/usr/local make make install then pkgconfig-0.15.0: ./configure --prefix=/usr/local make make install finnaly I try to buld mono but I get this error: ./configure --prefix=/usr/local Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found checking for glib-2.0 = 1.3.11... Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found configure: error: Library requirements (glib-2.0 = 1.3.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them. Just do that... I mean: echo $PKG_CONFIG_PATH will show you the list of paths where pkgconfig will look for libraries. If /usr/local/pkgconfig doesn't appear in the list, do export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/pkgconfig and try again. (syntax and/or paths may be wrong, I'm at work now and I don't have a Linux box to check) Sorry I misunderstood, I meant to say: find the location of glib-2.0.pc and the rest of the files and add those paths to PKG_CONFIG_PATH. (man find). If you can't find those files, you will need to install the corresponding -devel packages. Thanks a lot! http://www.logofun.pobox.sk - urobte radost svojmu telefonu ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] POSGRESQL / NPGSQL / MONO / DATASET
Hello Kiorky, I know others in the list already told you this, but please, PLEASE, stop sending duplicated messages to the list and asking all the time the same question. Think about the forum as a live repository of problems and solutions: (most) other people only care about the problem and the solution. If someone ask you to send more info in private, please do it that way. Messages like have you solved it? add no value. One piece of advice: if you are using a web-based email service, go to your inbox folder immediately after sending a message; if you don't do this, your message will be sent every time the page reloads. Also check your spelling and write properly: that way will be easier for other people to find a solution to your problem using search engines. Finally, watch your language: it not only makes you look stupid, also some may find you are disrespectful with them about their work. With kind regards, Rodolfo From: KiOrKY [EMAIL PROTECTED] Reply-To: KiOrKY [EMAIL PROTECTED] To: Carlos Guzmán Álvarez [EMAIL PROTECTED],Francisco Figueiredo Jr. [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: [Mono-list] POSGRESQL / NPGSQL / MONO / DATASET Date: Tue, 8 Jun 2004 16:33:45 +0200 is iot whe you do dataapdter.fill( dataset) ; because its there i have problems ! _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-docs-list] HTML docs
El lun, 24-05-2004 a las 15:43, Joshua Tauberer escribió: Miguel de Icaza wrote: It means that by using HTML we are not using our own tools on a daily basis (like Gtk#, Monodoc, Mono's JIT) ;-) Shouldn't we also test the documentation tools? :) A chapter on `Documentation Tools' for the Monkeyguide is the right thing to do (it must be XHTML) In the works. Would it be okay if I hacked up Monodoc so that it can be use to edit documentation files stored locally? If people are going to use the new tools to document their own assemblies (like me), it would be helpful to edit the documentation with Monodoc's editing feature. What I'd like to do is add a command line option --local-edit [path-to-docs], which adds into the tree a HelpSource that accesses the XML files on disk. Going further with your idea, it would be nice to turn Monodoc into a collaborative documentation editor. This way, third party project admins could be able to add information about the location of its central documentation repository inside their monodoc files, and Monodoc would know where to send the patches. I imagine a pluggable mechanism for collaborative editing management, so changes can be sent to different targets: local file, web service, cvs repository, email (for projects without Internet hosting resources), etc. Do you think this make sense and is feasible? ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list
RE: [Mono-list] Installing mono from cvs
Inline... From: Pablo Chacin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] Installing mono from cvs Date: Sun, 16 May 2004 21:18:25 -0600 Hi all I downloaded the mono source following the instrucciones for non cvs download. The, I followed the instructions in the monkeyguide to install it. When I run the make command, I get this error: The monkeyguide is too old and has several inaccuracies, that's why it was pulled out from monodoc. The only supported way to build mono is, IIRC: make bootstrap make install Corlib not in sync with this runtime: expected corlib version 17, found 19. Dowload a never corlib or a newer runtime at http://go-mono.com/daily I tried to build mono from the cvs files. I ran first the configure comand and then make, but I got this error: cannot start /usr/local/bin/monoresgen.exe: No such file or directory If you're building from CVS, first you need to do: ./autogen.sh --prefix=/usr (or your preferred prefix) So, I don't have the proper mono corelib and I can't built it from the cvs. Now you need to download a monocharge from http://www.go-mono.com/daily/ thanks in advance _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Problem installing mono
Inline... From: Werner Kratochwil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] Problem installing mono Date: Tue, 11 May 2004 10:24:17 +0200 Hi! I tried to install mono on my Linux 9.0 system today. But I got the following dependency error: Failed dependencies: mono-posix = 0.91-0.ximian.8.3 is needed by mono-core-0.91-0.ximian.8.3 For the other dependencies I installed: * icu-2.6.1-1.ximian.8.5.i586.rpm * libicu26-2.6.1-1.ximian.8.5.i586.rpm I skipped the devel-version, because I thought it would be covered by the non-devel-version: * libicu-devel-2.6.1-1.ximian.8.5.i586.rpm Then I installed * mono-core-0.91-0.ximian.8.3.i586.rpm and I got the above dependency error. Any ideas? How do I get this posix module? You can get the rpms from http://www.go-mono.com/download.html Go to the packages section of your distro. IIRC you need to install mono-core and mono-posix at the same time, passing both filenames when you call rpm -ivh. I have tried to install older versions of mono before, but never made it. Could this cause the problem? I'd really like to get rid of Microsoft. It sucks. Nice regards Werner ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/ ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-docs-list] Problems with monodocer
Hello, I'm having some trouble with monodocer.exe. When I try to generate documentation stubs for my library, I get this: $ mono --debug /usr/bin/monodocer.exe --stub --assembly my.dll --dest `pwd` ** (/usr/bin/monodocer.exe:14826): WARNING **: Symbol file /usr/lib/mscorlib.dll is not a mono symbol file ** (/usr/bin/monodocer.exe:14826): WARNING **: Symbol file /usr/bin/monodocer.exe is not a mono symbol file System.NullReferenceException: A null value was found where an object instance was required. in 0x00109 Stub:DoStubAssembly (string,string) in 0x00247 Stub:Main (string[]) Files: 0, Members Added: 0, Members Deleted: 0 I see two problems here: 1) A problem related to mono symbol files. I saw a post in mono-devel-list (http://lists.ximian.com/archives/public/mono-devel-list/2004-February/003924.html) in which it is said that this is related to endianess issues, but in my case I have an i586 arch. 2) The problem with monodocer itself. Any help, hints or pointers regarding any of this issues will be appreciated. Regards, Rodolfo ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list
[Mono-list] building gecko-sharp 0.3 from tarball fails
Hello, I'm not able to compile gecko-sharp-0.3 from tarball. I need it in order to run monodevelop. This is the output I get: # make Making all in sources make[1]: Entering directory `/home/rodolfo/software/mono/gecko-sharp-0.3/sources' make[1]: No se hace nada para `all'. make[1]: Leaving directory `/home/rodolfo/software/mono/gecko-sharp-0.3/sources' Making all in gtkmozembed make[1]: Entering directory `/home/rodolfo/software/mono/gecko-sharp-0.3/gtkmozembed' cp ./gtkgecko-api.raw gtkgecko-api.xml chmod u+w gtkgecko-api.xml mono /usr/bin/gapi-fixup.exe --api=./gtkgecko-api.xml --metadata=./gtkgecko.metadata mono /usr/bin/gapi_codegen.exe --generate ./gtkgecko-api.xml --include /usr/share/gapi/gdk-api.xml /usr/share/gapi/gtk-api.xml /usr/share/gapi/atk-api.xml --outdir=generated --customdir=. --assembly-name=gecko-sharp touch generated-stamp Ellipsis parameter in ctor in Object Gtk.Widget Ellipsis parameter in ctor in Object Gtk.Object Generating mappers Generation Summary: Enums: 4 Structs: 0 Boxed: 0 Opaques: 0 Interfaces: 0 Objects: 2 Callbacks: 0 Properties: 0 Signals: 25 Methods: 22 Constructors: 0 Throttled: 2 Total Nodes: 55 cp ../crichtma.pub . mcs --unsafe --target library -L /usr/lib \ -r glib-sharp.dll -r gtk-sharp.dll -r gdk-sharp.dll \ ./NewWindowOrphan_handler.cs ./NewWindow_delegate.cs ./NewWindow_handler.cs ./AssemblyInfo.cs generated/*.cs -o gecko-sharp.dll ./NewWindowOrphan_handler.cs(10) error CS0246: Cannot find type `GtkSharp.SignalArgs' ./NewWindow_delegate.cs(12) error CS0246: Cannot find type `SignalCallback' ./NewWindow_handler.cs(10) error CS0246: Cannot find type `GtkSharp.SignalArgs' Compilation failed: 3 error(s), 0 warnings make[1]: *** [gecko-sharp.dll] Error 1 make[1]: Leaving directory `/home/rodolfo/software/mono/gecko-sharp-0.3/gtkmozembed' make: *** [all-recursive] Error 1 My system: mono, mcs gtk-sharp built from CVS. output from configure in mono: GC: included ICU: yes. Version: 2.8 NPTL:yes SIGALTSTACK: yes Engine: Building and using the JIT 2.0 Alpha: no JNI support: no Any ideas? (If this is not the right list please let me know.) TIA, Rodolfo _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] building gecko-sharp 0.3 from tarball fails
Thanks a lot John, I'll try to install both (gtk-sharp and gecko-sharp) from the same snapshot (cvs or tarball). From: John Luke [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-list] building gecko-sharp 0.3 from tarball fails Date: Fri, 07 May 2004 20:11:46 -0400 On Fri, 2004-05-07 at 22:27 +, Rodolfo Campero wrote: Hello, I'm not able to compile gecko-sharp-0.3 from tarball. I need it in order to run monodevelop. This is the output I get: # make Making all in sources make[1]: Entering directory `/home/rodolfo/software/mono/gecko-sharp-0.3/sources' make[1]: No se hace nada para `all'. make[1]: Leaving directory `/home/rodolfo/software/mono/gecko-sharp-0.3/sources' Making all in gtkmozembed make[1]: Entering directory `/home/rodolfo/software/mono/gecko-sharp-0.3/gtkmozembed' cp ./gtkgecko-api.raw gtkgecko-api.xml chmod u+w gtkgecko-api.xml mono /usr/bin/gapi-fixup.exe --api=./gtkgecko-api.xml --metadata=./gtkgecko.metadata mono /usr/bin/gapi_codegen.exe --generate ./gtkgecko-api.xml --include /usr/share/gapi/gdk-api.xml /usr/share/gapi/gtk-api.xml /usr/share/gapi/atk-api.xml --outdir=generated --customdir=. --assembly-name=gecko-sharp touch generated-stamp Ellipsis parameter in ctor in Object Gtk.Widget Ellipsis parameter in ctor in Object Gtk.Object Generating mappers Generation Summary: Enums: 4 Structs: 0 Boxed: 0 Opaques: 0 Interfaces: 0 Objects: 2 Callbacks: 0 Properties: 0 Signals: 25 Methods: 22 Constructors: 0 Throttled: 2 Total Nodes: 55 cp ../crichtma.pub . mcs --unsafe --target library -L /usr/lib \ -r glib-sharp.dll -r gtk-sharp.dll -r gdk-sharp.dll \ ./NewWindowOrphan_handler.cs ./NewWindow_delegate.cs ./NewWindow_handler.cs ./AssemblyInfo.cs generated/*.cs -o gecko-sharp.dll ./NewWindowOrphan_handler.cs(10) error CS0246: Cannot find type `GtkSharp.SignalArgs' ./NewWindow_delegate.cs(12) error CS0246: Cannot find type `SignalCallback' ./NewWindow_handler.cs(10) error CS0246: Cannot find type `GtkSharp.SignalArgs' Compilation failed: 3 error(s), 0 warnings make[1]: *** [gecko-sharp.dll] Error 1 make[1]: Leaving directory `/home/rodolfo/software/mono/gecko-sharp-0.3/gtkmozembed' make: *** [all-recursive] Error 1 My system: mono, mcs gtk-sharp built from CVS. output from configure in mono: GC: included ICU: yes. Version: 2.8 NPTL:yes SIGALTSTACK: yes Engine: Building and using the JIT 2.0 Alpha: no JNI support: no Any ideas? (If this is not the right list please let me know.) TIA, Rodolfo Looks like you have Gtk# from cvs which wont work with that tarball, either get gecko-sharp from cvs also, or use tarballs of both. (it was changed from GtkSharp.Signal* to GLib.Signal* I think) _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] building gecko-sharp 0.3 from tarball fails
Finally I built everything from the released tarballs (beta 1), and I got monodevelop up and running! BTW, it looks very nice. This may be helpful for others: I had to go with the tarballs because the released monodevelop 0.3 doesn't work with current gtk-sharp from CVS. Thanks again, Rodolfo From: Rodolfo Campero [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-list] building gecko-sharp 0.3 from tarball fails Date: Sat, 08 May 2004 00:17:45 + Thanks a lot John, I'll try to install both (gtk-sharp and gecko-sharp) from the same snapshot (cvs or tarball). From: John Luke [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-list] building gecko-sharp 0.3 from tarball fails Date: Fri, 07 May 2004 20:11:46 -0400 On Fri, 2004-05-07 at 22:27 +, Rodolfo Campero wrote: Hello, I'm not able to compile gecko-sharp-0.3 from tarball. I need it in order to run monodevelop. This is the output I get: # make Making all in sources make[1]: Entering directory `/home/rodolfo/software/mono/gecko-sharp-0.3/sources' make[1]: No se hace nada para `all'. make[1]: Leaving directory `/home/rodolfo/software/mono/gecko-sharp-0.3/sources' Making all in gtkmozembed make[1]: Entering directory `/home/rodolfo/software/mono/gecko-sharp-0.3/gtkmozembed' cp ./gtkgecko-api.raw gtkgecko-api.xml chmod u+w gtkgecko-api.xml mono /usr/bin/gapi-fixup.exe --api=./gtkgecko-api.xml --metadata=./gtkgecko.metadata mono /usr/bin/gapi_codegen.exe --generate ./gtkgecko-api.xml --include /usr/share/gapi/gdk-api.xml /usr/share/gapi/gtk-api.xml /usr/share/gapi/atk-api.xml --outdir=generated --customdir=. --assembly-name=gecko-sharp touch generated-stamp Ellipsis parameter in ctor in Object Gtk.Widget Ellipsis parameter in ctor in Object Gtk.Object Generating mappers Generation Summary: Enums: 4 Structs: 0 Boxed: 0 Opaques: 0 Interfaces: 0 Objects: 2 Callbacks: 0 Properties: 0 Signals: 25 Methods: 22 Constructors: 0 Throttled: 2 Total Nodes: 55 cp ../crichtma.pub . mcs --unsafe --target library -L /usr/lib \ -r glib-sharp.dll -r gtk-sharp.dll -r gdk-sharp.dll \ ./NewWindowOrphan_handler.cs ./NewWindow_delegate.cs ./NewWindow_handler.cs ./AssemblyInfo.cs generated/*.cs -o gecko-sharp.dll ./NewWindowOrphan_handler.cs(10) error CS0246: Cannot find type `GtkSharp.SignalArgs' ./NewWindow_delegate.cs(12) error CS0246: Cannot find type `SignalCallback' ./NewWindow_handler.cs(10) error CS0246: Cannot find type `GtkSharp.SignalArgs' Compilation failed: 3 error(s), 0 warnings make[1]: *** [gecko-sharp.dll] Error 1 make[1]: Leaving directory `/home/rodolfo/software/mono/gecko-sharp-0.3/gtkmozembed' make: *** [all-recursive] Error 1 My system: mono, mcs gtk-sharp built from CVS. output from configure in mono: GC: included ICU: yes. Version: 2.8 NPTL:yes SIGALTSTACK: yes Engine: Building and using the JIT 2.0 Alpha: no JNI support: no Any ideas? (If this is not the right list please let me know.) TIA, Rodolfo Looks like you have Gtk# from cvs which wont work with that tarball, either get gecko-sharp from cvs also, or use tarballs of both. (it was changed from GtkSharp.Signal* to GLib.Signal* I think) _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] CVS compile errors :(
Thanks a lot Pablo, it worked! From: Pablo Baena [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [Mono-list] CVS compile errors :( Date: Sun, 2 May 2004 07:30:39 + Try automake1.7. Worked for me- On Friday 30 April 2004 23:29, Rodolfo Campero wrote: I tried to update my installation to the lastest CVS, in order to see if I have the same problem that Andrew, but I'm stuck in an earlier step: $ ./autogen.sh --prefix=/usr/local Running libtoolize... Running aclocal ... Running autoheader... configure.in:681: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:781: warning: AC_TRY_RUN called without default to allow cross compiling Running automake --gnu ... runtime/Makefile.am:9: invalid variable `dist_monobins_DATA' runtime/net_1_1/Makefile.am:81: invalid variable `dist_assemblies_DATA' runtime/net_1_1/Makefile.am:73: invalid variable `dist_corlib_DATA' runtime/net_2_0/Makefile.am:81: invalid variable `dist_assemblies_DATA' runtime/net_2_0/Makefile.am:73: invalid variable `dist_corlib_DATA' **Error**: automake failed. I have a fresh Mandrake 10 CE install. $ pkg-config --version 0.15.0 $ automake --version automake (GNU automake) 1.4-p6 $ autoconf --version Autoconf version 2.13 Does anyone have a clue about this? Do I need a newer automake? Another question: do you know where can I found an rpm with gtkhtml3 for mdk10? TIA, Rodolfo From: Andrew Arnott [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED],[EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Date: Fri, 30 Apr 2004 13:40:27 -0600 I tried downloading a MonoLite, then a MonoCharge, and finally the whole mono snapshot of the day. Now I have the binaries to the latest mscorlib.dll and mcs.exe, but mcs.exe won't run because the runtime (mono) is out of sync with mscorlib.dll I cannot find the mono executable anywhere in the snapshot (it's not with the other .exe's in the snapshot). How can I get a binary of the latest runtime? How can I compile it with a broken compiler? Sorry for the newbie'ish questions. -Original Message- From: Rodolfo Campero [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 1:30 PM To: Andrew Arnott; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( You can pick a binary snapshot from http://www.go-mono.com/daily/ In your case, maybe a monolite will do, but if it's not enaugh download a monocharge. From: Andrew Arnott [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Date: Fri, 30 Apr 2004 13:12:53 -0600 So this is my round-robin problem. I can't compile the new mscorlib.dll or mcs.exe because I am using the old one (0.31.00) to compile the new ones. The old one can't manage it because of the bug. I can't get the new one because it won't compile. How can this be solved? Do I just need to get a built copy from someone? (will someone volunteer?) Thanks. From: Sebastien Pouliot [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 9:01 AM To: Andrew Arnott; [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Andrew You get this because you have an older mscorlib.dll or mcs.exe (which had that bug). That may come from a previous Mono installation (like 0.31). Sebastien Pouliot http://pages.infinit.net/ctech/poupou.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrew Arnott Sent: 30 avril 2004 09:19 To: [EMAIL PROTECTED] Subject: [Mono-list] CVS compile errors :( So this is my first time compiling CVS. I finally read the INSTALL file and found out I have to run ./autoconf before building. Well, that worked well enough. But make fullbuild crashes with an exception thrown by mcs. I get this (after the memory warnings mentioned in my previous email). Can you tell me what I'm doing wrong? Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. In 0x0002e Mono.Security.Cryptography.CryptoConvert:ToCapiKeyBlob (System.Security.Cryptography.RSA,bool) In 0x00032 Mono.Security.StrongName:get_PublicKey () In 0x00769 System.Reflection.Emit.AssemblyBuilder:Save (string) In 0x00036 Mono.CSharp.CodeGen:Save (string) In 0x014cb Mono.CSharp.Driver:MainDriver (string[]) In 0x00020 Mono.CSharp.Driver:Main (string[]) _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Buiding from CVS requires existing gacutil.exe
Hello, I'm trying to build mono from CVS, but the compilation fails while making all in runtime: Making all in runtime make[2]: Entering directory `/home/rodolfo/anoncvs/mono/runtime' Making all in . make[3]: Entering directory `/home/rodolfo/anoncvs/mono/runtime' cp -f /usr/local/bin/gacutil.exe . cp: no se puede efectuar `stat' sobre «/usr/local/bin/gacutil.exe»: No such file or directory make[3]: *** [gacutil.exe] Error 1 make[3]: Leaving directory `/home/rodolfo/anoncvs/mono/runtime' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/rodolfo/anoncvs/mono/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rodolfo/anoncvs/mono' make: *** [all] Error 2 Does this means that a working gacutil is needed in order to build mono? I'm downloading a monocharge as I write this email, but I wonder if this behavior is by design. Best regards, Rodolfo _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] CVS compile errors :(
You can pick a binary snapshot from http://www.go-mono.com/daily/ In your case, maybe a monolite will do, but if it's not enaugh download a monocharge. From: Andrew Arnott [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Date: Fri, 30 Apr 2004 13:12:53 -0600 So this is my round-robin problem. I can't compile the new mscorlib.dll or mcs.exe because I am using the old one (0.31.00) to compile the new ones. The old one can't manage it because of the bug. I can't get the new one because it won't compile. How can this be solved? Do I just need to get a built copy from someone? (will someone volunteer?) Thanks. From: Sebastien Pouliot [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 9:01 AM To: Andrew Arnott; [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Andrew You get this because you have an older mscorlib.dll or mcs.exe (which had that bug). That may come from a previous Mono installation (like 0.31). Sebastien Pouliot http://pages.infinit.net/ctech/poupou.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrew Arnott Sent: 30 avril 2004 09:19 To: [EMAIL PROTECTED] Subject: [Mono-list] CVS compile errors :( So this is my first time compiling CVS. I finally read the INSTALL file and found out I have to run ./autoconf before building. Well, that worked well enough. But make fullbuild crashes with an exception thrown by mcs. I get this (after the memory warnings mentioned in my previous email). Can you tell me what I'm doing wrong? Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. In 0x0002e Mono.Security.Cryptography.CryptoConvert:ToCapiKeyBlob (System.Security.Cryptography.RSA,bool) In 0x00032 Mono.Security.StrongName:get_PublicKey () In 0x00769 System.Reflection.Emit.AssemblyBuilder:Save (string) In 0x00036 Mono.CSharp.CodeGen:Save (string) In 0x014cb Mono.CSharp.Driver:MainDriver (string[]) In 0x00020 Mono.CSharp.Driver:Main (string[]) _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] CVS compile errors :(
I tried to update my installation to the lastest CVS, in order to see if I have the same problem that Andrew, but I'm stuck in an earlier step: $ ./autogen.sh --prefix=/usr/local Running libtoolize... Running aclocal ... Running autoheader... configure.in:681: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:781: warning: AC_TRY_RUN called without default to allow cross compiling Running automake --gnu ... runtime/Makefile.am:9: invalid variable `dist_monobins_DATA' runtime/net_1_1/Makefile.am:81: invalid variable `dist_assemblies_DATA' runtime/net_1_1/Makefile.am:73: invalid variable `dist_corlib_DATA' runtime/net_2_0/Makefile.am:81: invalid variable `dist_assemblies_DATA' runtime/net_2_0/Makefile.am:73: invalid variable `dist_corlib_DATA' **Error**: automake failed. I have a fresh Mandrake 10 CE install. $ pkg-config --version 0.15.0 $ automake --version automake (GNU automake) 1.4-p6 $ autoconf --version Autoconf version 2.13 Does anyone have a clue about this? Do I need a newer automake? Another question: do you know where can I found an rpm with gtkhtml3 for mdk10? TIA, Rodolfo From: Andrew Arnott [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED],[EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Date: Fri, 30 Apr 2004 13:40:27 -0600 I tried downloading a MonoLite, then a MonoCharge, and finally the whole mono snapshot of the day. Now I have the binaries to the latest mscorlib.dll and mcs.exe, but mcs.exe won't run because the runtime (mono) is out of sync with mscorlib.dll I cannot find the mono executable anywhere in the snapshot (it's not with the other .exe's in the snapshot). How can I get a binary of the latest runtime? How can I compile it with a broken compiler? Sorry for the newbie'ish questions. -Original Message- From: Rodolfo Campero [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 1:30 PM To: Andrew Arnott; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( You can pick a binary snapshot from http://www.go-mono.com/daily/ In your case, maybe a monolite will do, but if it's not enaugh download a monocharge. From: Andrew Arnott [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Date: Fri, 30 Apr 2004 13:12:53 -0600 So this is my round-robin problem. I can't compile the new mscorlib.dll or mcs.exe because I am using the old one (0.31.00) to compile the new ones. The old one can't manage it because of the bug. I can't get the new one because it won't compile. How can this be solved? Do I just need to get a built copy from someone? (will someone volunteer?) Thanks. From: Sebastien Pouliot [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 9:01 AM To: Andrew Arnott; [EMAIL PROTECTED] Subject: RE: [Mono-list] CVS compile errors :( Andrew You get this because you have an older mscorlib.dll or mcs.exe (which had that bug). That may come from a previous Mono installation (like 0.31). Sebastien Pouliot http://pages.infinit.net/ctech/poupou.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrew Arnott Sent: 30 avril 2004 09:19 To: [EMAIL PROTECTED] Subject: [Mono-list] CVS compile errors :( So this is my first time compiling CVS. I finally read the INSTALL file and found out I have to run ./autoconf before building. Well, that worked well enough. But make fullbuild crashes with an exception thrown by mcs. I get this (after the memory warnings mentioned in my previous email). Can you tell me what I'm doing wrong? Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. In 0x0002e Mono.Security.Cryptography.CryptoConvert:ToCapiKeyBlob (System.Security.Cryptography.RSA,bool) In 0x00032 Mono.Security.StrongName:get_PublicKey () In 0x00769 System.Reflection.Emit.AssemblyBuilder:Save (string) In 0x00036 Mono.CSharp.CodeGen:Save (string) In 0x014cb Mono.CSharp.Driver:MainDriver (string[]) In 0x00020 Mono.CSharp.Driver:Main (string[]) _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-docs-list] Translator from monodoc XML format to Microsoft XML format
FYI From: Rodolfo Campero [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED],[EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Mono-list] Question about attributes Date: Thu, 29 Apr 2004 13:37:28 + Hi Joshua, I already know XSLT, so I will give it a shot this afternoon (it's 10:30 am here in Argentina, I will start working on it at 19:00). Also I will subscribe to mono-docs-list right now, so I will posts questions there if I have to. I would like to know who should I refer to when I get something usable, in order to make it part of mono or monodoc. Best regards, Rodolfo From: Joshua Tauberer [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Mono-list] Question about attributes Date: Thu, 29 Apr 2004 09:21:26 -0400 Rodolfo Campero wrote: I don't know if there is some effort to create a translator from monodoc XML format to Microsoft XML documentation format. That would be nice, because one could use NDoc to generate files for Windows users. Does anyone knows about such a tool? Since this has come up so many times, I'll work on it when I get the chance. (As I keep repeating on the docs list, the two formats are so similar that it would be trivial for anyone to learn XSLT, if necessary, and write the conversion themselves if they wanted it. It would also make a nice project if someone is looking for a way to contribute to Mono.) -- - Joshua Tauberer http://taubz.for.net ** Nothing Unreal Exists ** _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list
Re: [Mono-docs-list] Translator from monodoc XML format to Microsoft XML format
I don't know how long will take to do that; I will try first to do a stand alone application, and then I will check NDoc documentation in order to evaluate if I can do the documenter. If I decide to jump into that second task, I will ask Kevin if I need some help or explanation. From: Gert Driesen [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED],[EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-docs-list] Translator from monodoc XML format to Microsoft XML format Date: Thu, 29 Apr 2004 15:57:16 +0200 Hi, Kevin Downs (NDoc team) has already started working on an NDoc documenter that will convert MS XML format to Monodoc. It would be great if the conversion from Monodoc (ECMA) to MS XML format could be implemented as an NDoc documenter too. Gert - Original Message - From: Rodolfo Campero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 29, 2004 3:45 PM Subject: [Mono-docs-list] Translator from monodoc XML format to Microsoft XML format FYI From: Rodolfo Campero [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED],[EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Mono-list] Question about attributes Date: Thu, 29 Apr 2004 13:37:28 + Hi Joshua, I already know XSLT, so I will give it a shot this afternoon (it's 10:30 am here in Argentina, I will start working on it at 19:00). Also I will subscribe to mono-docs-list right now, so I will posts questions there if I have to. I would like to know who should I refer to when I get something usable, in order to make it part of mono or monodoc. Best regards, Rodolfo From: Joshua Tauberer [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Mono-list] Question about attributes Date: Thu, 29 Apr 2004 09:21:26 -0400 Rodolfo Campero wrote: I don't know if there is some effort to create a translator from monodoc XML format to Microsoft XML documentation format. That would be nice, because one could use NDoc to generate files for Windows users. Does anyone knows about such a tool? Since this has come up so many times, I'll work on it when I get the chance. (As I keep repeating on the docs list, the two formats are so similar that it would be trivial for anyone to learn XSLT, if necessary, and write the conversion themselves if they wanted it. It would also make a nice project if someone is looking for a way to contribute to Mono.) -- - Joshua Tauberer http://taubz.for.net ** Nothing Unreal Exists ** _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list
Re: [Mono-list] Question about attributes
I know that you can document your apps with monodoc related tools; there is a tool that can generate a set of XML files from your code, then you can fill this files with your documentation. Later you can keep the file structure updated with your code using another tool. Monodoc understands and can display documentation in this format. I don't know if there is some effort to create a translator from monodoc XML format to Microsoft XML documentation format. That would be nice, because one could use NDoc to generate files for Windows users. Does anyone knows about such a tool? Rodolfo From: [EMAIL PROTECTED] To: [EMAIL PROTECTED],Jonathan Stowe [EMAIL PROTECTED] Subject: Re: [Mono-list] Question about attributes Date: Thu, 29 Apr 2004 13:35:07 +0200 Ok, so there is no recommendation about attributes to use in mono for documentation... I don't want using XML tags as it doesn't work with VB.Net by default (I think...) and you have to deliver : assembly and XML file ... So I will create some attributes ! Thanks for all the answer ! Thierry Selon Jonathan Stowe [EMAIL PROTECTED]: On Thu, 2004-04-29 at 07:56, [EMAIL PROTECTED] wrote: Hi, First : Thanks for the explanation ;-) But my question what about which attributes using in order to document methods or function in my code. For example, if you want the Visual Studio .Net Property Panel to be able to display info about your properties you have to use System.ComponentModel.Description(The description). You can do just the same with mono: using System; using System.ComponentModel; class MyTest { [Description(Test)] public void whatever() { } } Will work (i.e. compile) just fine. Whether or not it is any use is whether the tools you want to use can get at this information. The DescriptionAttribute is used for design time purposes (i.e. to display in the properties panel of a visual tool) rather than strictly for documentation, if you want to autogenerate documentation from your code you might me better of using the XML documentation comments rather than this. Of course you can create your own attributes by inheriting from System.Attribute as documented on MSDN and elsewhere. /J\ This is a Visual Studio .Net rules. Now my question is : of I want to add documention to my methods, class etc... which meta-attributes do I use ? Maybe there is no dedicated attributes and I will have to create my owns... Thierry ! Selon Jonathan Pryor [EMAIL PROTECTED]: On Wed, 2004-04-28 at 16:46, Xiii29 wrote: I've question about attributes in Mono. I would like to comment my assemblys by using attributes (meta-attributes...) and i'm wondering if there is rules (or preconisations...) about which attributes using... I'm pretty sure I don't understand your question at all. But I'll take a shot anyway... To use an assembly-level attribute, you need to explicitly specify what the attribute is associated with. For example: [assembly: AssemblyTitle (my title)] [assembly: AssemblyVersion (1.0.*)] The assembly: indicates that the attribute applies to the assembly. Otherwise it would apply to the next member listed in the file (delegate, class, structure, etc.) or generate an error (namespaces don't support attributes). Similar things can be done for other elements; for example: return: can be used to place an attribute on the return type of a method, while normally the attribute applies to the method itself: [SomeAttribute (applies to MyMethod)] [return: SomeAttribute (applies to the return type)] int MyMethod () {return 42;} As for general rules... You can only use attributes which can be applied to an assembly; that is, the attribute you're trying to use must itself have an AttributeUsage attribute with AttributeTargets.Assembly specified. Not all attributes do this; the DllImport attribute, for example, can only be applied to methods. Aside from that, the normal attribute restrictions apply. Which means that attribute positional and named parameters can only be: one of the CLS-compliant built-in types (bool, byte, char, double, float, int, long, short, string); System.Type, an enum type; System.Object; or an array of one of the previous types. See a good C# book, or MSDN, or google, for more information. - Jon ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ Add
Re: [Mono-list] Question about attributes
Hi Joshua, I already know XSLT, so I will give it a shot this afternoon (it's 10:30 am here in Argentina, I will start working on it at 19:00). Also I will subscribe to mono-docs-list right now, so I will posts questions there if I have to. I would like to know who should I refer to when I get something usable, in order to make it part of mono or monodoc. Best regards, Rodolfo From: Joshua Tauberer [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Mono-list] Question about attributes Date: Thu, 29 Apr 2004 09:21:26 -0400 Rodolfo Campero wrote: I don't know if there is some effort to create a translator from monodoc XML format to Microsoft XML documentation format. That would be nice, because one could use NDoc to generate files for Windows users. Does anyone knows about such a tool? Since this has come up so many times, I'll work on it when I get the chance. (As I keep repeating on the docs list, the two formats are so similar that it would be trivial for anyone to learn XSLT, if necessary, and write the conversion themselves if they wanted it. It would also make a nice project if someone is looking for a way to contribute to Mono.) -- - Joshua Tauberer http://taubz.for.net ** Nothing Unreal Exists ** _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Question on core test support in Mono
IIRC there is a module called monocov in CVS. I took a look at it some time ago, but I can't remember right now who made it. Check it out and see if it fulfill your needs. Cheers, Rodolfo From: David P. Bowler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Mono-list] Question on core test support in Mono Date: Mon, 29 Mar 2004 07:41:14 -0600 Just thought I'd re-ask and elaborate a bit... I am not talking about Nunit type tools, those are great for understanding the success/failure of tests... I am talking about innate profiling to easily understand that all functions within a project have been covered by a test. The term in question is Code-Coverage and it is simply a way of knowing during the running of a test-suite that all of the code has been excercised. It has nothing to do with the success or failure of the tests calling the code. In test-driven development, writing test cases is easy. Knowing that you have written enough test cases is not. All too often portions of the code are missed or some conditions are not met, so entire sub-sections are never excercised. So, having elaborated what I meant, can anyone tell me if there is any such support existing or planned for Mono? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David P. Bowler Sent: Friday, March 26, 2004 10:27 AM To: [EMAIL PROTECTED] Subject: [Mono-list] Question on core test support in Mono Hello... I just read an article in MSDN magazine about writing profiler DLLs for dotNet that you can tailor to your individual apps to ensure that your test programs cover 100% of your code. The profilers simply filter out calls to the CLR based upon some criteria built in and they write out listings of all functions or even blocks of code that have been hit when running a test program. Unfortunately for dotNet in this instance, this is something that must be written and on a per application basis if you are into hard-core test-driven development and want to PROVE that your tests give you 100% code-coverage. So, what I am wondering is if Mono currently has this or if there is any intent to put supportiong functionality like this in at the CLR level that can optionally be turned on to help test-driven code-coverage oriented development? Cheers, David ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Platform comparison
Hi Jochen, Instead of hard-coding the separator char, you can use System.IO.Path.DirectorySeparatorChar. I don't know any guideline, but in general if you are about to do something that you think is not platform-independent, search a bit because is almost sure that there is a platform-independent way to do it. Regards, Rodolfo From: Jochen Wezel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] Platform comparison Date: Mon, 8 Mar 2004 14:37:41 +0100 Hello together! Is there a comparison or guideline for the several platforms regarding what we developers have to pay attention to? For example, Linux uses / as directory separator char, Windows uses \, but what about Mac OS (X)? Or maybe there are other points which are good to know? Jochen ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] mod_mono and DasBlog difficulties / stack trace with line numbers
Hi, How do I get line numbers in the stack trace? I already modified the makefile to include the -g and --debug switches, but still nothing.. You should add the --debug switch when launching mono at runtime (for xsp I think), besides compiling with the -g switch. _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] [off-topic] mailman anti-spam
I'm sorry for this off-topic, but I would suggest to configure the mailman of these lists with Show member addrs so they're not directly recognisable as email addrs? (Privacy Options) set to Yes. I totally agree. In the last few days, I found that someone was using my email address in the From field to send a virus. This also happened to other people in the list. I'm sure that this kind of measures aren't enaugh to stop spam and other related problems, but at least is something. _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Bug related to operator += and instance fields
Hello everybody, I've found a bug, but I'm not sure about how to report it (I mean I can't find a suitable subject and other info): The following source code compiles but its execution results in incorrect behavior: code using System; namespace Test { public class A { public static void Main () { A a = new A (); a.Test (); } public void Test () { A a = new A (); // the following is the problematic line _intValue += a.Value + a.Value / 2; Console.WriteLine (_intValue); } private int _intValue; public readonly int Value = 100; } } /code The actual result is 50 but I think it should be 150. I need someone to give me instructions about the affected product (Mono/Compilers or Mono/Runtime or ...) and a suitable subject if possible, or to tell me that this is not a bug and I'm plain wrong :-) If someone can file the bug report for me it's ok too. TIA, Rodolfo _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Bug related to operator += and instance fields
Thanks Marcus! El sáb, 21 de 02 de 2004 a las 22:09, Marcus escribió: It appears to be a mono runtime bug. Note that it disappears with -O=all or using the Mono interpreter (mint) instead. I filed a bug report: http://bugs.ximian.com/show_bug.cgi?id=54710 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Maths
I get the same results with csc from MS .NET 1.0. From: Jochen Wezel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] Maths Date: Mon, 9 Feb 2004 19:14:20 +0100 Hi! Has anybody seen that behaviour yet which is produced by MS .Net? When rounding doubles to integer, there is a rounding error: Console.WriteLine(Convert.ToInt32(1.5)) 'is 2 - should be 2 Console.WriteLine(Convert.ToInt32(2.5)) 'is 2 - should be 3 This may be important for those guys who are programming in that area... Jochen _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] A question about interfaces
Hello all, I have a question about interfaces. I tried to compile the following program: listing namespace InterfaceTests { interface ITop { int Count { get; } } interface ILeft: ITop {} interface IRight: ITop {} interface IBottom: ILeft, IRight {} class Test { public static void Main () {} public void Testing (IBottom test) { int a = test.Count; } } } /listing but I got a CS0122 error: interfaces.cs(16) error CS0122: `InterfaceTests.IBottom.Count' is inaccessible due to its protection level Compilation failed: 1 error(s), 0 warnings I wonder why IBottom.Count is inaccessible, given the fact that neither ILeft nor IRight hide this property. I've read the documentation, and in ECMA-334 C# Language Specification, section 20.1.2: Base interfaces, there is a similar example involving IControl, ITextBox, IListBox and IComboBox, and the example states: the IComboBox interface above inherits members SetText and SetItems as well as Paint. In the example, Paint is defined in the basic interface (IControl). And then in 20.2, The members of an interface are the members inherited from the base interfaces and the members declared by the interface itself. From 20.4.2: When a class implements multiple interfaces that have the same base interface, there can be only one implementation of the base interface. Apparently the property Count in my example shouldn't be hidden in the interface IBottom, yet I'm getting an error. Is this a bug in mcs or am I missing something? TIA, Rodolfo Campero PS: BTW, is this the right list to ask this kind of questions, or would mono-devel-list be more appropriate? _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Mono Runtime 0.30 compile error
I had a similar problem in the past, after I reinstalled my OS, and was because I forgot to add /usr/local/lib to the load library path. Are you sure that libicui18n can be found in the paths declared in LD_LIBRARY_PATH or /etc/ld.config? I hope this helps. Greetings, Rodolfo From: Luke Stephenson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] Mono Runtime 0.30 compile error Date: Tue, 3 Feb 2004 02:49:02 -0500 I was busy setting up .29, and I had just finished testing out a simple helloworld, when I noticed .30 was released. So I unroll .29 and remove it completely. Download .30. Configure worked perfectly, detecting ICU, etc. However when trying to make I receive: Making all in mini make[3]: Entering directory `/root/program_dls/mono-0.30/mono/mini' ./genmdesc ./cpu-pentium.md cpu-pentium.h pentium_desc ./genmdesc: error while loading shared libraries: libicui18n.so.26: cannot open shared object file: No such fileor directory make[3]: *** [cpu-pentium.h] Error 127 After some searching, it looks like there was a common related problem last spring/summer surrounding this, and I was wondering if someone could help me out. Thanks a lot, Luke ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] XmlConvert: Possible bug fix - ToSingle, ToDouble using current system culture
Hi all, I've found what I think is a bug in System.Xml.XmlConvert. The methods ToSingle and ToDouble are currently parsing string values using the current system culture, and according to the documentation, this methods should be locale independent. I prepared a patch, which solves the problem. Cheers, Rodolfo --- XmlConvert.cs.original 2004-02-03 21:33:31.0 +0100 +++ XmlConvert.cs 2004-02-03 21:47:32.0 +0100 @@ -247,7 +247,7 @@ return Double.NegativeInfinity; if (s == NaN) return Double.NaN; - return Double.Parse (s, floatStyle); + return Double.Parse (s, floatStyle, CultureInfo.InvariantCulture); } public static Guid ToGuid(string s) @@ -286,7 +286,7 @@ return Single.NegativeInfinity; if (s == NaN) return Single.NaN; - return Single.Parse(s, floatStyle); + return Single.Parse(s, floatStyle, CultureInfo.InvariantCulture); } public static string ToString(Guid value) _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Convert VS Projekt to Mono
Hi all, hi! Is ist possible to convert MS VS.NET Projekt files to Makefiles for Mono ? To compile project with mcs than. You may find this useful: http://www.mail-archive.com/[EMAIL PROTECTED]/msg03772/slntomake.cs cheers, Rodolfo _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Differences between Gtk#and System.Windows.Forms
Check this out: http://lists.ximian.com/archives/public/mono-winforms-list/2003-September/000481.html From: Alejandro Ospina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Mono-list] Differences between Gtk#and System.Windows.Forms Date: Wed, 26 Nov 2003 13:15:53 -0500 Hi!. I was wondering what are the differences between an application made whit Gtk# an another one made with System.Windows.Forms. Is System.Windows.Forms a binding to the Gtk# librarys? Thanks! ¡Hasta pronto! Atentamente, Alejandro Ospina Nueva Escuela Teléfono: (57)(4) 264 84 55 Fax: (57)(4) 425 02 40 www.nuevaescuela.com http://www.nuevaescuela.com/ [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Possible mcs bug: CS0019 detected for comparable instances
Hello Miguel, From: Miguel de Icaza [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-list] Possible mcs bug: CS0019 detected for comparableinstances Date: 19 Oct 2003 16:11:33 -0400 Hello, I'm trying to port an application I'm developing at work. Over there we use Microsoft .Net SDK. When I tried to compile it in mono I got: error CS0019: Operator != cannot be applied to operands of type `xxx' and `yyy' From my reading of the ECMA spec, this is a bug in the Microsoft C# compiler. Section 14.9.6 Reference type equality operators states that there must be a standard implicit conversion from the type of either operand to the type of the other operand. Yes, you're right, I think I jumped over that statement when I read the spec... I filed the bug report because it works in Microsoft's csc, and I missintepreted the following quote (also from 14.9.6): It is a compile-time error to use the predefined reference type equality operators to compare two references that are known to be different at compile-time. I got confused by the part that reads ...that are *known* to be different at compile-time. In fact, as I wrote in a later email, is not possible to state at compile-time if an object referenced through the interface of a class not sealed implements another interface. But what I was missing is that the quoted text is just an implication of the rule; just because two references are _not known_ to be different at compile-time doesn't means that is OK to compare them directly. Anyway, casting explicitly to object any of the two references that I'm trying to compare does the trick. I apologise for the bug report, I should have been more careful and read the spec thoroughly. Sorry for the inconvenience. Miguel I've narrowed down the problem and the smallest program which reproduces the error is the following one: using System; namespace Test { public class Test { public static void Main(string[] args) { BaseClass baseRef = new DerivedClass(); ITest interfaceRef = (ITest)baseRef; Console.WriteLine(Is this wrong? {0}, (interfaceRef!=baseRef)); } } public interface ITest {} public class BaseClass {} public class DerivedClass: BaseClass, ITest {} } ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list Yours sincerely, Rodolfo _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Possible mcs bug: CS0019 detected for comparable instances
Hello, Thanks Dave and Rahul for validate this problem. I already filed a bug report. I think the problem may be related to this snippet taken from ECMA-334, section 14.9.6: It is a compile-time error to use the predefined reference type equality operators to compare two references that are known to be different at compile-time. For example, if the compile-time types of the operands are two class types A and B, and if neither A nor B derives from the other, then it would be impossible for the two operands to reference the same object. Thus, the operation is considered a compile-time error. Maybe the implementation considers an interface as a regular class, and given the fact that the base class doesn't implement it, mcs complains with CS0019; but in fact nothing can be said about an instance referenced through an interface. Just my 2 cents in my lurker opinion, I didn't even looked at the code... Greetings and thanks again, Rodolfo _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] String.Join NullReferenceException
Hi, I've found something that maybe is a bug. When I run the following program: using System; namespace Test { public class TestJoin { public static void Main(string[] args) { string[] array = new string[] {hello , null, world!}; Console.WriteLine(String.Join(String.Empty, array)); } } } I get the following error: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required I've tested the same program at work, with Microsoft's SDK (1.0), and it prints the well-known hello world! message. Is this a bug? can someone corroborate it under mono and under .NET 1.1? If that's the case, I'll be happy to write a test case (please indicate me where) and fill a form in bugzilla. I tried to follow the implementation in String.cs, but the actual implementation is somewhere else; so I guess the fix may require more knowledge than I have... Thanks, Rodolfo _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] String.Join NullReferenceException
Done. El jue, 09 de 10 de 2003 a las 21:57, Jackson Harper escribi: Hello, Could you please file a bug report? Thank you, Jackson On Thu, 2003-10-09 at 17:46, Eduardo Osorio Armenta wrote: OK net 1.1 E:\eduardo\prog\mono\c#\testcsc test.cs Versin del compilador de Microsoft (R) Visual C# .NET7.10.3052.4 para Microsoft (R) .NET Framework versin 1.1.4322 (C) Microsoft Microsoft Corporation 2001-2002. Reservados todos los derechos. E:\eduardo\prog\mono\c#\testtest hello world! --- Rodolfo Campero [EMAIL PROTECTED] wrote: Hi, I've found something that maybe is a bug. When I run the following program: using System; namespace Test { public class TestJoin { public static void Main(string[] args) { string[] array = new string[] {hello , null, world!}; Console.WriteLine(String.Join(String.Empty, array)); } } } I get the following error: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required I've tested the same program at work, with Microsoft's SDK (1.0), and it prints the well-known hello world! message. Is this a bug? can someone corroborate it under mono and under .NET 1.1? If that's the case, I'll be happy to write a test case (please indicate me where) and fill a form in bugzilla. I tried to follow the implementation in String.cs, but the actual implementation is somewhere else; so I guess the fix may require more knowledge than I have... Thanks, Rodolfo _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] SLNToMake - embedded resources
Hi all, Here is a modified version of Jarek's SLNToMake. Now it can handle embedded resources. I've also fixed a small bug, see the usage of System.IO.Path.Combine instead of xxx + slash + yyy. I hope you will find this helpful. Cheers, Rodolfo _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail slntomake.cs Description: Binary data
[Mono-list] monodoc - NullReferenceException when item choosed in topics tree
Hello, I get the following exception when I try to see the documentation of a topic in monodoc: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in (unmanaged) 06 System.Xml.Xsl.XslTransform:xmlXPathNewNodeSet (intptr) in 0x4 06 System.Xml.Xsl.XslTransform:xmlXPathNewNodeSet (intptr) in 0x00166 00 .ExtensionFunctionWrapper:Function (intptr,int) in 0x00035 05 .ExtensionFunctionWrapper:Function (intptr,int) in (unmanaged) 06 System.Xml.Xsl.XslTransform:xsltApplyStylesheetUser (intptr,intptr,string[],string,intptr,intptr) in 0x4 06 System.Xml.Xsl.XslTransform:xsltApplyStylesheetUser (intptr,intptr,string[],string,intptr,intptr) in 0x00962 00 System.Xml.Xsl.XslTransform:ApplyStylesheet (intptr,string[],System.Collections.Hashtable) in 0x00028 00 System.Xml.Xsl.XslTransform:ApplyStylesheetAndGetString (intptr,string[],System.Collections.Hashtable) in 0x0041a 00 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter) in 0x00066 00 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter) in 0x001aa 00 Monodoc.EcmaHelpSource:Htmlize (System.Xml.XmlNode,System.Xml.Xsl.XsltArgumentList) in 0x00345 00 Monodoc.EcmaHelpSource:GetTextFromUrl (string) in 0x00038 00 Monodoc.EcmaHelpSource:GetText (string,Monodoc.Node) in 0x00116 00 Monodoc.TreeBrowser:RowActivated (object,System.EventArgs) in 0x0005a 01 System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in 0x0012b 00 GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in 0x00030 05 GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in (unmanaged) 06 Gtk.Application:gtk_main () in 0x4 06 Gtk.Application:gtk_main () in 0x7 00 Gtk.Application:Run () in 0x001a1 00 Monodoc.Driver:Main (string[]) I also get this one: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in (unmanaged) 00 System.Collections.ArrayList:Reverse () in 0x00264 00 .ExtensionFunctionWrapper:Function (intptr,int) in 0x00035 05 .ExtensionFunctionWrapper:Function (intptr,int) in (unmanaged) 06 System.Xml.Xsl.XslTransform:xsltApplyStylesheetUser (intptr,intptr,string[],string,intptr,intptr) in 0x4 06 System.Xml.Xsl.XslTransform:xsltApplyStylesheetUser (intptr,intptr,string[],string,intptr,intptr) in 0x00962 00 System.Xml.Xsl.XslTransform:ApplyStylesheet (intptr,string[],System.Collections.Hashtable) in 0x00028 00 System.Xml.Xsl.XslTransform:ApplyStylesheetAndGetString (intptr,string[],System.Collections.Hashtable) in 0x0041a 00 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter) in 0x00066 00 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter) in 0x001aa 00 Monodoc.EcmaHelpSource:Htmlize (System.Xml.XmlNode,System.Xml.Xsl.XsltArgumentList) in 0x00345 00 Monodoc.EcmaHelpSource:GetTextFromUrl (string) in 0x00038 00 Monodoc.EcmaHelpSource:GetText (string,Monodoc.Node) in 0x00116 00 Monodoc.TreeBrowser:RowActivated (object,System.EventArgs) in 0x0005a 01 System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in 0x0012b 00 GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in 0x00030 05 GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in (unmanaged) 06 Gtk.Application:gtk_main () in 0x4 06 Gtk.Application:gtk_main () in 0x7 00 Gtk.Application:Run () in 0x001a1 00 Monodoc.Driver:Main (string[]) I have a CVS (Jul 25 2003) version of mono/mcs/gtk-sharp/monodoc. All help would be apreciated. Thanks in advance, Rodolfo _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] monodoc - NullReferenceException when item choosedin topics tree
Thanks you for your interest Ben. I clicked on: - Mono Documentation - Class Library - System - Activator Class Always on the triangles at the left, and then on Members (the text). All were single clicks, not double clicks. Here is the stack trace: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in (unmanaged) 06 System.Xml.Xsl.XslTransform:xmlXPathNewNodeSet (intptr) in 0x4 06 System.Xml.Xsl.XslTransform:xmlXPathNewNodeSet (intptr) in [0x000c2] (at /usr/local/cvsroot/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:611) 00 .ExtensionFunctionWrapper:Function (intptr,int) in 0x00035 05 .ExtensionFunctionWrapper:Function (intptr,int) in (unmanaged) 06 System.Xml.Xsl.XslTransform:xsltApplyStylesheetUser (intptr,intptr,string[],string,intptr,intptr) in 0x4 06 System.Xml.Xsl.XslTransform:xsltApplyStylesheetUser (intptr,intptr,string[],string,intptr,intptr) in [0x002fe] (at /usr/local/cvsroot/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:273) 00 System.Xml.Xsl.XslTransform:ApplyStylesheet (intptr,string[],System.Collections.Hashtable) in [0x4] (at /usr/local/cvsroot/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:309) 00 System.Xml.Xsl.XslTransform:ApplyStylesheetAndGetString (intptr,string[],System.Collections.Hashtable) in [0x0012d] (at /usr/local/cvsroot/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:425) 00 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter) in [0x0001a] (at /usr/local/cvsroot/mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs:375) 00 System.Xml.Xsl.XslTransform:Transform (System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter) in [0x00083] (at /usr/local/cvsroot/monodoc/browser/ecma-provider.cs:717) 00 Monodoc.EcmaHelpSource:Htmlize (System.Xml.XmlNode,System.Xml.Xsl.XsltArgumentList) in [0x0020e] (at /usr/local/cvsroot/monodoc/browser/ecma-provider.cs:679) 00 Monodoc.EcmaHelpSource:GetTextFromUrl (string) in [0x00015] (at /usr/local/cvsroot/monodoc/browser/ecma-provider.cs:391) 00 Monodoc.EcmaHelpSource:GetText (string,Monodoc.Node) in [0x0006a] (at /usr/local/cvsroot/monodoc/browser/browser.cs:570) 00 Monodoc.TreeBrowser:RowActivated (object,System.EventArgs) in 0x0005a 01 System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in 0x0012b 00 GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in 0x00030 05 GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in (unmanaged) 06 Gtk.Application:gtk_main () in 0x4 06 Gtk.Application:gtk_main () in 0x7 00 Gtk.Application:Run () in [0x000c3] (at /usr/local/cvsroot/monodoc/browser/browser.cs:65) 00 Monodoc.Driver:Main (string[]) I was able to see the documentation for some time, then it broke. I don't remember exacty what I did in the meantime, but I'm sure I did several CVS updates and builds. From: Ben Maurer [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-list] monodoc - NullReferenceException when item choosedin topics tree Date: 26 Jul 2003 14:10:32 -0400 On Sat, 2003-07-26 at 14:04, Rodolfo Campero wrote: Hello, I get the following exception when I try to see the documentation of a topic in monodoc: [...] I have a CVS (Jul 25 2003) version of mono/mcs/gtk-sharp/monodoc. Hi, Thank you for the bug report. It would really help if you could do two additional things: 1. Please tell us the *exact* sequence of mouse clicks you performed, exactly where you clicked. 2. Please run monodoc with debug (mono --debug /prefix/lib/monodoc/browser.exe), and give us the stack trace, so that it has line numbers. Again, thanks for the bug report. -- Ben ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] monodoc - NullReferenceException when itemchoosedin topics tree
Done (with errors). I made: cvs -z3 update -dP mcs mono gtk-sharp monodoc cd mono make (I get Nothing to be done... for every directory) cd ../mcs make at this point, some errors are reported: Running test cs-11.cs ... FAILED Running test cs-12.cs ... FAILED Running test cs0035.cs ... FAILED Running test cs0067.cs ... FAILED Running test cs0068.cs ... FAILED Running test cs0069.cs ... FAILED Running test cs0071.cs ... FAILED Running test cs0075.cs ... FAILED Running test cs0079.cs ... FAILED Running test cs0104.cs ... Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in 0x0012a 00 Mono.CSharp.DeclSpace:CheckAccessLevel (System.Type) in 0x002d1 00 Mono.CSharp.DeclSpace:FindType (Mono.CSharp.Location,string) in 0x00119 00 Mono.CSharp.SimpleName:ResolveAsTypeStep (Mono.CSharp.EmitContext) in 0x00018 00 Mono.CSharp.Expression:ResolveAsTypeTerminal (Mono.CSharp.EmitContext) in 0x0005b 00 Mono.CSharp.DeclSpace:ResolveTypeExpr (Mono.CSharp.Expression,bool,Mono.CSharp.Location) in 0x001d4 00 Mono.CSharp.TypeContainer:GetClassBases (bool,System.Type,bool) in 0x00190 00 Mono.CSharp.TypeContainer:DefineType () in 0x002ea 00 Mono.CSharp.RootContext:ResolveTree () in 0x00799 00 Mono.CSharp.Driver:MainDriver (string[]) in 0x0001b 00 Mono.CSharp.Driver:Main (string[]) FAILED Running test cs0116.cs ... FAILED Running test cs0118.cs ... FAILED Running test cs0122-2.cs ... FAILED Running test cs0128.cs ... FAILED Running test cs0140.cs ... FAILED Running test cs0143.cs ... FAILED Running test cs0164.cs ... FAILED Running test cs0169.cs ... FAILED Running test cs0192.cs ... FAILED Running test cs0197.cs ... FAILED Running test cs0198.cs ... FAILED Running test cs0200.cs ... FAILED Running test cs0201.cs ... FAILED Running test cs0202.cs ... FAILED Running test cs0214-2.cs ... FAILED Running test cs0230.cs ... FAILED Running test cs0234.cs ... FAILED Running test cs0239.cs ... FAILED Running test cs0523.cs ... FAILED Running test cs0529.cs ... FAILED Running test cs0536.cs ... ** ERROR **: file class.c: line 897 (mono_class_setup_vtable): should not be reached aborting... FAILED Running test cs0649.cs ... FAILED Running test cs0673.cs ... FAILED Running test cs1001.cs ... FAILED Running test cs1513.cs ... FAILED Running test cs1518.cs ... FAILED Running test cs1525.cs ... FAILED Running test cs1528.cs ... FAILED Running test cs1552.cs ... FAILED Running test cs3005.cs ... FAILED Running test cs8201.cs ... FAILED Running test cs8202.cs ... FAILED Running test cs8203.cs ... FAILED Running test cs8204.cs ... FAILED Running test cs8205.cs ... FAILED Running test cs8206.cs ... FAILED Running test cs8207.cs ... FAILED Running test cs8208.cs ... FAILED Running test cs8209.cs ... FAILED Running test cs8210.cs ... FAILED Running test cs8214.cs ... FAILED The following tests failed: cs-11.cs cs-12.cs cs0035.cs cs0067.cs cs0068.cs cs0069.cs cs0071.cs cs0075.cs cs0079.cs cs0104.cs cs0116.cs cs0118.cs cs0122-2.cs cs0128.cs cs0140.cs cs0143.cs cs0164.cs cs0169.cs cs0192.cs cs0197.cs cs0198.cs cs0200.cs cs0201.cs cs0202.cs cs0214-2.cs cs0230.cs cs0234.cs cs0239.cs cs0523.cs cs0529.cs cs0536.cs cs0649.cs cs0673.cs cs1001.cs cs1513.cs cs1518.cs cs1525.cs cs1528.cs cs1552.cs cs3005.cs cs8201.cs cs8202.cs cs8203.cs cs8204.cs cs8205.cs cs8206.cs cs8207.cs cs8208.cs cs8209.cs cs8210.cs cs8214.cs if the file named fail contains the list of tests that are known to fail, then I'm in trouble. Anyway, I continued: make install (as root) Make breaks with the following error: make[1]: Entering directory `/usr/local/cvsroot/mcs/errors' make[1]: *** No rule to make target `install-local', needed by `install'. Stop. make[1]: Leaving directory `/usr/local/cvsroot/mcs/errors' make: *** [install-recursive] Error 1 I tried doing ./autogen.sh in mono, but the error remains. Should I continue and build gtk# and monodoc? I may add that I had to compile gnome2 with --disable-gtk-doc, and my prefix is /usr/local/mono, and I'm using bohem's GC. offtopic I'm a former VB programmer trying to catch up with .Net and learn GNU Linux. I'm using c# (Micros.) at work right now for database-oriented applications, and my english sucks. Well, this is my background; I would really like to contribute to the project, and maybe this is a good opportunity to start. If you could give a hint, I'll try to fix this bug myself (maybe isn't a bug at all, just a misconfigured system). /offtopic From: Ben Maurer [EMAIL PROTECTED] To: Rodolfo Campero [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Mono-list] monodoc - NullReferenceException when itemchoosedin topics tree Date: 26 Jul 2003 14:42:49 -0400 On Sat, 2003-07-26 at 14:33, Rodolfo Campero wrote: Thanks you for your interest Ben. I clicked on: - Mono Documentation - Class Library - System - Activator Class Always on the triangles at the left, and then on Members (the text). All were single clicks, not double clicks. Hmm, I