[Mono-dev] Status of Mono Garbage Collector?
Tree month ago (11/17/2006) Miguel said : Paolo has been working on a new garbage collector (GC) engine. Currently Mono GC interface is almost pluggable (the work to plug different GCs was done a few months ago). The new GC engine is a precise, generational, compacting collector. This means that the Mono GC will be able to return memory to the operating system when it no longer needs it. We are making a few tradeoffs to ship this version of the collector quickly. For instance this new GC will treat the stack conservatively has two effects: it makes it easy for embedders of Mono to use the new GC but it also might flag a lot of pinned objects. We hope that the new GC can be tested in February or March, the code will start landing in December. I'd want to know more about the statut of this new GC. I think, that mono will be usable (on a desktop) (try to use beagle...) only if there's a good precise GC... There's too many memory leak problems with the current boehm GC... (even on a server, i must restart apache once a week to avoid memory problem). Regards Hubert FONGARNAND ___Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Undeclared identifier in threads.c/VS2005
Hi all,I'm currently trying to build Mono in Visual Studio 2005, but it seems that there is undeclared identifier __func__ in threads.c which causes build to fail. Revision of threads.c is 57160. Looks like latest changes to that file have been made six days ago, am I the only one having these problems? Cheers,Janne ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Undeclared identifier in threads.c/VS2005
Janne Rantala wrote: I'm currently trying to build Mono in Visual Studio 2005, but it seems that there is undeclared identifier __func__ in threads.c which causes build to fail. Revision of threads.c is 57160. Looks like latest changes to that file have been made six days ago, am I the only one having these problems? __func__ is the GCC macro for the name of the current function. The Visual C++ compiler uses the macro __FUNCTION__ to do the same thing. So you might consider adding the following #define: #define __func__ __FUNCTION__ --Brian ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] gtk-dotnet performance
Hello, I tried posting a similar question to the Gtk list but haven't received any response there, so I forgive me for trying my luck here as well. I'm am trying to use gtk-dotnet functionality to copy a System.Drawing.Bitmap to a Gtk.DrawingArea. My first approach was to follow exactly the sample code provided on the mono site (http://www.mono-project.com/GtkSharpNewInVersion2x): protected override bool OnExposeEvent (Gdk.EventExpose args) { using (Graphics g = Gtk.DotNet.Graphics.FromDrawable (args.Window)){ g.DrawImage(...); } return true; } However, I'm finding that the performance of this is unpredictable- if several expose events are generated in quick succession (eg to create an animation), the first will execute quickly ( 100 msec) but the next 3 or 4 expose events will take much longer (~500 msec). I thought there might be some overhead with re-creating the Graphics object each time, so my second approach was to try using a static intermediate Pixmap as follows: // create a static pixmap Pixmap pixmap = new Pixmap(...); // create a static graphics object Graphics g = Gtk.DotNet.Graphics.FromDrawable (pixmap); protected override bool OnExposeEvent (Gdk.EventExpose args) { // Draw on the static pixmap, through the previously // created Graphics g.DrawImage(...); args.Window.DrawDrawable(..., pixmap, ...); return true; } However, in this case, the performance of g.DrawImage(...) drawing onto a Pixmap is terrible (~ 1 second). Basically, I just need a way to copy a System.Drawing.Bitmap to a Gtk.DrawingArea in a constant and reasonably quick amount of time. I'm not sure what I'm doing wrong, but any ideas would be greatly appreciated. -Jonathan ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Strange .ctor() behaviour
Hi, Using Mono.Cecil, I inserted custom attributes into an assembly. Some of the classes in it are Clock, DisplayTime, Observer,. The attribute is a string of type MyAttribute. Now after inserting a value and disassembling the assembly, instead of a statement like the following: .custom instance void MyNameSpace.MyAttribute::.ctor() = {01 00 } // Its value It gives .custom instance void AnotherNameSpace.Clock::.ctor() = {01 00 } // value While inserting, I gave the correct type of the MyAttribute. The value I gave is correctly displayed. Its values is correct. Only the constructor part is the one not intended. There isn't any constructor even, that matches the above one. One more thing, if we use ILdasm to disassemble an assembly, is there any significance to the order in which it displays the types in the assembly. Got a doubt because Clock was displayed first and I didn't write it in the source code first. Thank you. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Unloading an Assembly
Hi, The issue is resolved. The mistake I have been doing was, though I loaded the assembly into another AppDomain, I was referencing(using Reflection) it in the CurrentDomain. Also I used MarshalByRefObject in a wrong manner. I thought it should be used by the Assembly Iam loading. It should be used i.e. the class which loads the assembly should derive from MarshalByRefObject. It is necessary for inter domain communication. Bye. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Documentation or pointers for profiling mono/mini?
Hi, I'm working on a project which involves profiling mono and generating information about the code being run. For example, I'm trying to see how deep the call stack is, or inserting code to the method bodies, to generate stats about the code runs. This is to be done for the jit alone. I've looked through[1], [2], both myself, and through Google's eyes, but haven't found much useful information about the layout of the code. I have the source code, and am looking through mono/mini/mini.c and other files, trying to understand the code. 1. http://lists.ximian.com/pipermail/mono-devel-list/ 2. http://www.go-mono.com/docs/ Any pointers or help would be appreciated. Thanks, Vik ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] parser
Coco/R. There's even a rather good book about it. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Angel GarciaSent: 20 January 2006 15:32To: Mono-devel-list@lists.ximian.comSubject: [Mono-dev] parser Hello, Is there some library or program that execute a parser-generator like bison or yacc in c#? Thanks in advance ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Is anyone using mono develop in 1.1.13.2?
Could you run monodevelop with increased logging? Do this with the following from a terminal window: export MONO_LOG_LEVEL=debug monodevelop That could help shed some light on this. If you have gtk+2.4 installed (which it appears you do), I'm not sure what the problem could be, other than some missing libraries required by libgnomesharpglue. My guess is that you're missing some gnome libraries. Doing the above suggestion will say which libraries are not there. From the wiki link that Lluis referenced: The solution: run a distro that has gtk+ 2.4 or above, make sure Gnome is installed, and make sure you load the settings from .bashrc which were created by the installer. (They are also listed in the above faq question) Wade On Mon, 2006-02-20 at 17:04 -0900, Joshua Kugler wrote: On Monday 20 February 2006 14:46, Lluis Sanchez wrote: Hi, Please carefully read the mini FAQ in the installer instructions. The error you are getting is documented there: http://www.mono-project.com/InstallerInstructions Lluis. Hmm...well, since other mono apps ran, I guess I overlooked that part. But it seems I have gtk+ 2.4 installed. [EMAIL PROTECTED] /home/joshua]# ll /usr/lib/gtk-2.0 total 20 drwxr-xr-x 3 root root 4096 Sep 23 2004 2.2.0/ drwxr-xr-x 6 root root 4096 Nov 16 15:31 2.4.0/ drwxr-xr-x 2 root root 4096 Jan 11 04:04 bin/ drwxr-xr-x 2 root root 4096 Jul 29 2005 engines/ drwxr-xr-x 2 root root 4096 Nov 16 15:31 modules/ I have the installer from the web site installed. I have gtk-sharp2-1.9.2. I'm a little unclear as to the version numbers. In the gtk-2.0 directory above, I have a 2.4.0 directory. Does that man I have gtk 2.0 or 2.4.0? In the latest version of Mandrake, the package is libgtk+2.0_0-2.8.3. What version is that? 2.0 or 2.8.3? On my current Mandrake box, I have gtk+2.0-2.6.4 installed. That means I should be able to run gtk+ 2.4 apps, right? OK, as to the second part. I'm not using the native gtk-sharp2 libraries, I'm using the ones that come with the installer. How do I check to make sure those don't have unresolved symbols? Sorry to be so much trouble about this. But I'm stuck! :) j- k- signature.asc Description: This is a digitally signed message part ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Is anyone using mono develop in 1.1.13.2?
OK, the run is attached. Near the end, I see things like: (./MonoDevelop.exe:30692): Mono-WARNING **: DllImport unable to load library 'libpanel-applet-2.so.0: cannot open shared object But I am seeing a lot of cannot open shared object or file with dll's that don't seem to have anything to do with Gnome. Should I just install gnome (the whole thing) and see if my problem goes away, or is there a subset that I would be better off installing if Gnome isn't my primary environment? j- k- On Wednesday 01 March 2006 14:00, Wade Berrier wrote: Could you run monodevelop with increased logging? Do this with the following from a terminal window: export MONO_LOG_LEVEL=debug monodevelop That could help shed some light on this. If you have gtk+2.4 installed (which it appears you do), I'm not sure what the problem could be, other than some missing libraries required by libgnomesharpglue. My guess is that you're missing some gnome libraries. Doing the above suggestion will say which libraries are not there. From the wiki link that Lluis referenced: The solution: run a distro that has gtk+ 2.4 or above, make sure Gnome is installed, and make sure you load the settings from .bashrc which were created by the installer. (They are also listed in the above faq question) Wade On Mon, 2006-02-20 at 17:04 -0900, Joshua Kugler wrote: On Monday 20 February 2006 14:46, Lluis Sanchez wrote: Hi, Please carefully read the mini FAQ in the installer instructions. The error you are getting is documented there: http://www.mono-project.com/InstallerInstructions Lluis. Hmm...well, since other mono apps ran, I guess I overlooked that part. But it seems I have gtk+ 2.4 installed. [EMAIL PROTECTED] /home/joshua]# ll /usr/lib/gtk-2.0 total 20 drwxr-xr-x 3 root root 4096 Sep 23 2004 2.2.0/ drwxr-xr-x 6 root root 4096 Nov 16 15:31 2.4.0/ drwxr-xr-x 2 root root 4096 Jan 11 04:04 bin/ drwxr-xr-x 2 root root 4096 Jul 29 2005 engines/ drwxr-xr-x 2 root root 4096 Nov 16 15:31 modules/ I have the installer from the web site installed. I have gtk-sharp2-1.9.2. I'm a little unclear as to the version numbers. In the gtk-2.0 directory above, I have a 2.4.0 directory. Does that man I have gtk 2.0 or 2.4.0? In the latest version of Mandrake, the package is libgtk+2.0_0-2.8.3. What version is that? 2.0 or 2.8.3? On my current Mandrake box, I have gtk+2.0-2.6.4 installed. That means I should be able to run gtk+ 2.4 apps, right? OK, as to the second part. I'm not using the native gtk-sharp2 libraries, I'm using the ones that come with the installer. How do I check to make sure those don't have unresolved symbols? Sorry to be so much trouble about this. But I'm stuck! :) j- k- -- Joshua Kugler PGP Key: http://pgp.mit.edu/ CDE System Administrator ID 0xDB26D7CE http://distance.uaf.edu/ Script started on Wed 01 Mar 2006 02:31:54 PM AKST [36l]0;[EMAIL PROTECTED]: /home/[EMAIL PROTECTED] ~]$ which monodevelop /home/joshua/mono-1.1.13.2/bin/monodevelop ]0;[EMAIL PROTECTED]: /home/[EMAIL PROTECTED] ~]$ export MONO_LOG_LEVEL_ =debug ]0;[EMAIL PROTECTED]: /home/[EMAIL PROTECTED] ~]$ monodevelop Mono-INFO: Assembly Loader probing location: '/home/joshua/mono-1.1.13.2/lib/mono/1.0/mscorlib.dll'. Mono-INFO: AOT failed to load AOT module /home/joshua/mono-1.1.13.2/lib/mono/1.0/mscorlib.dll.so: /home/joshua/mono-1.1.13.2/lib/mono/1.0/mscorlib.dll.so: cannot open shared object file: No such file or directory Mono-INFO: Assembly Loader loaded assembly from location: '/home/joshua/mono-1.1.13.2/lib/mono/1.0/mscorlib.dll'. Mono-INFO: Config attempting to parse: '/home/joshua/mono-1.1.13.2/lib/mono/1.0/mscorlib.dll.config'. Mono-INFO: Config attempting to parse: '/home/joshua/mono-1.1.13.2/etc/mono/assemblies/mscorlib/mscorlib.config'. Mono-INFO: Config attempting to parse: '/home/joshua/.mono/assemblies/mscorlib/mscorlib.config'. Mono-INFO: Config attempting to parse: '/home/joshua/mono-1.1.13.2/etc/mono/config'. Mono-INFO: Config attempting to parse: '/home/joshua/.mono/config'. Mono-INFO: Assembly Loader probing location: './MonoDevelop.exe'. Mono-INFO: AOT failed to load AOT module /home/joshua/mono-1.1.13.2/lib/monodevelop/bin/MonoDevelop.exe.so: /home/joshua/mono-1.1.13.2/lib/monodevelop/bin/MonoDevelop.exe.so: cannot open shared object file: No such file or directory Mono-INFO: Assembly Loader loaded assembly from location: './MonoDevelop.exe'. Mono-INFO: Config attempting to parse: '/home/joshua/mono-1.1.13.2/lib/monodevelop/bin/MonoDevelop.exe.config'. Mono-INFO: Config attempting to parse: '/home/joshua/mono-1.1.13.2/etc/mono/assemblies/MonoDevelop/MonoDevelop.config'. Mono-INFO: Config attempting to parse: '/home/joshua/.mono/assemblies/MonoDevelop/MonoDevelop.config'. Mono-INFO: Assembly Loader probing location: './MonoDevelop.exe'. Mono-INFO: Assembly Loader
Re: [Mono-dev] Is anyone using mono develop in 1.1.13.2?
OH, sigh! I installed gnome (all 89MB of packages, talk about a hefty pre-req), and monodevelop starts just fine. Sorry about that all. Next time I see Make sure gnome is installed, I'll take that to mean the whole thing, and not the just gnome libraries. The script from the successful run is attached as well. I'm off to play around in Gnome develop. Thanks again for all your help and patience! j- k- On Wednesday 01 March 2006 14:37, Joshua Kugler wrote: OK, the run is attached. Near the end, I see things like: (./MonoDevelop.exe:30692): Mono-WARNING **: DllImport unable to load library 'libpanel-applet-2.so.0: cannot open shared object But I am seeing a lot of cannot open shared object or file with dll's that don't seem to have anything to do with Gnome. Should I just install gnome (the whole thing) and see if my problem goes away, or is there a subset that I would be better off installing if Gnome isn't my primary environment? j- k- On Wednesday 01 March 2006 14:00, Wade Berrier wrote: Could you run monodevelop with increased logging? Do this with the following from a terminal window: export MONO_LOG_LEVEL=debug monodevelop That could help shed some light on this. If you have gtk+2.4 installed (which it appears you do), I'm not sure what the problem could be, other than some missing libraries required by libgnomesharpglue. My guess is that you're missing some gnome libraries. Doing the above suggestion will say which libraries are not there. From the wiki link that Lluis referenced: The solution: run a distro that has gtk+ 2.4 or above, make sure Gnome is installed, and make sure you load the settings from .bashrc which were created by the installer. (They are also listed in the above faq question) Wade On Mon, 2006-02-20 at 17:04 -0900, Joshua Kugler wrote: On Monday 20 February 2006 14:46, Lluis Sanchez wrote: Hi, Please carefully read the mini FAQ in the installer instructions. The error you are getting is documented there: http://www.mono-project.com/InstallerInstructions Lluis. Hmm...well, since other mono apps ran, I guess I overlooked that part. But it seems I have gtk+ 2.4 installed. [EMAIL PROTECTED] /home/joshua]# ll /usr/lib/gtk-2.0 total 20 drwxr-xr-x 3 root root 4096 Sep 23 2004 2.2.0/ drwxr-xr-x 6 root root 4096 Nov 16 15:31 2.4.0/ drwxr-xr-x 2 root root 4096 Jan 11 04:04 bin/ drwxr-xr-x 2 root root 4096 Jul 29 2005 engines/ drwxr-xr-x 2 root root 4096 Nov 16 15:31 modules/ I have the installer from the web site installed. I have gtk-sharp2-1.9.2. I'm a little unclear as to the version numbers. In the gtk-2.0 directory above, I have a 2.4.0 directory. Does that man I have gtk 2.0 or 2.4.0? In the latest version of Mandrake, the package is libgtk+2.0_0-2.8.3. What version is that? 2.0 or 2.8.3? On my current Mandrake box, I have gtk+2.0-2.6.4 installed. That means I should be able to run gtk+ 2.4 apps, right? OK, as to the second part. I'm not using the native gtk-sharp2 libraries, I'm using the ones that come with the installer. How do I check to make sure those don't have unresolved symbols? Sorry to be so much trouble about this. But I'm stuck! :) j- k- -- Joshua Kugler PGP Key: http://pgp.mit.edu/ CDE System Administrator ID 0xDB26D7CE http://distance.uaf.edu/ monodevelop-after.txt.bz2 Description: BZip2 compressed data ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Is anyone using mono develop in 1.1.13.2?
Well, that didn't last long. I fired up monodevelop, clicked on New Project, clicked on a C# project, and monodevel locked up and displayed this in the terminal: 2006-03-01 14:46:58,360 [-1208056128] ERROR MonoDevelop.Core.I LoggingService [(null)] - Type 'MonoDevelop.Components.Commands.CommandSystemCom mands' referenced from add-in 'MonoDevelop.Ide' not found. [This appears during startup] 6459 [-1223824464] INFO MonoDevelop.Core.ILoggingService (null) - Initializing s ervice: MonoDevelop.Core.PropertyService 6480 [-1223824464] INFO MonoDevelop.Core.ILoggingService (null) - Initializing s ervice: MonoDevelop.Core.FileUtilityService 6533 [-1223824464] INFO MonoDevelop.Core.ILoggingService (null) - Initializing s ervice: MonoDevelop.Documentation.MonodocService (MonoDevelop:31492): GnomeUI-CRITICAL **: gnome_icon_list_append_pixbuf: asserti on `im != NULL' failed 37268 [-1223824464] DEBUG MonoDevelop.Core.ILoggingService (null) - Writing /hom e/joshua/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c561934 e089.pidb Had to kill it. Tried again and realized clicking on C# doesn't generate any output in the terminal. All the other output came before clicking on C#. Clicking on any other Template category works. C# is the only one that locks up the system. So for now, I shall avoid C#. Debug output attached. Procedure: Start monodevelop Click New Project Click VB.Net Click C# Kill mono The debug doesn't seem to give anything interesting, but it's there for your perusal. Oh and the new projects window says Creates a new C# project regardless of which category I click on. FYI. j- k- On Wednesday 01 March 2006 14:46, Joshua Kugler wrote: OH, sigh! I installed gnome (all 89MB of packages, talk about a hefty pre-req), and monodevelop starts just fine. Sorry about that all. Next time I see Make sure gnome is installed, I'll take that to mean the whole thing, and not the just gnome libraries. The script from the successful run is attached as well. I'm off to play around in Gnome develop. Thanks again for all your help and patience! j- k- -- Joshua Kugler PGP Key: http://pgp.mit.edu/ CDE System Administrator ID 0xDB26D7CE http://distance.uaf.edu/ md-csharp-crash.txt.bz2 Description: BZip2 compressed data ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Is anyone using mono develop in 1.1.13.2?
Thanks for the debug output. It may be easier to install all of Gnome. But, if you're taking the minimalistic approach, try installing the libpanel applet package. Repeat this same process of running monodevelop with the debug logs turned on and install additional packages until you don't get any exceptions with libgnomesharpglue. Wade On Wed, 2006-03-01 at 14:37 -0900, Joshua Kugler wrote: OK, the run is attached. Near the end, I see things like: (./MonoDevelop.exe:30692): Mono-WARNING **: DllImport unable to load library 'libpanel-applet-2.so.0: cannot open shared object But I am seeing a lot of cannot open shared object or file with dll's that don't seem to have anything to do with Gnome. Should I just install gnome (the whole thing) and see if my problem goes away, or is there a subset that I would be better off installing if Gnome isn't my primary environment? j- k- On Wednesday 01 March 2006 14:00, Wade Berrier wrote: Could you run monodevelop with increased logging? Do this with the following from a terminal window: export MONO_LOG_LEVEL=debug monodevelop That could help shed some light on this. If you have gtk+2.4 installed (which it appears you do), I'm not sure what the problem could be, other than some missing libraries required by libgnomesharpglue. My guess is that you're missing some gnome libraries. Doing the above suggestion will say which libraries are not there. From the wiki link that Lluis referenced: The solution: run a distro that has gtk+ 2.4 or above, make sure Gnome is installed, and make sure you load the settings from .bashrc which were created by the installer. (They are also listed in the above faq question) Wade On Mon, 2006-02-20 at 17:04 -0900, Joshua Kugler wrote: On Monday 20 February 2006 14:46, Lluis Sanchez wrote: Hi, Please carefully read the mini FAQ in the installer instructions. The error you are getting is documented there: http://www.mono-project.com/InstallerInstructions Lluis. Hmm...well, since other mono apps ran, I guess I overlooked that part But it seems I have gtk+ 2.4 installed. [EMAIL PROTECTED] /home/joshua]# ll /usr/lib/gtk-2.0 total 20 drwxr-xr-x 3 root root 4096 Sep 23 2004 2.2.0/ drwxr-xr-x 6 root root 4096 Nov 16 15:31 2.4.0/ drwxr-xr-x 2 root root 4096 Jan 11 04:04 bin/ drwxr-xr-x 2 root root 4096 Jul 29 2005 engines/ drwxr-xr-x 2 root root 4096 Nov 16 15:31 modules/ I have the installer from the web site installed. I have gtk-sharp2-1.9.2. I'm a little unclear as to the version numbers. In the gtk-2.0 directory above, I have a 2.4.0 directory. Does that man I have gtk 2.0 or 2.4.0? In the latest version of Mandrake, the package is libgtk+2.0_0-2.8.3. What version is that? 2.0 or 2.8.3? On my current Mandrake box, I have gtk+2.0-2.6.4 installed. That means I should be able to run gtk+ 2.4 apps, right? OK, as to the second part. I'm not using the native gtk-sharp2 libraries, I'm using the ones that come with the installer. How do I check to make sure those don't have unresolved symbols? Sorry to be so much trouble about this. But I'm stuck! :) j- k- signature.asc Description: This is a digitally signed message part ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list