From origin.of at gmail.com Sat Mar 1 11:00:15 2008 From: origin.of at gmail.com (Manuel Mazzuola) Date: Sat, 1 Mar 2008 17:00:15 +0100 Subject: [Mono-list] mediawiki theme Message-ID: Hi, Is possible to have the mediawiki theme of the Mono project site ?? Thanks :) -- Manuel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080301/8068f033/attachment.html From luohongz at gmail.com Sat Mar 1 11:45:09 2008 From: luohongz at gmail.com (Leo Zhu) Date: Sat, 1 Mar 2008 11:45:09 -0500 Subject: [Mono-list] Failed to create shared memory segment for backend 'XXGLOBAL' Message-ID: <4cb4d8250803010845x79b6bc47i4b5bfe444d062772@mail.gmail.com> Hi, I have installed mono-1.2.6, mod_mono-1.2.6 and xsp-1.2.6 on suse linux 9 system with apache 2.2.8 from source. So far everything is fine except I always get " File exists:Failed to create shared memory segment for backend 'XXGLOBAL'" error when I stop the apache. However, when apache is up, I don't have any problem with my mono web application. I'm wondering if anybody can shed some light on this problem. Thanks. Leo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080301/e87c6260/attachment.html From trofimich at gmail.com Sat Mar 1 18:07:25 2008 From: trofimich at gmail.com (sasha) Date: Sun, 02 Mar 2008 01:07:25 +0200 Subject: [Mono-list] Mono 1.9.0 Preview 3 is out!! In-Reply-To: <47BFE7D0.1050900@novell.com> References: <47BFE7D0.1050900@novell.com> Message-ID: I can't run any ASP.NET page under XSP2. All test made under WinXP 64Bit, site developed in VS2008 and published with "Publish" menu item. web.config is neext: I've got only empty response and see empty white page without any errors. Has anybody tried to run .NET 3.5 site compiled in VS2008 under XSP? Maybe there is some specifity? From mysql.jorge at decimal.pt Sat Mar 1 18:44:01 2008 From: mysql.jorge at decimal.pt (Jorge Bastos) Date: Sat, 1 Mar 2008 23:44:01 -0000 Subject: [Mono-list] Failed to create shared memory segment for backend 'XXGLOBAL' In-Reply-To: <4cb4d8250803010845x79b6bc47i4b5bfe444d062772@mail.gmail.com> References: <4cb4d8250803010845x79b6bc47i4b5bfe444d062772@mail.gmail.com> Message-ID: <00c301c87bf6$219715a0$64c540e0$@jorge@decimal.pt> With 1.9x preview this is gone i belive. At least with me it?s gone. From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Leo Zhu Sent: s?bado, 1 de Mar?o de 2008 16:45 To: mono-list at lists.ximian.com Subject: [Mono-list] Failed to create shared memory segment for backend 'XXGLOBAL' Hi, I have installed mono-1.2.6, mod_mono-1.2.6 and xsp-1.2.6 on suse linux 9 system with apache 2.2.8 from source. So far everything is fine except I always get " File exists:Failed to create shared memory segment for backend 'XXGLOBAL'" error when I stop the apache. However, when apache is up, I don't have any problem with my mono web application. I'm wondering if anybody can shed some light on this problem. Thanks. Leo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080301/9902b36d/attachment-0001.html From fevans at harris.com Sat Mar 1 13:29:02 2008 From: fevans at harris.com (fevans) Date: Sat, 1 Mar 2008 10:29:02 -0800 (PST) Subject: [Mono-list] mono-service, mono-service2 Message-ID: <15779110.post@talk.nabble.com> This question is perhaps less about mono-service, and more about the .NET ServiceProcess. The benefits are auto-startup, restart on failure, logging, etc. Does hosting my application within a Windows Service (ServiceProcess) buy me anything else? Like thread handling, concurrent connections, or do I need to implement those myself? Within the context of mono under Linux, how does mono-service interact with the OS. In other words, how do I define the startup/authentication/logging for mono-service. I realize the question is vague, so if anyone can provide a few links, or even key-words to google, I'd appreciate it. Thanks in advance. PROJECT DETAILS: I'm running a message-receiver on linux, which accepts an ant project and invokes it. With regards to the transport, I considered running an xsp/xsp web service. But some of the processes I'm running are massive, consume loads of cpu/memory and can take hours to run. I don't want to invoke them within a web-application, though if anyone disagrees with this concern I'll gladly stand corrected. Its the sort of thing that WCF is intended to handle, but that's not an option right now. At this point mono-service seems like the best option, but I'm not sure. -- View this message in context: http://www.nabble.com/mono-service%2C-mono-service2-tp15779110p15779110.html Sent from the Mono - General mailing list archive at Nabble.com. From kenw at quarter-flash.com Sun Mar 2 22:17:27 2008 From: kenw at quarter-flash.com (Kenneth D. Weinert) Date: Sun, 02 Mar 2008 20:17:27 -0700 Subject: [Mono-list] Mono.DataConvert Message-ID: <1204514247.6252.17.camel@emmsee> Where is the correct place to submit a patch for the above software. I found a bug in the Unpack routine. Thanks. -- Ken Weinert http://quarter-flash.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080302/8be66995/attachment.bin From robertj at gmx.net Mon Mar 3 05:37:54 2008 From: robertj at gmx.net (Robert Jordan) Date: Mon, 03 Mar 2008 11:37:54 +0100 Subject: [Mono-list] mono-service, mono-service2 In-Reply-To: <15779110.post@talk.nabble.com> References: <15779110.post@talk.nabble.com> Message-ID: fevans wrote: > This question is perhaps less about mono-service, and more about the .NET > ServiceProcess. The benefits are auto-startup, restart on failure, logging, > etc. > > Does hosting my application within a Windows Service (ServiceProcess) buy me > anything else? Like thread handling, concurrent connections, or do I need to > implement those myself? You have to implement all these features yourself. > Within the context of mono under Linux, how does mono-service interact with > the OS. In other words, how do I define the startup/authentication/logging > for mono-service. Startup services are not part of mono-service. You must provide your own startup scripts. Search the list for samples, as this topic has been already discussed a couple of times. > I realize the question is vague, so if anyone can provide a few links, or > even key-words to google, I'd appreciate it. Thanks in advance. > > PROJECT DETAILS: > I'm running a message-receiver on linux, which accepts an ant project and > invokes it. With regards to the transport, I considered running an xsp/xsp > web service. But some of the processes I'm running are massive, consume > loads of cpu/memory and can take hours to run. I don't want to invoke them > within a web-application, though if anyone disagrees with this concern I'll > gladly stand corrected. Its the sort of thing that WCF is intended to > handle, but that's not an option right now. > > At this point mono-service seems like the best option, but I'm not sure. I'd host those jobs inside their own XSP process (to decouple them from the web site [if any]) and access them via Web Services. Another approach is using a service + remoting for IPC. Robert From darrell.blake at gmail.com Mon Mar 3 17:31:20 2008 From: darrell.blake at gmail.com (Darrell Blake) Date: Mon, 3 Mar 2008 22:31:20 +0000 Subject: [Mono-list] mod_mono problems Message-ID: <15c45fbc0803031431m1aab0248qeb639845d29105c4@mail.gmail.com> I've installed Mono on OS X and compiled and installed mod_mono from source (./configure && make && make install) which has all gone smoothly but I'm having some trouble launching Apache. I've gone the AutoHosting route and added "Include /etc/apache2/mod_mono.conf" to my httpd.conf file but with this line Apache wont launch. If I remove the line then Apache loads fine but not when it's included. The error I'm getting in the logs is this: 03/03/2008 22:25:33 org.apache.httpd[59793] httpd: Syntax error on line 485 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /etc/apache2/mod_mono.conf: Cannot load /usr/libexec/apache2/mod_mono.so into server: dlopen(/usr/libexec/apache2/mod_mono.so, 10): image not found Now, /usr/libexec/apache2/mod_mono.so definitely exists. To prove it, this is the output from "sudo find / -name mod_mono.so": darrells-imac:~ Darrell$ sudo chmod 7777 /usr/libexec/apache2/ darrells-imac:~ Darrell$ sudo find / -name mod_mono.so /Users/Darrell/Downloads/mod_mono-1.2.6/src/.libs/mod_mono.so /usr/libexec/apache2/mod_mono.so darrells-imac:~ Darrell$ Does anyone have any idea what I could have done wrong? From ajorgensen at novell.com Mon Mar 3 18:04:47 2008 From: ajorgensen at novell.com (Andrew Jorgensen) Date: Mon, 03 Mar 2008 16:04:47 -0700 Subject: [Mono-list] Suggestion: Mono 1.2.6 / openSUSE 10.3 VMware Image-SCSI instead of IDE In-Reply-To: <82692d4a0802161116v24ec1252x5d6e2f92f5bf105c@mail.gmail.com> References: <82692d4a0802161116v24ec1252x5d6e2f92f5bf105c@mail.gmail.com> Message-ID: <1204585487.19994.26.camel@nova.jorgensenfamily.us> On Sat, 2008-02-16 at 11:16 -0800, Swaminathan Saikumar wrote: > Hello, the VM image works great with VMware player/server, and I loved > MojoPortal on it. However, a lot of corporations use VMware ESX > server, which supports only SCSI disks on a VM. This VM image uses an > IDE disk. Changing it use a SCSI disk when building the image should > be pretty easy. If you can do that, it would be great, and would help > propagation of the image. Kiwi (the system which creates our vmware image) uses qemu-img to create the disk image. qemu-img cannot create or convert to a scsi vmdk type. Also there are no other tools to convert from an ide disk to scsi. Thank you for the suggestion. Sorry for taking so long to get back to you about this. - Andrew From swami at giveexam.com Mon Mar 3 18:53:42 2008 From: swami at giveexam.com (Swaminathan Saikumar) Date: Mon, 3 Mar 2008 15:53:42 -0800 Subject: [Mono-list] Suggestion: Mono 1.2.6 / openSUSE 10.3 VMware Image-SCSI instead of IDE In-Reply-To: <1204585487.19994.26.camel@nova.jorgensenfamily.us> References: <82692d4a0802161116v24ec1252x5d6e2f92f5bf105c@mail.gmail.com> <1204585487.19994.26.camel@nova.jorgensenfamily.us> Message-ID: <82692d4a0803031553p1607ed51vf94366852d1a0bba@mail.gmail.com> If you install VMware Server (or even Player, I think), it comes with: vmware-vdiskmanager.exe, which I believe can convert IDE disks to SCSI. If you do that manually, you need to change the vmx file to point to the SCSI disk instead of IDE. Does SCSI support sound like a feature request for Kiwi/qemu-img, given its high level goals? On 3/3/08, Andrew Jorgensen wrote: > > On Sat, 2008-02-16 at 11:16 -0800, Swaminathan Saikumar wrote: > > Hello, the VM image works great with VMware player/server, and I loved > > MojoPortal on it. However, a lot of corporations use VMware ESX > > server, which supports only SCSI disks on a VM. This VM image uses an > > IDE disk. Changing it use a SCSI disk when building the image should > > be pretty easy. If you can do that, it would be great, and would help > > propagation of the image. > > Kiwi (the system which creates our vmware image) uses qemu-img to create > the disk image. qemu-img cannot create or convert to a scsi vmdk type. > Also there are no other tools to convert from an ide disk to scsi. > > Thank you for the suggestion. Sorry for taking so long to get back to > you about this. > > > - Andrew > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080303/1d65cf30/attachment.html From opgenorth at gmail.com Tue Mar 4 09:28:34 2008 From: opgenorth at gmail.com (Tom Opgenorth) Date: Tue, 4 Mar 2008 07:28:34 -0700 Subject: [Mono-list] Error with Mono & Monorail Message-ID: <140160570803040628o93c3b52r92e46c29d1bfbcd7@mail.gmail.com> Hello, I've got a little application in Monorail that seems to work fine under Windows. When I try to get the application working on Ubuntu Linux/Mono 1.2.6 with mod_mono, I get the following error: Server Error in '/' Application Url smaller than 2 tokens Description: Error processing request. Error Message: HTTP 500. Castle.MonoRail.Framework.Internal.UrlTokenizerException: Url smaller than 2 tokens Stack Trace: Castle.MonoRail.Framework.Internal.UrlTokenizerException: Url smaller than 2 tokens at Castle.MonoRail.Framework.Services.DefaultUrlTokenizer.ExtractAreaControllerAction (System.String rawUrl, System.String& area, System.String& controller, System.String& action) [0x00000] at Castle.MonoRail.Framework.Services.DefaultUrlTokenizer.TokenizeUrl (System.String rawUrl, System.Uri uri, Boolean isLocal, System.String appVirtualDir) [0x00000] at Castle.MonoRail.Framework.EngineContextModule.CreateRailsEngineContext (System.Web.HttpContext context) [0x00000] at Castle.MonoRail.Framework.EngineContextModule.OnStartMonoRailRequest (System.Object sender, System.EventArgs e) [0x00000] at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) at System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext () [0x00000] I don't suppose anybody can point me in the right direction for getting around this, can they? -- http://www.opgenorth.net From robertj at gmx.net Tue Mar 4 09:37:22 2008 From: robertj at gmx.net (Robert Jordan) Date: Tue, 04 Mar 2008 15:37:22 +0100 Subject: [Mono-list] Error with Mono & Monorail In-Reply-To: <140160570803040628o93c3b52r92e46c29d1bfbcd7@mail.gmail.com> References: <140160570803040628o93c3b52r92e46c29d1bfbcd7@mail.gmail.com> Message-ID: Tom Opgenorth wrote: > Hello, > > I've got a little application in Monorail that seems to work fine under Windows. > > When I try to get the application working on Ubuntu Linux/Mono 1.2.6 > with mod_mono, I get the following error: > > Server Error in '/' Application > Url smaller than 2 tokens This was fixed for Mono 1.9. Robert From pocm at soton.ac.uk Tue Mar 4 17:41:38 2008 From: pocm at soton.ac.uk (Paulo J. Matos) Date: Tue, 4 Mar 2008 22:41:38 +0000 Subject: [Mono-list] ASP and PDF Message-ID: <11b141710803041441p3daa9f83yc7c3bf55d7d99226@mail.gmail.com> Hello all, I'm quite new to Mono and C# technologies having only implemented quite simple C# programs, given that most of the time I've used other programming languages. As C# becomes main stream and people start asking for solution in C#, here I am. I have been given a ASP form which I need to read and output a formatted PDF with the information in the form. I'm basically asking for references on how to do this using mono (if possible, it would be nice the same code to run on a windows based system). Cheers and thanks in advance, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK Sponsor ECS runners - Action against Hunger: http://www.justgiving.com/ecsrunslikethewind From jptrosclair at judelawfirm.com Tue Mar 4 18:26:30 2008 From: jptrosclair at judelawfirm.com (J.P. Trosclair) Date: Tue, 4 Mar 2008 17:26:30 -0600 Subject: [Mono-list] ASP and PDF In-Reply-To: <11b141710803041441p3daa9f83yc7c3bf55d7d99226@mail.gmail.com> Message-ID: <012701c87e4f$2d7ad540$6101a8c0@devxp> Check out iTextSharp, it's a port of the java pdf creation library to .net. It may or may not work with mono, I've not tested it. J.P. > -----Original Message----- > From: mono-list-bounces at lists.ximian.com [mailto:mono-list- > bounces at lists.ximian.com] On Behalf Of Paulo J. Matos > Sent: Tuesday, March 04, 2008 4:42 PM > To: mono-list at lists.ximian.com > Subject: [Mono-list] ASP and PDF > > Hello all, > > I'm quite new to Mono and C# technologies having only implemented > quite simple C# programs, given that most of the time I've used other > programming languages. As C# becomes main stream and people start > asking for solution in C#, here I am. > I have been given a ASP form which I need to read and output a > formatted PDF with the information in the form. > I'm basically asking for references on how to do this using mono (if > possible, it would be nice the same code to run on a windows based > system). > > Cheers and thanks in advance, > > -- > Paulo Jorge Matos - pocm at soton.ac.uk > http://www.personal.soton.ac.uk/pocm > PhD Student @ ECS > University of Southampton, UK > Sponsor ECS runners - Action against Hunger: > http://www.justgiving.com/ecsrunslikethewind > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From freeav8r at yahoo.com Tue Mar 4 18:40:25 2008 From: freeav8r at yahoo.com (Charles Kaminski) Date: Tue, 4 Mar 2008 15:40:25 -0800 (PST) Subject: [Mono-list] Install on CentOS 5 In-Reply-To: Message-ID: <165589.33523.qm@web34208.mail.mud.yahoo.com> Hi all, I would like to run a vb.net application on a xen image of CentOS5.0. I'm assuming that I need the Mono core compiled with the xen option, mono-basic, libgdiplus, and winform. Which on of the tarballs at http://go-mono.com/sources-stable/ contains the winform code for me to compile? ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From mbd at dbc.dk Wed Mar 5 00:58:20 2008 From: mbd at dbc.dk (Mads Bondo Dydensborg) Date: Wed, 5 Mar 2008 06:58:20 +0100 Subject: [Mono-list] ASP and PDF In-Reply-To: <11b141710803041441p3daa9f83yc7c3bf55d7d99226@mail.gmail.com> References: <11b141710803041441p3daa9f83yc7c3bf55d7d99226@mail.gmail.com> Message-ID: <200803050658.20475.mbd@dbc.dk> tirsdag 04 Marts 2008 skrev Paulo J. Matos: > Hello all, > > I'm quite new to Mono and C# technologies having only implemented > quite simple C# programs, given that most of the time I've used other > programming languages. As C# becomes main stream and people start > asking for solution in C#, here I am. > I have been given a ASP form which I need to read and output a > formatted PDF with the information in the form. > I'm basically asking for references on how to do this using mono (if > possible, it would be nice the same code to run on a windows based > system). This question crops up once in a while. What we do here, is to create a svg file (this is basically XML, and we create it from a template), which we then run through a svg to pdf converter. We use inkscape, which can run headless, and can be used under both Windows and Linux. We actually design the templates in inkscape too, then have a program to convert the svg files from inkscape into templates by using annotation. Getting it all to work was a bit of work, but that is mostly because of the "a slightly above average it knowlegeable secretary should be able to design a new template" step. Regards Mads -- Med venlig hilsen/Regards Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo Dydensborg Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77 34 From alain at frisch.fr Wed Mar 5 07:00:53 2008 From: alain at frisch.fr (Alain Frisch) Date: Wed, 05 Mar 2008 13:00:53 +0100 Subject: [Mono-list] Problem with loading native libraries Message-ID: <47CE8B75.2050505@frisch.fr> Hello, I'm new to Mono, so please redirect me to a more appropriate forum if this mailing list is not appropriate for such questions. I've a function defined in a native shared library "csml_native.so" that I'd like to call from Mono. In C#, I define a method with DllImport("csml_native.so"). However, when the method is called, I get an unhandled exception: System.DllNotFoundException: csml_native.so Setting the environment variable MONO_LOG_DEVEL to debug as explained on www.mono-project.com/DllnotFoundException does not produce any output (I'm using Mono 1.2.4 packaged in Ubuntu). So I've straced the process and grepped for csml_native. Here's how it starts: > open("/home/frisch/mlfi/applications/csml/test/csml_native.so", O_RDONLY|O_LARGEFILE) = 9 > readlink("/home/frisch/mlfi/applications/csml/test/csml_native.so", 0xbf8736cf, 4096) = -1 EINVAL (Invalid argument) > open("/lib/tls/i686/sse2/cmov/libcsml_native.so.so", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/lib/tls/i686/sse2/libcsml_native.so.so", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/lib/tls/i686/cmov/libcsml_native.so.so", O_RDONLY) = -1 ENOENT (No such file or directory) > ... As can be seen, mono finds the .so file (in the current directory). For some reason it seems to interpret it as a symbolic link (though this seems to be the case also for managed assemblies that it successfully open). Here are the lines immediatly after the successfull open: > open("/home/frisch/mlfi/applications/csml/test/csml_native.so", O_RDONLY|O_LARGEFILE) = 9 > fstat64(9, {st_mode=S_IFREG|0755, st_size=988763, ...}) = 0 > mmap2(NULL, 991232, PROT_READ, MAP_PRIVATE, 9, 0) = 0xb6ee6000 > mprotect(0xb6ee6000, 991232, PROT_READ|PROT_EXEC) = 0 > readlink("/home/frisch/mlfi/applications/csml/test/csml_native.so", 0xbffca61f, 4096) = -1 EINVAL (Invalid argument) > close(9) = 0 > munmap(0xb6ee6000, 988763) = 0 Here's the output of ldd on the .so file: > linux-gate.so.1 => (0xffffe000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e9a000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e96000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d4b000) > /lib/ld-linux.so.2 (0x80000000) Any idea what I'm doing wrong? Alain From daniel.soto2k at gmail.com Wed Mar 5 07:15:46 2008 From: daniel.soto2k at gmail.com (Daniel Soto) Date: Wed, 5 Mar 2008 09:15:46 -0300 Subject: [Mono-list] ASP and PDF In-Reply-To: <012701c87e4f$2d7ad540$6101a8c0@devxp> References: <11b141710803041441p3daa9f83yc7c3bf55d7d99226@mail.gmail.com> <012701c87e4f$2d7ad540$6101a8c0@devxp> Message-ID: <72e874f00803050415h7c6af39frcc0e95e31fbf36b7@mail.gmail.com> Hello. I probed iTextSharp in Mono 1.2.6, and works nice ;-) Best regards. 2008/3/4, J.P. Trosclair : > > Check out iTextSharp, it's a port of the java pdf creation library to > .net. > It may or may not work with mono, I've not tested it. > > J.P. > > > -----Original Message----- > > From: mono-list-bounces at lists.ximian.com [mailto:mono-list- > > bounces at lists.ximian.com] On Behalf Of Paulo J. Matos > > Sent: Tuesday, March 04, 2008 4:42 PM > > To: mono-list at lists.ximian.com > > Subject: [Mono-list] ASP and PDF > > > > Hello all, > > > > I'm quite new to Mono and C# technologies having only implemented > > quite simple C# programs, given that most of the time I've used other > > programming languages. As C# becomes main stream and people start > > asking for solution in C#, here I am. > > I have been given a ASP form which I need to read and output a > > formatted PDF with the information in the form. > > I'm basically asking for references on how to do this using mono (if > > possible, it would be nice the same code to run on a windows based > > system). > > > > Cheers and thanks in advance, > > > > -- > > Paulo Jorge Matos - pocm at soton.ac.uk > > http://www.personal.soton.ac.uk/pocm > > PhD Student @ ECS > > University of Southampton, UK > > Sponsor ECS runners - Action against Hunger: > > http://www.justgiving.com/ecsrunslikethewind > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080305/2d340065/attachment.html From bitez57 at gmail.com Wed Mar 5 08:50:37 2008 From: bitez57 at gmail.com (John Walker) Date: Wed, 5 Mar 2008 13:50:37 +0000 Subject: [Mono-list] mono stories Message-ID: <325919950803050550q2e412729k4025fcd251bbc08a@mail.gmail.com> Hello everyone, I'm a a final year student at the university of Portsmouth in England, I'm currently doing a project on cross-platform development using VB and Mono and I was wondering if anyone would be willing to share any stories or comments on their experiences using Mono, using VB to develop applications using Mono or any errors or bugs encountered and how they where overcome. Any information would be helpful and would be gratefully received. thanks for any help, John Walker. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080305/829f880e/attachment.html From fcorreia at gmail.com Wed Mar 5 12:46:50 2008 From: fcorreia at gmail.com (Filipe Correia) Date: Wed, 5 Mar 2008 17:46:50 +0000 Subject: [Mono-list] Mono + Cairo + Glitz Message-ID: <4ff60e1c0803050946u45092f48t158e9005cd7ddfa4@mail.gmail.com> Hi, I'm trying to use the Mono.Cairo namespace with the Glitz backend, but am having some difficulties, and was unable to find a good reference on the topic. There's a good page on the Mono website about using Cairo[1] but it doesn't address Glitz. Can someone point me to the right docs? I'm stuck in a very basic issue right now, ie, how to create a GlitzSurface object? :) I've also checked Mono's class library reference[2], but it didn't help much. Thanks, Filipe Correia [1] http://www.mono-project.com/Mono.Cairo [2] http://www.go-mono.com/docs/index.aspx?link=N%3ACairo From michael.roach at progenymedia.com Wed Mar 5 14:10:28 2008 From: michael.roach at progenymedia.com (Michael Roach) Date: Wed, 5 Mar 2008 14:10:28 -0500 Subject: [Mono-list] How do you manually install the runtime environment of Mono on Windows (Vista)? Message-ID: Hi, A project that I'm involved with has a requirement to provide a GUI with database connectivity to users while running in WinPE 2.0 (the preboot environment released with Vista). This can be done today in MFC/C++ (hard) but I'd much rather work in C# and WinForms (easy). Can anyone provide instructions on what is necessary to manually install Mono in a Windows environment? I only need the runtime environment of Mono and I cannot use the installers provided by Novell. Thanks!! Michael From monodanmorg at yahoo.com Wed Mar 5 14:43:31 2008 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Wed, 5 Mar 2008 11:43:31 -0800 (PST) Subject: [Mono-list] How do you manually install the runtime environment of Mono on Windows (Vista)? In-Reply-To: Message-ID: <530629.19483.qm@web30805.mail.mud.yahoo.com> Use the Windows Installer on a test/development machine. Install to a path like C:\mono-1.2.6 Do not install in a path like C:\Program Files\Mono-1.2.6 Zip up the results. The problem with a manual install is that the installer generates scripts based on your installation path. The installer also generates the proper pkg-config pc files found at in your mono_install_path\lib\pkgconfig And last, the installer adds a registry key for novell/mono so 3rd party applications can find the default mono installation. The installer may add a registry key for gtk+ and gtk# as well. With understanding the above, copy the zip file to another test machine. Unzip and try to run on mono on the 2nd test machine. This is where virtual machines will come in handy for you. You create a virtual machine once. For each test, copy the virtual machine file, start the virtual machine, copy over and unzip mono, test mono. --- Michael Roach wrote: > Hi, > > A project that I'm involved with has a requirement > to provide a GUI with database connectivity to users > while running in WinPE 2.0 (the preboot environment > released with Vista). This can be done today in > MFC/C++ (hard) but I'd much rather work in C# and > WinForms (easy). > > Can anyone provide instructions on what is necessary > to manually install Mono in a Windows environment? I > only need the runtime environment of Mono and I > cannot use the installers provided by Novell. > > Thanks!! > Michael ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From ceronman at gmail.com Wed Mar 5 19:15:57 2008 From: ceronman at gmail.com (=?ISO-8859-1?Q?Manuel_Alejandro_Cer=F3n_Estrada?=) Date: Wed, 5 Mar 2008 19:15:57 -0500 Subject: [Mono-list] Imagine Cup Interoperability Award Message-ID: <796874fc0803051615w515ce3e2uff9fc03a5a047ae@mail.gmail.com> Hello. I believe that Mono could be used in some way for this: http://imaginecup.com/Competition/InteroperabilityAward.aspx Cheers. Manuel Alejandro Cer?n Estrada From twiest at novell.com Wed Mar 5 23:20:37 2008 From: twiest at novell.com (Thomas Wiest) Date: Wed, 05 Mar 2008 21:20:37 -0700 Subject: [Mono-list] Mono 1.9.0 Preview 4 is out!! Message-ID: <47CF7115.8080101@novell.com> Hey Everyone, We've just released Mono 1.9.0 Preview 4 today! Please help us out by giving it a try with your applications. As always, you can get the preview releases here: http://mono.ximian.com/monobuild/preview/download-preview/ Please report any bugs that you may find using our Bugs page, AND reply to this thread with the bug numbers so we can track them! http://www.mono-project.com/Bugs You can see the bugs we're tracking for Mono 1.9.0 here: https://bugzilla.novell.com/buglist.cgi?bug_file_loc_type=allwordssubstr&bug_file_loc=http%3A%2F%2Fwww.go-mono.com%2Farchive%2F1.9%2F&order=bugs.bug_status%20 The earlier you file the bugs and reply to this message, the more likely your bugs will get fixed. Special attention is given to regressions, so if you can tell us a version of Mono where the bug worked and you tag the summary of the bug with [Regression], then it is much more likely your bug will get fixed. Please help the Mono team to make 1.9.0 the best release of Mono ever. Thanks again! Mono QA From yhdezalvarez at gmail.com Thu Mar 6 12:50:17 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Thu, 6 Mar 2008 12:50:17 -0500 Subject: [Mono-list] Threading and IO problem Message-ID: I've made a small program to use all processors on a system to analyze N text files. But when it's run on a 8 CPU PC, the CPU time stays around 70%-80% and the idle time between 20-30%. I made a small program to illustrate the problem, it was simplified it to the point it doesn't process anything. It just creates a thread for every processor on the system and every thread just reads an entire file passed as parameter: ------------------------------------ using System; using System.IO; using System.Threading; namespace MultipleReader { class Program { static void Main(string[] args) { Thread[] Threads = new Thread[Environment.ProcessorCount]; for (int Idx = 0; Idx < Threads.Length; Idx++) { MyThread T = new MyThread(args[0]); Threads[Idx] = new Thread(new ThreadStart(T.Process)); } foreach (Thread T in Threads) T.Start(); foreach (Thread T in Threads) T.Join(); } } class MyThread { private string FileName; public MyThread(string FileName) { this.FileName = FileName; } public void Process() { string Str; using (StreamReader SR = new StreamReader(FileName)) while ((Str = SR.ReadLine()) != null) ; } } } ------------------------------------ When this program is run using a large text file as a parameter (a ~600 megs file, to make the reading last in the order of tens of seconds) the same behavior is observed. Is this normal? What is causing this behavior? Is there any way to use all the processors at full capacity? The file is fully cached (cat file /dev/null) on RAM (4G RAM on this PC) before the program is started. Yanko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080306/7237a2c6/attachment.html From glen.a.ford at gmail.com Thu Mar 6 14:46:40 2008 From: glen.a.ford at gmail.com (Glen Ford) Date: Thu, 6 Mar 2008 19:46:40 +0000 Subject: [Mono-list] Threading and IO problem In-Reply-To: References: Message-ID: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> What does top or vmstat tell you? Are you getting IOWait? System CPU? Do you have 8 CPUs or 8 cores? Multicore processors often have to compete for the memory bandwidth - on one project we had to move from quad-core to multiple dual-core because of this. On Thu, Mar 6, 2008 at 5:50 PM, Yanko Hern?ndez ?lvarez wrote: > I've made a small program to use all processors on a system to analyze N > text files. But when it's run on a 8 CPU PC, the CPU time stays around > 70%-80% and the idle time between 20-30%. > > I made a small program to illustrate the problem, it was simplified it to > the point it doesn't process anything. It just creates a thread for every > processor on the system and every thread just reads an entire file passed as > parameter: > ------------------------------------ > using System; > using System.IO; > using System.Threading; > > namespace MultipleReader > { > class Program > { > static void Main(string[] args) > { > Thread[] Threads = new Thread[Environment.ProcessorCount]; > for (int Idx = 0; Idx < Threads.Length; Idx++) > { > MyThread T = new MyThread(args[0]); > Threads[Idx] = new Thread(new ThreadStart(T.Process)); > } > foreach (Thread T in Threads) > T.Start(); > foreach (Thread T in Threads) > T.Join(); > } > } > > class MyThread > { > private string FileName; > > public MyThread(string FileName) > { > this.FileName = FileName; > } > > public void Process() > { > string Str; > using (StreamReader SR = new StreamReader(FileName)) > while ((Str = SR.ReadLine()) != null) ; > } > } > } > ------------------------------------ > When this program is run using a large text file as a parameter (a ~600 megs > file, to make the reading last in the order of tens of seconds) the same > behavior is observed. Is this normal? What is causing this behavior? Is > there any way to use all the processors at full capacity? > > The file is fully cached (cat file /dev/null) on RAM (4G RAM on this PC) > before the program is started. > > Yanko > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From yhdezalvarez at gmail.com Thu Mar 6 15:46:14 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Thu, 6 Mar 2008 15:46:14 -0500 Subject: [Mono-list] Threading and IO problem In-Reply-To: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> Message-ID: On Thu, Mar 6, 2008 at 2:46 PM, Glen Ford wrote: > What does top or vmstat tell you? Are you getting IOWait? System CPU? No IOWait. The file is fully cached. vmstat partial output follows: procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 8 0 192 367328 20 2556372 0 0 0 0 14 40227 63 9 28 0 9 0 192 367280 20 2556372 0 0 0 0 25 37711 58 11 30 0 1 0 192 367280 20 2556372 0 0 0 0 12 39163 61 12 27 0 9 0 192 366932 20 2556376 0 0 0 0 14 35989 61 10 29 0 2 0 192 366684 20 2556376 0 0 0 0 29 35818 62 11 28 0 1 0 192 366436 20 2556376 0 0 0 0 11 37145 59 10 31 0 1 0 192 366412 20 2556376 0 0 0 0 26 36032 63 9 28 0 3 0 192 366460 20 2556376 0 0 0 0 13 36625 62 10 28 0 8 0 192 365908 20 2556376 0 0 0 34 78 32328 61 9 30 0 8 0 192 365948 20 2556380 0 0 0 8 33 33393 61 10 29 0 8 0 192 365932 20 2556380 0 0 0 0 93 34001 60 9 31 0 top output (top -bHp PID) while running the program follows (two samples): ---------------- top - 15:21:07 up 9 days, 1:33, 4 users, load average: 5.68, 4.70, 3.56 Tasks: 11 total, 8 running, 3 sleeping, 0 stopped, 0 zombie Cpu(s): 59.5%us, 10.9%sy, 0.0%ni, 29.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4002052k total, 3635444k used, 366608k free, 20k buffers Swap: 4000176k total, 192k used, 3999984k free, 2556400k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3169 root 20 0 250m 9100 3244 R 61 0.2 0:29.25 MultipleReader. 3168 root 20 0 250m 9100 3244 R 61 0.2 0:29.27 MultipleReader. 3166 root 20 0 250m 9100 3244 R 60 0.2 0:28.86 MultipleReader. 3167 root 20 0 250m 9100 3244 R 59 0.2 0:28.74 MultipleReader. 3164 root 20 0 250m 9100 3244 R 59 0.2 0:28.03 MultipleReader. 3165 root 20 0 250m 9100 3244 R 58 0.2 0:28.14 MultipleReader. 3162 root 20 0 250m 9100 3244 R 57 0.2 0:26.89 MultipleReader. 3163 root 20 0 250m 9100 3244 R 57 0.2 0:27.58 MultipleReader. 3153 root 20 0 250m 9100 3244 S 3 0.2 0:01.30 MultipleReader. 3161 root 20 0 250m 9100 3244 S 1 0.2 0:00.68 MultipleReader. 3159 root 20 0 250m 9100 3244 S 0 0.2 0:00.00 MultipleReader. top - 15:21:10 up 9 days, 1:33, 4 users, load average: 5.68, 4.70, 3.56 Tasks: 11 total, 3 running, 8 sleeping, 0 stopped, 0 zombie Cpu(s): 61.2%us, 8.6%sy, 0.0%ni, 30.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4002052k total, 3635244k used, 366808k free, 20k buffers Swap: 4000176k total, 192k used, 3999984k free, 2556400k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3168 root 20 0 250m 9140 3244 S 62 0.2 0:31.13 MultipleReader. 3166 root 20 0 250m 9140 3244 S 62 0.2 0:30.71 MultipleReader. 3169 root 20 0 250m 9140 3244 R 61 0.2 0:31.09 MultipleReader. 3165 root 20 0 250m 9140 3244 R 59 0.2 0:29.90 MultipleReader. 3167 root 20 0 250m 9140 3244 S 58 0.2 0:30.47 MultipleReader. 3164 root 20 0 250m 9140 3244 R 57 0.2 0:29.75 MultipleReader. 3162 root 20 0 250m 9140 3244 S 57 0.2 0:28.60 MultipleReader. 3163 root 20 0 250m 9140 3244 S 57 0.2 0:29.29 MultipleReader. 3153 root 20 0 250m 9140 3244 S 3 0.2 0:01.38 MultipleReader. 3161 root 20 0 250m 9140 3244 S 1 0.2 0:00.72 MultipleReader. 3159 root 20 0 250m 9+140 3244 S 0 0.2 0:00.00 MultipleReader. Seeing the stats, it seems I overestimated the CPU use. It's even lower than I thought (60..70% instead of 70..80%) > Do you have 8 CPUs or 8 cores? > It is a Dell PowerEdge 2900 (2 xeon 5050, dual core, each core hyperthreaded) > Multicore processors often have to compete for the memory bandwidth - > on one project we had to move from quad-core to multiple dual-core > because of this. I suspect it could be the GC. but I don't know any way to corroborate this suspicion. This statement: while ((Str = SR.ReadLine()) != null) ; should create 2.5+M strings (for the file I'm using to test this) for every thread so the GC must be called many times. Any way to corroborate this? Any workaround to use the all the CPU power available? From will.murnane at gmail.com Thu Mar 6 16:09:31 2008 From: will.murnane at gmail.com (Will Murnane) Date: Thu, 6 Mar 2008 16:09:31 -0500 Subject: [Mono-list] Threading and IO problem In-Reply-To: References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> Message-ID: <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> On Thu, Mar 6, 2008 at 3:46 PM, Yanko Hern?ndez ?lvarez wrote: > Seeing the stats, it seems I overestimated the CPU use. It's even > lower than I thought (60..70% instead of 70..80%) ... > It is a Dell PowerEdge 2900 (2 xeon 5050, dual core, each core hyperthreaded) That's only 4 real execution units. You're getting the extra smidgeon of performance that HT gives in the best case, but there just aren't 8 cores there. Getting real quad core chips (Harpertown) will likely mean you can get to full 8 core usage. If you turn off HT in the BIOS (if such a thing is possible on a Dell) you would probably see 100% utilization. But you're getting what I'd be inclined to call 120% right now, so unless you want to confirm that this is indeed the case, I'd just leave it alone. Will From madars.vitolins at gmail.com Thu Mar 6 16:42:17 2008 From: madars.vitolins at gmail.com (Madars Vitolins) Date: Thu, 6 Mar 2008 23:42:17 +0200 Subject: [Mono-list] Threading and IO problem In-Reply-To: <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> Message-ID: <3c5e57bd0803061342t3bc76b0ek383129bff283f1bd@mail.gmail.com> Well I just tried following: My cpu: Intel(R) Pentium(R) 4 CPU 2.80GHz, with HT Just run modified example and I see that it shows: .. public void Process() { int x=0; while(true) { if (x % 2>0) x+=1; else x+=3; } } ... Mem: 1033164k total, 1012292k used, 20872k free, 194076k buffers Swap: 3906496k total, 2664k used, 3903832k free, 369308k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9067 root 15 0 17804 5080 3664 S 196 0.5 1:26.65 mono ... public void Process() { string Str; while (true) { using (StreamReader SR = new StreamReader(FileName)) while ((Str = SR.ReadLine()) != null) ; } } ... File size: 3,5kb Mem: 1033164k total, 175472k used, 857692k free, 1164k buffers Swap: 3906496k total, 154100k used, 3752396k free, 38736k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9156 root 15 0 18252 5788 3764 S 164 0.6 3:24.62 mono With file size ~ 38mb Cpu(s): 94.4%us, 2.7%sy, 0.0%ni, 2.8%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 1033164k total, 226360k used, 806804k free, 1640k buffers Swap: 3906496k total, 154100k used, 3752396k free, 81516k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9193 root 15 0 18928 6388 3788 S 191 0.6 3:47.86 mono So it seems some kind of bottleneck when "new StreamReader(FileName)" get produced with file opening etc.. But my system shows CPU load like for real processors. Regards, Madars On Thu, Mar 6, 2008 at 11:09 PM, Will Murnane wrote: > On Thu, Mar 6, 2008 at 3:46 PM, Yanko Hern?ndez ?lvarez > wrote: > > Seeing the stats, it seems I overestimated the CPU use. It's even > > lower than I thought (60..70% instead of 70..80%) > ... > > It is a Dell PowerEdge 2900 (2 xeon 5050, dual core, each core > hyperthreaded) > That's only 4 real execution units. You're getting the extra smidgeon > of performance that HT gives in the best case, but there just aren't 8 > cores there. Getting real quad core chips (Harpertown) will likely > mean you can get to full 8 core usage. > > If you turn off HT in the BIOS (if such a thing is possible on a Dell) > you would probably see 100% utilization. But you're getting what I'd > be inclined to call 120% right now, so unless you want to confirm that > this is indeed the case, I'd just leave it alone. > > Will > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080306/120d2342/attachment.html From Eric.Engler at zcsterling.com Thu Mar 6 16:43:14 2008 From: Eric.Engler at zcsterling.com (Engler, Eric) Date: Thu, 6 Mar 2008 16:43:14 -0500 Subject: [Mono-list] Threading and IO problem In-Reply-To: Message-ID: <6FE5B54E82FD4B4A93CD0D8730986CBB01A4A5A1@ATLEXCV01.zcs.corp> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >I've made a small program to use all processors on a system to analyze >N text files. But when it's run on a 8 CPU PC, the CPU time stays around >70%-80% and the idle time between 20-30%. Your problem is that you need to ensure your threads get launched, and run, on each available processor. As you may have guessed, your best processor utilization will occur with 8 threads in execution on an 8-way box. In version 2.0 of the .NET Framework MS developed an elegant solution for this. Instead of creating your own threads, you can call ThreadPool.QueueUserWorkItem and pass it a delegate to a static function. This will take complete responsibility for allocating threads from the thread pool, and getting them executed on separate processors. Your overall CPU utilization will shoot up to 100. I don't know if this is implemented in Mono. NOTICE: The information contained in this electronic mail transmission is intended by the sender for the sole use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. Please do not copy it or use it for any purposes, or disclose its contents to any other person. To do so could violate state and Federal privacy laws. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected. Thank you for your cooperation. -----BEGIN PGP SIGNATURE----- Version: PGP Universal 2.6.2 Charset: us-ascii wsBVAwUBR9Blc8hfyUs+le7yAQgYuwf/ckhuc5iK2sMTLy/cgiiPP02M1R+OTOR1 iTYTF74C8Ux/0NqQ+XuLsLK1kibTeaNBa+DnlQHUkMOa73uTAS9fJEuMSlRRWVGP kCjYp9Z03eEo/3QwntcKd8xFAbUGzgNghnPyMhP5tijEn5W/1Ee3caiq5zxmRBdZ 9BBbe33zTNA7NmS5ipGSWx+xf2vWPrrUY6CYJthIbqyQkFcibYoaMmbkBH5x7P/i 90kxDk2KOsKqQtwVWt/r7ska5PkSfzo4uQP3ml+uQOzw+nazeKM/mjrSTdk73zCF pVYqlwWf7v5pNZP+fnh5OG8dqvk31og4xfEhOoZ9ZYjvfdMVEdDOgQ== =dmad -----END PGP SIGNATURE----- From maitredede at gmail.com Thu Mar 6 17:21:10 2008 From: maitredede at gmail.com (Damien DALY) Date: Thu, 6 Mar 2008 23:21:10 +0100 Subject: [Mono-list] Threading and IO problem In-Reply-To: <6FE5B54E82FD4B4A93CD0D8730986CBB01A4A5A1@ATLEXCV01.zcs.corp> References: <6FE5B54E82FD4B4A93CD0D8730986CBB01A4A5A1@ATLEXCV01.zcs.corp> Message-ID: <6df580e50803061421n20bb119flcd3582728481a836@mail.gmail.com> Hi, >From my (bad) memroy, ThreadPool is implemented. There is only a small difference between default number of thread pool. By using ThreadPool, you can't have a direct pointer on the launched Thread, so you will have to deal with other concurency management (Semaphore, mutex, or other waithandle) to wait for all task to be completed. I may be wrong, but reading lots of files at the same time, can the hard drive support the required bandwith ? Best regards, Damien 2008/3/6, Engler, Eric : > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > >I've made a small program to use all processors on a system to analyze > >N text files. But when it's run on a 8 CPU PC, the CPU time stays > around > >70%-80% and the idle time between 20-30%. > > > Your problem is that you need to ensure your threads get launched, and > run, on each available processor. As you may have guessed, your best > processor utilization will occur with 8 threads in execution on an 8-way > box. > > In version 2.0 of the .NET Framework MS developed an elegant solution > for this. Instead of creating your own threads, you can call > ThreadPool.QueueUserWorkItem and pass it a delegate to a static > function. This will take complete responsibility for allocating threads > from the thread pool, and getting them executed on separate processors. > Your overall CPU utilization will shoot up to 100. > > I don't know if this is implemented in Mono. > > > NOTICE: The information contained in this electronic mail transmission is > intended by the sender for the sole use of the named individual or entity to > which it is directed and may contain information that is privileged or > otherwise confidential. Please do not copy it or use it for any purposes, > or disclose its contents to any other person. To do so could violate state > and Federal privacy laws. If you have received this electronic mail > transmission in error, please delete it from your system without copying > or forwarding it, and notify the sender of the error by reply email or by > telephone, so that the sender's address records can be corrected. Thank you > for your cooperation. > > -----BEGIN PGP SIGNATURE----- > Version: PGP Universal 2.6.2 > Charset: us-ascii > > wsBVAwUBR9Blc8hfyUs+le7yAQgYuwf/ckhuc5iK2sMTLy/cgiiPP02M1R+OTOR1 > iTYTF74C8Ux/0NqQ+XuLsLK1kibTeaNBa+DnlQHUkMOa73uTAS9fJEuMSlRRWVGP > kCjYp9Z03eEo/3QwntcKd8xFAbUGzgNghnPyMhP5tijEn5W/1Ee3caiq5zxmRBdZ > 9BBbe33zTNA7NmS5ipGSWx+xf2vWPrrUY6CYJthIbqyQkFcibYoaMmbkBH5x7P/i > 90kxDk2KOsKqQtwVWt/r7ska5PkSfzo4uQP3ml+uQOzw+nazeKM/mjrSTdk73zCF > pVYqlwWf7v5pNZP+fnh5OG8dqvk31og4xfEhOoZ9ZYjvfdMVEdDOgQ== > =dmad > -----END PGP SIGNATURE----- > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080306/17cf0cea/attachment.html From dgyimesi at gmail.com Tue Mar 4 05:53:30 2008 From: dgyimesi at gmail.com (=?ISO-8859-1?Q?D=F6m=F6t=F6r_Gyimesi?=) Date: Tue, 4 Mar 2008 11:53:30 +0100 Subject: [Mono-list] configure mod-mono-server to handle multiple streams to a single ip Message-ID: <3b36cbf20803040253w5d6cf4ddg865b89fdee67500e@mail.gmail.com> Hi, I've googled around but i couldn't find any information regarding mod-mono configuration on the subject. My goal is to set up our mod-mono-server to accept requests from a host even if that same host just downloads a file. The current sitation is that if a user starts a download, the ajax user interaction stops until the download finishes. Any ideas? Thx, -- D?me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080304/7eb2eae7/attachment-0001.html From astromag4 at wp.pl Thu Mar 6 05:52:28 2008 From: astromag4 at wp.pl (AstroMag) Date: Thu, 6 Mar 2008 02:52:28 -0800 (PST) Subject: [Mono-list] RAM size Message-ID: <15870803.post@talk.nabble.com> Hi, How can I get computer RAM (Random Access Memory) size in MONO? -- View this message in context: http://www.nabble.com/RAM-size-tp15870803p15870803.html Sent from the Mono - General mailing list archive at Nabble.com. From astromag4 at wp.pl Thu Mar 6 09:56:14 2008 From: astromag4 at wp.pl (AstroMag) Date: Thu, 6 Mar 2008 06:56:14 -0800 (PST) Subject: [Mono-list] RAM size Message-ID: <15870803.post@talk.nabble.com> Hi, How can I get computer RAM (Random Access Memory) size in MONO? How can I get Total Physical Memory and Free Physical Memory in MONO? -- View this message in context: http://www.nabble.com/RAM-size-tp15870803p15870803.html Sent from the Mono - General mailing list archive at Nabble.com. From ulrik at m2b.se Thu Mar 6 18:10:27 2008 From: ulrik at m2b.se (Ulrik Andersson) Date: Fri, 07 Mar 2008 00:10:27 +0100 Subject: [Mono-list] Mono 1.9.0 Preview 3 is out!! In-Reply-To: References: Message-ID: <47D079E3.8030605@m2b.se> I have this exact same problem. Only It's a tiny .net 2.0 project built in vs2005 running on win 2003. I also get nothing but a blank page. Are there any additional settings that needs to be done? Did you solve this? ------------------------ I can't run any ASP.NET page under XSP2. All test made under WinXP 64Bit, site developed in VS2008 and published with "Publish" menu item. ....... I've got only empty response and see empty white page without any errors. From jit at occams.info Fri Mar 7 06:40:09 2008 From: jit at occams.info (Joshua Tauberer) Date: Fri, 07 Mar 2008 06:40:09 -0500 Subject: [Mono-list] configure mod-mono-server to handle multiple streams to a single ip In-Reply-To: <3b36cbf20803040253w5d6cf4ddg865b89fdee67500e@mail.gmail.com> References: <3b36cbf20803040253w5d6cf4ddg865b89fdee67500e@mail.gmail.com> Message-ID: <47D12999.2010407@occams.info> D?m?t?r Gyimesi wrote: > I've googled around but i couldn't find any information regarding > mod-mono configuration on the subject. My goal is to set up our > mod-mono-server to accept requests from a host even if that same host > just downloads a file. The current sitation is that if a user starts a > download, the ajax user interaction stops until the download finishes. I don't think this is a problem with mod_mono / mod-mono-server. There are no limitations like that in the life cycle of a request. (Well, I don't know about the ASP.NET internals but I doubt it. Definitely not in Apache, mod_mono, or mod-mono-server.) Each request is handled entirely separately. It might be a client-side issue- a maximum number of concurrent requests you allow your browser to send to the same server. (Under high load it could be a server-side issue too, of course.) Sorry I'm not more helpful. -- - Josh Tauberer http://razor.occams.info "Yields falsehood when preceded by its quotation! Yields falsehood when preceded by its quotation!" Achilles to Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter) From yhdezalvarez at gmail.com Fri Mar 7 07:33:40 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Fri, 7 Mar 2008 07:33:40 -0500 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> Message-ID: I sent this yesterday with the wrong sender address. Sorry > > It is a Dell PowerEdge 2900 (2 xeon 5050, dual core, each core hyperthreaded) > That's only 4 real execution units. You're getting the extra smidgeon > of performance that HT gives in the best case, but there just aren't 8 > cores there. Getting real quad core chips (Harpertown) will likely > mean you can get to full 8 core usage. Yes, I know I won't get the same processing power of 8 real processors. Nevertheless the OS should occupy the 8 logical processors to the full extent with no idle time. That isn't happening when I run this program. But it does happen when I do some other stuff, e.g. when I'm compiling the kernel with "make -j8 ...". The problem seems to be that the threads (for a reason I don't know yet) block for little periods of time. There are no other runnable process interfering here, because there is idle time left. There is no IOWAIT either, so the HDs are not the bottleneck (3 disks raid5 10Krpm). The file is cached on memory completely so there is no HD access (visually confirmed -the HDD LEDs almost doesn't blink during the program run-, besides the stats posted earlier showed it too). Besides, the example I posted is not equivalent of the original program I'm developing. That program uses a shared object that feeds the threads 10k lines at a time. With that scheme, the processor usage was around 75-80%. This is another reason that makes me think the GC is involved. Tomorrow (It's almost 5pm here in Cuba) I will try a different approach (instead of using threads, I will use processes to isolate the GC effect to one thread) > If you turn off HT in the BIOS (if such a thing is possible on a Dell) it is. see ya tomorrow. and thanks to all ;-) From yhdezalvarez at gmail.com Fri Mar 7 07:56:05 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Fri, 7 Mar 2008 07:56:05 -0500 Subject: [Mono-list] Threading and IO problem In-Reply-To: References: <6FE5B54E82FD4B4A93CD0D8730986CBB01A4A5A1@ATLEXCV01.zcs.corp> Message-ID: > Your problem is that you need to ensure your threads get launched, and > run, on each available processor. As you may have guessed, your best > processor utilization will occur with 8 threads in execution on an 8-way > box. Well I just manually created the same number of threads as the number of processors on this system. The OS should run them on an available processor and on this PC the processors are idle almost always. This is happening so there is no problem on this front. From yhdezalvarez at gmail.com Fri Mar 7 08:08:07 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Fri, 7 Mar 2008 08:08:07 -0500 Subject: [Mono-list] Threading and IO problem In-Reply-To: References: <6FE5B54E82FD4B4A93CD0D8730986CBB01A4A5A1@ATLEXCV01.zcs.corp> <6df580e50803061421n20bb119flcd3582728481a836@mail.gmail.com> Message-ID: > I may be wrong, but reading lots of files at the same time, can the hard > drive support the required bandwith ? the system has 4G of RAM, The file was fully cached before (cat file /dev/null) the program was run. This was the first suspect, of course, but no, this is not the cause. Regards Yanko From yhdezalvarez at gmail.com Fri Mar 7 08:18:20 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Fri, 7 Mar 2008 08:18:20 -0500 Subject: [Mono-list] Threading and IO problem In-Reply-To: <6FE5B54E82FD4B4A93CD0D8730986CBBF808F5@ATLEXCV01.zcs.corp> References: <6FE5B54E82FD4B4A93CD0D8730986CBB01A4A5A1@ATLEXCV01.zcs.corp> <6FE5B54E82FD4B4A93CD0D8730986CBBF808F5@ATLEXCV01.zcs.corp> Message-ID: didn't know that... Thanks ;-) On Fri, Mar 7, 2008 at 8:13 AM, Engler, Eric wrote: > just keep in mind that you lose 1 meg of RAM for each thread that you create outside of the thread pool. It's usually better to use the thread pool because those threads have already been allocated and they're just sitting there. From Eric.Engler at zcsterling.com Fri Mar 7 08:24:03 2008 From: Eric.Engler at zcsterling.com (Engler, Eric) Date: Fri, 7 Mar 2008 08:24:03 -0500 Subject: [Mono-list] Threading and IO problem References: Message-ID: <6FE5B54E82FD4B4A93CD0D8730986CBBF808F6@ATLEXCV01.zcs.corp> >If you turn off HT in the BIOS (if such a thing is possible on a Dell) >you would probably see 100% utilization. Good idea. Hyperthreading almost never works well. Intel had a good idea there. but the theoretical advantage is small, and by faking the OS into thinking you have full extra cores it causes the execution threads to be allocated poorly. True multicore processors don't have this problem (all the new chips are good). They have full extra cores and each core can run a separate thread. I don't think Intel is still making new Hypercore CPUs (at least I hope not). Eric NOTICE: The information contained in this electronic mail transmission is intended by the sender for the sole use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. Please do not copy it or use it for any purposes, or disclose its contents to any other person. To do so could violate state and Federal privacy laws. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected. Thank you for your cooperation. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3609 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080307/02d187c3/attachment-0002.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 476 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080307/02d187c3/attachment-0003.bin From jonathan.gagnon at croesus.com Fri Mar 7 08:26:32 2008 From: jonathan.gagnon at croesus.com (Jonathan Gagnon) Date: Fri, 7 Mar 2008 08:26:32 -0500 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com><27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> Message-ID: <019f01c88056$dfad2bb0$1b36a8c0@PROG159> Hi, My guess is that your threads are waiting for the data to load from the system memory to the processor cache. If you do the same test with a small file (one that would fit in the CPU cache), and read the file multiple times, I'm pretty sure that the CPU usage would go up. Jonathan -----Message d'origine----- De : mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] De la part de Yanko Hern?ndez ?lvarez Envoy? : Friday, March 07, 2008 7:34 AM ? : mono-list at lists.ximian.com Objet : [Mono-list] Fwd: Threading and IO problem I sent this yesterday with the wrong sender address. Sorry > > It is a Dell PowerEdge 2900 (2 xeon 5050, dual core, each core > > hyperthreaded) > That's only 4 real execution units. You're getting the extra smidgeon > of performance that HT gives in the best case, but there just aren't 8 > cores there. Getting real quad core chips (Harpertown) will likely > mean you can get to full 8 core usage. Yes, I know I won't get the same processing power of 8 real processors. Nevertheless the OS should occupy the 8 logical processors to the full extent with no idle time. That isn't happening when I run this program. But it does happen when I do some other stuff, e.g. when I'm compiling the kernel with "make -j8 ...". The problem seems to be that the threads (for a reason I don't know yet) block for little periods of time. There are no other runnable process interfering here, because there is idle time left. There is no IOWAIT either, so the HDs are not the bottleneck (3 disks raid5 10Krpm). The file is cached on memory completely so there is no HD access (visually confirmed -the HDD LEDs almost doesn't blink during the program run-, besides the stats posted earlier showed it too). Besides, the example I posted is not equivalent of the original program I'm developing. That program uses a shared object that feeds the threads 10k lines at a time. With that scheme, the processor usage was around 75-80%. This is another reason that makes me think the GC is involved. Tomorrow (It's almost 5pm here in Cuba) I will try a different approach (instead of using threads, I will use processes to isolate the GC effect to one thread) > If you turn off HT in the BIOS (if such a thing is possible on a Dell) it is. see ya tomorrow. and thanks to all ;-) _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From yhdezalvarez at gmail.com Fri Mar 7 09:27:32 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Fri, 7 Mar 2008 09:27:32 -0500 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> <019f01c88056$dfad2bb0$1b36a8c0@PROG159> Message-ID: > later today I will Test with 8 processes instead of 8 threads. That > way, a process garbage collection won't affect the 7 others. If I'm > right the processor usage should be 100% on all processors. Let see done :-) MultipleReader.cs -------------- using System; using System.Diagnostics; using System.Threading; namespace MultipleReader { class Program { static void Main(string[] args) { Thread[] Threads = new Thread[Environment.ProcessorCount]; for (int Idx = 0; Idx < Threads.Length; Idx++) { MyThread T = new MyThread(args[0]); Threads[Idx] = new Thread(new ThreadStart(T.ThreadEntry)); } foreach (Thread T in Threads) T.Start(); foreach (Thread T in Threads) T.Join(); } } class MyThread { private string FileName; public MyThread(string FileName) { this.FileName = FileName; } public void ThreadEntry() { Process myProcess = new Process(); // pe-format installed, no need to call mono directly myProcess.StartInfo.FileName = "Reader.exe"; myProcess.StartInfo.Arguments = FileName; myProcess.StartInfo.UseShellExecute = false; myProcess.Start(); myProcess.WaitForExit(); } } } -------------- Reader.cs -------------- using System.IO; namespace Reader { class Program { static void Main(string[] args) { string Str; using (StreamReader SR = new StreamReader(args[0])) while ((Str = SR.ReadLine()) != null) ; } } } -------------- Top output (3 samples) -------------- top - 09:17:44 up 9 days, 19:30, 4 users, load average: 3.02, 1.92, 1.42 Tasks: 9 total, 8 running, 1 sleeping, 0 stopped, 0 zombie Cpu(s): 95.5%us, 4.5%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4002052k total, 2157076k used, 1844976k free, 592k buffers Swap: 4000176k total, 188k used, 3999988k free, 1390592k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22745 root 20 0 41700 6480 3152 R 104 0.2 0:16.41 Reader.exe 22749 root 20 0 41700 6480 3148 R 101 0.2 0:17.07 Reader.exe 22746 root 20 0 41700 6488 3152 R 98 0.2 0:16.80 Reader.exe 22750 root 20 0 41700 6492 3152 R 98 0.2 0:16.80 Reader.exe 22751 root 20 0 41700 6484 3152 R 98 0.2 0:17.04 Reader.exe 22752 root 20 0 41700 6492 3152 R 95 0.2 0:16.84 Reader.exe 22747 root 20 0 41700 6496 3152 R 88 0.2 0:16.12 Reader.exe 22748 root 20 0 41700 6496 3152 R 85 0.2 0:16.27 Reader.exe 22733 root 20 0 506m 9108 3556 S 0 0.2 0:00.18 MultipleReader. top - 09:17:45 up 9 days, 19:30, 4 users, load average: 3.02, 1.92, 1.42 Tasks: 9 total, 8 running, 1 sleeping, 0 stopped, 0 zombie Cpu(s): 95.1%us, 4.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4002052k total, 2157076k used, 1844976k free, 592k buffers Swap: 4000176k total, 188k used, 3999988k free, 1390592k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22750 root 20 0 41700 6484 3152 R 104 0.2 0:17.12 Reader.exe 22746 root 20 0 41700 6480 3152 R 101 0.2 0:17.11 Reader.exe 22752 root 20 0 41700 6484 3152 R 101 0.2 0:17.15 Reader.exe 22745 root 20 0 41700 6492 3152 R 98 0.2 0:16.71 Reader.exe 22749 root 20 0 41700 6492 3148 R 98 0.2 0:17.37 Reader.exe 22751 root 20 0 41700 6496 3152 R 98 0.2 0:17.34 Reader.exe 22748 root 20 0 41700 6484 3152 R 85 0.2 0:16.53 Reader.exe 22747 root 20 0 41700 6492 3152 R 82 0.2 0:16.37 Reader.exe 22733 root 20 0 506m 9108 3556 S 0 0.2 0:00.18 MultipleReader. top - 09:17:45 up 9 days, 19:30, 4 users, load average: 3.02, 1.92, 1.42 Tasks: 9 total, 8 running, 1 sleeping, 0 stopped, 0 zombie Cpu(s): 94.7%us, 5.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4002052k total, 2157108k used, 1844944k free, 592k buffers Swap: 4000176k total, 188k used, 3999988k free, 1390592k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22745 root 20 0 41700 6492 3152 R 101 0.2 0:17.02 Reader.exe 22751 root 20 0 41700 6504 3152 R 101 0.2 0:17.65 Reader.exe 22746 root 20 0 41700 6492 3152 R 98 0.2 0:17.41 Reader.exe 22747 root 20 0 41700 6488 3152 R 98 0.2 0:16.67 Reader.exe 22750 root 20 0 41700 6496 3152 R 98 0.2 0:17.42 Reader.exe 22752 root 20 0 41700 6496 3152 R 98 0.2 0:17.45 Reader.exe 22749 root 20 0 41700 6496 3148 R 88 0.2 0:17.64 Reader.exe 22748 root 20 0 41700 6488 3152 R 85 0.2 0:16.79 Reader.exe 22733 root 20 0 506m 9108 3556 S 0 0.2 0:00.18 MultipleReader. -------------- Top is showing some artifacts when is measuring the individual CPU time (that's normal). look at the aggregated CPU usage (3rd row on each sample): 0.0%id Ok, then there is one question left: is there any way to program this using threads without the GC interfering? any ideas? Best regards Yanko From lupus at ximian.com Fri Mar 7 10:32:12 2008 From: lupus at ximian.com (Paolo Molaro) Date: Fri, 7 Mar 2008 16:32:12 +0100 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> <019f01c88056$dfad2bb0$1b36a8c0@PROG159> Message-ID: <20080307153212.GN17865@debian.org> On 03/07/08 Yanko Hern?ndez ?lvarez wrote: > Ok, then there is one question left: is there any way to program this > using threads without the GC interfering? any ideas? It looks like the GC needs a little manual tuning for your app. For a 600 MB file on a dual core with 2 threads running a good default seems to be setting an initial heap size of 10 MB: GC_INITIAL_HEAP_SIZE=10000000 mono yourprog.exe With 4 threads (which is sort of equivalent to 8 threads on a 4 cpu hyperthreaded box) you need about 20 MB, but try also with more and measure what's best for your workload (and please report back your results). lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From lupus at ximian.com Fri Mar 7 10:33:53 2008 From: lupus at ximian.com (Paolo Molaro) Date: Fri, 7 Mar 2008 16:33:53 +0100 Subject: [Mono-list] RAM size In-Reply-To: <15870803.post@talk.nabble.com> References: <15870803.post@talk.nabble.com> Message-ID: <20080307153353.GO17865@debian.org> On 03/06/08 AstroMag wrote: > How can I get computer RAM (Random Access Memory) size in MONO? > How can I get Total Physical Memory and Free Physical Memory in MONO? On Linux you can read the /proc/meminfo file which contains stuff like: MemTotal: 2067116 kB MemFree: 191708 kB lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From yhdezalvarez at gmail.com Fri Mar 7 13:45:32 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Fri, 7 Mar 2008 13:45:32 -0500 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: <20080307153212.GN17865@debian.org> References: <39c74bb90803061146l35ad573ck349d4eb4a837cc89@mail.gmail.com> <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> <019f01c88056$dfad2bb0$1b36a8c0@PROG159> <20080307153212.GN17865@debian.org> Message-ID: On Fri, Mar 7, 2008 at 10:32 AM, Paolo Molaro wrote: > On 03/07/08 Yanko Hern?ndez ?lvarez wrote: > > Ok, then there is one question left: is there any way to program this > > using threads without the GC interfering? any ideas? > > It looks like the GC needs a little manual tuning for your app. > For a 600 MB file on a dual core with 2 threads running a good > default seems to be setting an initial heap size of 10 MB: > GC_INITIAL_HEAP_SIZE=10000000 mono yourprog.exe > With 4 threads (which is sort of equivalent to 8 threads on a 4 cpu > hyperthreaded box) you need about 20 MB, but try also with more > and measure what's best for your workload (and please report back your > results). # time ./program.exe example.log real 1m3.233s user 4m55.657s sys 0m51.567s # (./program.exe example.log &); top -b | grep 'Cpu(s)' Cpu(s): 2.2%us, 0.5%sy, 0.4%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 61.6%us, 8.8%sy, 0.0%ni, 29.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 58.6%us, 11.7%sy, 0.0%ni, 29.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 57.4%us, 10.1%sy, 0.0%ni, 32.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 60.8%us, 9.2%sy, 0.0%ni, 30.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 57.4%us, 9.8%sy, 0.0%ni, 32.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 59.8%us, 9.6%sy, 0.0%ni, 30.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 58.6%us, 11.5%sy, 0.0%ni, 29.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 60.3%us, 10.2%sy, 0.0%ni, 29.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 63.0%us, 9.6%sy, 0.0%ni, 27.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 62.2%us, 10.2%sy, 0.0%ni, 27.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 62.3%us, 9.7%sy, 0.0%ni, 28.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 59.9%us, 10.1%sy, 0.0%ni, 30.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 57.4%us, 9.2%sy, 0.0%ni, 33.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 59.3%us, 9.2%sy, 0.0%ni, 31.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 57.7%us, 9.4%sy, 0.0%ni, 32.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 60.7%us, 9.1%sy, 0.0%ni, 30.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 60.7%us, 8.8%sy, 0.0%ni, 30.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 57.2%us, 9.2%sy, 0.0%ni, 33.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 48.7%us, 5.8%sy, 0.0%ni, 45.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 29.6%us, 2.3%sy, 0.0%ni, 68.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 27.6%us, 1.6%sy, 0.0%ni, 70.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 10.5%us, 0.9%sy, 0.0%ni, 88.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 0.8%us, 0.1%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st idle: ~30% ----------- # time GC_INITIAL_HEAP_SIZE=10485760 ./program.exe example.log real 0m51.897s user 4m42.115s sys 0m43.071s # (GC_INITIAL_HEAP_SIZE=10485760 ./program.exe example.log &); top -b | grep 'Cpu(s)' Cpu(s): 2.2%us, 0.5%sy, 0.4%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 67.6%us, 12.5%sy, 0.0%ni, 19.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 68.4%us, 12.4%sy, 0.0%ni, 19.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 70.5%us, 11.1%sy, 0.0%ni, 18.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 69.0%us, 11.5%sy, 0.0%ni, 19.5%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st Cpu(s): 69.3%us, 9.6%sy, 0.0%ni, 21.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 70.7%us, 10.4%sy, 0.0%ni, 18.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 70.6%us, 10.2%sy, 0.0%ni, 19.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 71.5%us, 9.6%sy, 0.0%ni, 18.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 71.9%us, 9.9%sy, 0.0%ni, 18.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 70.9%us, 10.3%sy, 0.0%ni, 18.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 71.4%us, 9.1%sy, 0.0%ni, 19.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 68.4%us, 10.3%sy, 0.0%ni, 21.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 68.4%us, 9.7%sy, 0.0%ni, 21.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 71.7%us, 9.4%sy, 0.0%ni, 18.8%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st Cpu(s): 60.1%us, 6.9%sy, 0.0%ni, 33.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 29.1%us, 1.3%sy, 0.0%ni, 69.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 24.0%us, 0.9%sy, 0.0%ni, 75.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 4.0%us, 0.5%sy, 0.0%ni, 95.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 0.9%us, 0.1%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st idle: ~20% ----------- # time GC_INITIAL_HEAP_SIZE=20971520 ./program.exe example.log real 0m51.010s user 4m45.998s sys 0m35.541s (GC_INITIAL_HEAP_SIZE=20971520 ./program.exe example.log &); top -b | grep 'Cpu(s)' Cpu(s): 2.2%us, 0.5%sy, 0.4%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.1%us, 9.0%sy, 0.0%ni, 13.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 74.3%us, 11.1%sy, 0.0%ni, 14.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.3%us, 8.4%sy, 0.0%ni, 13.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.0%us, 9.2%sy, 0.0%ni, 14.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 79.0%us, 7.2%sy, 0.0%ni, 13.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.3%us, 9.0%sy, 0.0%ni, 14.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.6%us, 8.9%sy, 0.0%ni, 13.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 75.8%us, 8.7%sy, 0.0%ni, 15.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.4%us, 8.9%sy, 0.0%ni, 14.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.5%us, 7.6%sy, 0.0%ni, 13.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.6%us, 9.1%sy, 0.0%ni, 14.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 75.9%us, 9.3%sy, 0.0%ni, 14.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.9%us, 7.8%sy, 0.0%ni, 15.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 72.5%us, 7.0%sy, 0.0%ni, 20.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 60.9%us, 3.9%sy, 0.0%ni, 35.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 44.3%us, 2.0%sy, 0.0%ni, 53.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 29.7%us, 1.5%sy, 0.0%ni, 68.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 0.4%us, 0.0%sy, 0.0%ni, 99.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st idle: ~14% ----------- # time GC_INITIAL_HEAP_SIZE=52428800 ./program.exe example.log real 0m50.480s user 4m53.144s sys 0m39.427s # (GC_INITIAL_HEAP_SIZE=52428800 ./program.exe example.log &); top -b | grep 'Cpu(s)' Cpu(s): 2.2%us, 0.5%sy, 0.4%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.2%us, 10.8%sy, 0.0%ni, 12.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.4%us, 12.2%sy, 0.0%ni, 11.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.3%us, 11.1%sy, 0.0%ni, 10.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 80.2%us, 9.5%sy, 0.0%ni, 10.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 80.0%us, 8.8%sy, 0.0%ni, 11.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 80.7%us, 9.1%sy, 0.0%ni, 10.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.1%us, 11.0%sy, 0.0%ni, 10.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 82.0%us, 7.8%sy, 0.0%ni, 10.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.4%us, 10.3%sy, 0.0%ni, 11.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 79.1%us, 8.3%sy, 0.0%ni, 12.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.5%us, 10.9%sy, 0.0%ni, 11.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.5%us, 11.4%sy, 0.0%ni, 10.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 79.4%us, 9.6%sy, 0.0%ni, 11.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.9%us, 8.6%sy, 0.0%ni, 14.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 61.5%us, 4.5%sy, 0.0%ni, 34.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 46.2%us, 2.5%sy, 0.0%ni, 51.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 12.6%us, 0.7%sy, 0.0%ni, 86.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st idle: ~11% ----------- # time GC_INITIAL_HEAP_SIZE=104857600 ./program.exe example.log real 0m51.476s user 5m5.350s sys 0m33.844s # (GC_INITIAL_HEAP_SIZE=104857600 ./program.exe example.log &); top -b | grep 'Cpu(s)' Cpu(s): 2.2%us, 0.5%sy, 0.4%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.7%us, 12.5%sy, 0.0%ni, 10.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.6%us, 11.8%sy, 0.0%ni, 11.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 75.7%us, 12.5%sy, 0.0%ni, 11.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.8%us, 11.6%sy, 0.0%ni, 11.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.9%us, 11.7%sy, 0.0%ni, 11.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.6%us, 11.4%sy, 0.0%ni, 11.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.6%us, 11.8%sy, 0.0%ni, 11.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.9%us, 11.0%sy, 0.0%ni, 12.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.0%us, 12.0%sy, 0.0%ni, 12.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 78.0%us, 11.1%sy, 0.0%ni, 10.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 75.3%us, 13.0%sy, 0.0%ni, 11.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 76.9%us, 11.8%sy, 0.0%ni, 11.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.0%us, 10.2%sy, 0.0%ni, 12.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 51.3%us, 5.0%sy, 0.0%ni, 43.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 25.6%us, 0.8%sy, 0.0%ni, 73.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 18.7%us, 0.8%sy, 0.0%ni, 80.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 0.3%us, 0.1%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st idle: ~11% ----------- # time ./MultipleReader.exe example.log real 0m24.655s user 2m59.065s sys 0m9.483s # (./MultipleReader.exe example.log &); top -b | grep 'Cpu(s)' Cpu(s): 2.2%us, 0.5%sy, 0.4%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 94.2%us, 5.4%sy, 0.0%ni, 0.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 94.7%us, 5.1%sy, 0.0%ni, 0.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 93.4%us, 5.2%sy, 0.0%ni, 1.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 95.3%us, 4.7%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 93.3%us, 5.0%sy, 0.0%ni, 1.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 94.2%us, 5.5%sy, 0.0%ni, 0.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 91.4%us, 5.0%sy, 0.0%ni, 3.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 77.5%us, 3.7%sy, 0.0%ni, 18.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 0.4%us, 0.1%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st idle: ~1% ----------- The multiprocess version is still the best. And it is a pity. The original program queries a DB, with a multithread version all threads can share a cache, and only query the DB the first time an ID is needed. I can't do that with a multiprocess program just as easily. OTOH and as a curiosity: Is there any way to free memory directly (at CIL level I mean) without using the GC? for instance: while ((Str = SR.ReadLine()) != null) ; with a little flow analisis we can determine Str isn't used after it is assigned. is there a way to deallocate it efficiently without waiting for the GC to collect memory? Best regards Yanko From pocm at soton.ac.uk Fri Mar 7 15:13:45 2008 From: pocm at soton.ac.uk (Paulo J. Matos) Date: Fri, 7 Mar 2008 20:13:45 +0000 Subject: [Mono-list] ASP and PDF In-Reply-To: <72e874f00803050415h7c6af39frcc0e95e31fbf36b7@mail.gmail.com> References: <11b141710803041441p3daa9f83yc7c3bf55d7d99226@mail.gmail.com> <012701c87e4f$2d7ad540$6101a8c0@devxp> <72e874f00803050415h7c6af39frcc0e95e31fbf36b7@mail.gmail.com> Message-ID: <11b141710803071213o2de07c95tdcb59ef80b85b96@mail.gmail.com> On Wed, Mar 5, 2008 at 12:15 PM, Daniel Soto wrote: > Hello. > > I probed iTextSharp in Mono 1.2.6, and works nice ;-) > Many thanks! > Best regards. > > > 2008/3/4, J.P. Trosclair : > > > > Check out iTextSharp, it's a port of the java pdf creation library to > .net. > > It may or may not work with mono, I've not tested it. > > > > J.P. > > > > > -----Original Message----- > > > From: mono-list-bounces at lists.ximian.com [mailto:mono-list- > > > bounces at lists.ximian.com] On Behalf Of Paulo J. Matos > > > Sent: Tuesday, March 04, 2008 4:42 PM > > > To: mono-list at lists.ximian.com > > > Subject: [Mono-list] ASP and PDF > > > > > > Hello all, > > > > > > I'm quite new to Mono and C# technologies having only implemented > > > quite simple C# programs, given that most of the time I've used other > > > programming languages. As C# becomes main stream and people start > > > asking for solution in C#, here I am. > > > I have been given a ASP form which I need to read and output a > > > formatted PDF with the information in the form. > > > I'm basically asking for references on how to do this using mono (if > > > possible, it would be nice the same code to run on a windows based > > > system). > > > > > > Cheers and thanks in advance, > > > > > > -- > > > Paulo Jorge Matos - pocm at soton.ac.uk > > > http://www.personal.soton.ac.uk/pocm > > > PhD Student @ ECS > > > University of Southampton, UK > > > Sponsor ECS runners - Action against Hunger: > > > http://www.justgiving.com/ecsrunslikethewind > > > _______________________________________________ > > > Mono-list maillist - Mono-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK Sponsor ECS runners - Action against Hunger: http://www.justgiving.com/ecsrunslikethewind From dan.shryock at gmail.com Fri Mar 7 15:24:11 2008 From: dan.shryock at gmail.com (Dan Shryock) Date: Fri, 7 Mar 2008 12:24:11 -0800 Subject: [Mono-list] configure mod-mono-server to handle multiple streams to a single ip In-Reply-To: <3b36cbf20803040253w5d6cf4ddg865b89fdee67500e@mail.gmail.com> References: <3b36cbf20803040253w5d6cf4ddg865b89fdee67500e@mail.gmail.com> Message-ID: <5fe9674f0803071224m4a4bc5d1nf9c31f95f3742a2e@mail.gmail.com> >From what I understand, most http clients are supposed to limit themselves to 2 connections to a single server at a time. To avoid that, many sites (like google maps) use multiple subdomains handle the requests. This is why you will see domains like mt0.google.com and mt1.google.com during google maps usage. Hope that helps. Dan On Tue, Mar 4, 2008 at 2:53 AM, D?m?t?r Gyimesi wrote: > Hi, > > I've googled around but i couldn't find any information regarding mod-mono > configuration on the subject. My goal is to set up our mod-mono-server to > accept requests from a host even if that same host just downloads a file. > The current sitation is that if a user starts a download, the ajax user > interaction stops until the download finishes. > > Any ideas? > > Thx, > -- > D?me > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From kevinbe71 at yahoo.com Fri Mar 7 23:06:39 2008 From: kevinbe71 at yahoo.com (Kevin Berry) Date: Fri, 7 Mar 2008 20:06:39 -0800 (PST) Subject: [Mono-list] ASP.NET Forms Authentication Message-ID: <481885.98350.qm@web51612.mail.re2.yahoo.com> I can't get forms authentication to work under XSP 2.0. I'm using the following code in my login button click event handler if the login entered is correct: FormsAuthentication.Initialize(); String strRole = assignRoles(loginTextBox.Text); //The AddMinutes determines how long the user will be logged in after leaving //the site if he doesn't log off. FormsAuthenticationTicket fat = new FormsAuthenticationTicket(1, loginTextBox.Text, DateTime.Now, DateTime.Now.AddMinutes(30), false, strRole, FormsAuthentication.FormsCookiePath); Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(fat))); Response.Redirect(FormsAuthentication.GetRedirectUrl(loginTextBox.Text, false)); In the Web.config file I have: This works with VS 2005 and the ASP.NET web dev server. Why doesn't this work with Mono's XSP 2.0 web server? Is there something I can change to make sure this works? NOTE: I'm using Mono 1.2.6 under Windows Vista x64 but plan to move this to a Linux Apache web server once I have it working on Windows. Surely this doesn't make any difference though... Thanks, Kevin. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From tom at opgenorth.net Sat Mar 8 12:31:20 2008 From: tom at opgenorth.net (Tom Opgenorth) Date: Sat, 8 Mar 2008 10:31:20 -0700 Subject: [Mono-list] Error with Mono & Monorail #2 Message-ID: <140160570803080931k159e13dbr4c8ca0cd3ef2a6ba@mail.gmail.com> Thanks Robert for helping me out with my last Mono/Monorail question. Using Mono 1.9 did seem to fix the last problem. However, running under Mono 1.9b4 and XSP2 I get the following error: Server Error in '/' Application Could not find view template: timecard\addtime Description: HTTP 500. Error processing request. Stack Trace: Castle.MonoRail.Framework.RailsException: Could not find view template: timecard\addtime at Castle.MonoRail.Framework.Services.DefaultViewEngineManager.AssertTemplateExists (System.String resolvedTemplateName, System.String templateName) [0x00000] at Castle.MonoRail.Framework.Services.DefaultViewEngineManager.Process (IRailsEngineContext context, Castle.MonoRail.Framework.Controller controller, System.String templateName) [0x00000] at Castle.MonoRail.Framework.ControllerLifecycleExecutor.ProcessView () [0x00000] at Castle.MonoRail.Framework.ControllerLifecycleExecutor.ProcessSelectedAction (IDictionary actionArgs) [0x00000] at Castle.MonoRail.Framework.ControllerLifecycleExecutor.ProcessSelectedAction () [0x00000] at Castle.MonoRail.Framework.MonoRailHttpHandler.Process (IRailsEngineContext context) [0x00000] No such issues when I run on Windows. Any suggestions/pointers? -- http://www.opgenorth.net From andreas.faerber at web.de Sat Mar 8 12:37:01 2008 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sat, 8 Mar 2008 18:37:01 +0100 Subject: [Mono-list] Error with Mono & Monorail #2 In-Reply-To: <140160570803080931k159e13dbr4c8ca0cd3ef2a6ba@mail.gmail.com> References: <140160570803080931k159e13dbr4c8ca0cd3ef2a6ba@mail.gmail.com> Message-ID: Am 08.03.2008 um 18:31 schrieb Tom Opgenorth: > running > under Mono 1.9b4 and XSP2 I get the following error: > > Server Error in '/' Application > Could not find view template: timecard\addtime > > Description: HTTP 500. Error processing request. > > Stack Trace: > > Castle.MonoRail.Framework.RailsException: Could not find view > template: timecard\addtime > at > Castle > .MonoRail > .Framework.Services.DefaultViewEngineManager.AssertTemplateExists > (System.String resolvedTemplateName, System.String templateName) > [0x00000] > at > Castle.MonoRail.Framework.Services.DefaultViewEngineManager.Process > (IRailsEngineContext context, Castle.MonoRail.Framework.Controller > controller, System.String templateName) [0x00000] > at Castle.MonoRail.Framework.ControllerLifecycleExecutor.ProcessView > () [0x00000] > at > Castle > .MonoRail.Framework.ControllerLifecycleExecutor.ProcessSelectedAction > (IDictionary actionArgs) [0x00000] > at > Castle > .MonoRail.Framework.ControllerLifecycleExecutor.ProcessSelectedAction > () [0x00000] > at Castle.MonoRail.Framework.MonoRailHttpHandler.Process > (IRailsEngineContext context) [0x00000] > > No such issues when I run on Windows. Any suggestions/pointers? Unices use a different path separator: have you tried timecard/addtime? Andreas From tom at opgenorth.net Sat Mar 8 13:41:43 2008 From: tom at opgenorth.net (Tom Opgenorth) Date: Sat, 8 Mar 2008 11:41:43 -0700 Subject: [Mono-list] Error with Mono & Monorail #2 In-Reply-To: References: <140160570803080931k159e13dbr4c8ca0cd3ef2a6ba@mail.gmail.com> Message-ID: <140160570803081041y771776aeke9a40ec4b6d5129b@mail.gmail.com> On Sat, Mar 8, 2008 at 10:37 AM, Andreas F?rber wrote: > > Server Error in '/' Application > > Could not find view template: timecard\addtime > > > > Description: HTTP 500. Error processing request. > > > > Stack Trace: > > > > Castle.MonoRail.Framework.RailsException: Could not find view > > template: timecard\addtime > Unices use a different path separator: have you tried timecard/addtime? I would assume that Monorail is doing the correct routing for the request. I point my browser to http://localhost:8088/timecard/addtime.rails, and I get that error. There actually isn't a file addtime.rails, so I'm not sure why this happens. -- http://www.opgenorth.net From cdhowie at gmail.com Sun Mar 9 07:47:31 2008 From: cdhowie at gmail.com (Chris Howie) Date: Sun, 9 Mar 2008 06:47:31 -0500 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: References: <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> <019f01c88056$dfad2bb0$1b36a8c0@PROG159> <20080307153212.GN17865@debian.org> Message-ID: <3d2f29dc0803090447n2e6d7062u7e7c39c72b8e733a@mail.gmail.com> On Fri, Mar 7, 2008 at 1:45 PM, Yanko Hern?ndez ?lvarez wrote: > OTOH and as a curiosity: Is there any way to free memory directly (at > CIL level I mean) without using the GC? for instance: > > > while ((Str = SR.ReadLine()) != null) ; > > with a little flow analisis we can determine Str isn't used after it > is assigned. is there a way to deallocate it efficiently without > waiting for the GC to collect memory? This would also have to be determined for the ReadLine() method (making sure it doesn't stash a reference somewhere) as well as any methods that ReadLine() passes that string reference to (which may be none, but you get my point). I have often wished for the same thing, but implementing it is considerably more complicated than it looks. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From sam.barker0 at gmail.com Sun Mar 9 20:19:13 2008 From: sam.barker0 at gmail.com (sam barker) Date: Mon, 10 Mar 2008 11:19:13 +1100 Subject: [Mono-list] SocketException Message-ID: <4064cf4d0803091719t72e9d739w440abc8ec0c5210f@mail.gmail.com> Hi all, I am new to mono. I am tried to run a program.And it threw this exception Unhandled Exception: System.Net.Sockets.SocketException: No such host is known The program works fine in when I run it with mono in windows but not with mono in Ubuntu. Can anybody tell me what I am doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080310/d810c5b5/attachment-0001.html From trofimich at gmail.com Mon Mar 10 05:11:14 2008 From: trofimich at gmail.com (sasha) Date: Mon, 10 Mar 2008 11:11:14 +0200 Subject: [Mono-list] Mono 1.9.0 Preview 4 is out!! In-Reply-To: <47CF7115.8080101@novell.com> References: <47CF7115.8080101@novell.com> Message-ID: Could you look at bug https://bugzilla.novell.com/show_bug.cgi?id=368516 From yhdezalvarez at gmail.com Mon Mar 10 10:08:48 2008 From: yhdezalvarez at gmail.com (=?UTF-8?Q?Yanko_Hern=C3=A1ndez_=C3=81lvarez?=) Date: Mon, 10 Mar 2008 10:08:48 -0400 Subject: [Mono-list] Fwd: Threading and IO problem In-Reply-To: <3d2f29dc0803090447n2e6d7062u7e7c39c72b8e733a@mail.gmail.com> References: <27b05b490803061309t1efcce59kee51e7150ceeef89@mail.gmail.com> <019f01c88056$dfad2bb0$1b36a8c0@PROG159> <20080307153212.GN17865@debian.org> <3d2f29dc0803090447n2e6d7062u7e7c39c72b8e733a@mail.gmail.com> Message-ID: > > OTOH and as a curiosity: Is there any way to free memory directly (at > > CIL level I mean) without using the GC? for instance: > > > > > > while ((Str = SR.ReadLine()) != null) ; > > > > with a little flow analisis we can determine Str isn't used after it > > is assigned. is there a way to deallocate it efficiently without > > waiting for the GC to collect memory? > > This would also have to be determined for the ReadLine() method > (making sure it doesn't stash a reference somewhere) as well as any > methods that ReadLine() passes that string reference to (which may be > none, but you get my point). Yes, I know. When I asked about it I was thinking of a way for the JIT to rely on the compiler to do this analysis, and don't waste JIT compilation time on this matter. I mean, to successfully implement this, there must be a way to tell the runtime this object won't be used in the future without it having to wait for the GC to extract this knowledge from the live object references. This would allow to: * convey more information of the object usage to the runtime. The runtime could use this information to detect incorrect programmer assumptions ("This object is of no use at this point, so the GC will collect it..") about the program behavior (for instance in debug mode, this could be treated as a hint). See for example bug #357649(https://bugzilla.novell.com/show_bug.cgi?id=357649). I assume (from comment #3) the library programmer thought no one was using the input stream at his point (when a "Process" object is finalized), so let's close it. There is no way to assert this information ("there is no reference to this stream") to the runtime (at least I don't know how to do it). Result: this particular error. This would also help to detect unexpected "... stashed references somewhere" (memory leaks in many cases ;-) which is a good thing I suppose. * lessen the pressure on the GC (using some invocation switch to the runtime) to treat these hints as deallocations. * anything in between. If the runtime doesn't help with this, this would only be possible at JIT time (or at AOT compilation with a little extra support from the mono runtime). Well to much daydreaming for today, back to work Best regards Yanko From dgyimesi at gmail.com Fri Mar 7 15:29:40 2008 From: dgyimesi at gmail.com (=?ISO-8859-1?Q?D=F6m=F6t=F6r_Gyimesi?=) Date: Fri, 7 Mar 2008 21:29:40 +0100 Subject: [Mono-list] configure mod-mono-server to handle multiple streams to a single ip In-Reply-To: <3b36cbf20803071228y4ebd4b1nc1ff87ea426d0e83@mail.gmail.com> References: <3b36cbf20803040253w5d6cf4ddg865b89fdee67500e@mail.gmail.com> <5fe9674f0803071224m4a4bc5d1nf9c31f95f3742a2e@mail.gmail.com> <3b36cbf20803071228y4ebd4b1nc1ff87ea426d0e83@mail.gmail.com> Message-ID: <3b36cbf20803071229y4dd45c22wd6f327c598dfb0c7@mail.gmail.com> First of all, thank you for your replies. And yes, you've right, I should set up a separate subdomain for streaming only. So guys, thanks again. Happy hacking, -- D?me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080307/a2631e26/attachment.html From cdhowie at gmail.com Mon Mar 10 12:51:05 2008 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 10 Mar 2008 12:51:05 -0400 Subject: [Mono-list] SocketException In-Reply-To: <4064cf4d0803091719t72e9d739w440abc8ec0c5210f@mail.gmail.com> References: <4064cf4d0803091719t72e9d739w440abc8ec0c5210f@mail.gmail.com> Message-ID: <3d2f29dc0803100951l2b558dbcxa5744ff0b6147ba2@mail.gmail.com> On Sun, Mar 9, 2008 at 8:19 PM, sam barker wrote: > Hi all, > I am new to mono. > I am tried to run a program.And it threw this exception > > Unhandled Exception: System.Net.Sockets.SocketException: No such host is > known Do you know what host it is looking for? -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From miguel at ximian.com Mon Mar 10 13:07:07 2008 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 10 Mar 2008 13:07:07 -0400 Subject: [Mono-list] Mono.DataConvert In-Reply-To: <1204731145.19825.11.camel@erandi.boston.ximian.com> References: <1204514247.6252.17.camel@emmsee> <1204731145.19825.11.camel@erandi.boston.ximian.com> Message-ID: <1205168827.23161.1.camel@erandi.boston.ximian.com> Resending. On Wed, 2008-03-05 at 10:32 -0500, Miguel de Icaza wrote: > This mailing list, and you can CC me as well. > > On Sun, 2008-03-02 at 20:17 -0700, Kenneth D. Weinert wrote: > > Where is the correct place to submit a patch for the above software. > > > > I found a bug in the Unpack routine. > > > > Thanks. > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list From ajorgensen at novell.com Mon Mar 10 13:58:30 2008 From: ajorgensen at novell.com (Andrew Jorgensen) Date: Mon, 10 Mar 2008 11:58:30 -0600 Subject: [Mono-list] Suggestion: Mono 1.2.6 / openSUSE 10.3 VMware Image-SCSI instead of IDE In-Reply-To: <82692d4a0803031553p1607ed51vf94366852d1a0bba@mail.gmail.com> References: <82692d4a0802161116v24ec1252x5d6e2f92f5bf105c@mail.gmail.com> <1204585487.19994.26.camel@nova.jorgensenfamily.us> <82692d4a0803031553p1607ed51vf94366852d1a0bba@mail.gmail.com> Message-ID: <1205171911.23624.15.camel@nova.jorgensenfamily.us> vmware-vdiskmanager cannot convert from IDE to scsi. I don't know about qemu-img supporting scsi some day. It would be worth asking them but I doubt it would be important as they have their own disk format. Another reason this is not likely to happen is that IDE and SCSI disks use different geometries (at least that's what the error message in vmware says) and converting a disk image to a different geometry would require changes to the partition table. On Mon, 2008-03-03 at 15:53 -0800, Swaminathan Saikumar wrote: > If you install VMware Server (or even Player, I think), it comes with: > vmware-vdiskmanager.exe, which I believe can convert IDE disks to > SCSI. If you do that manually, you need to change the vmx file to > point to the SCSI disk instead of IDE. > Does SCSI support sound like a feature request for Kiwi/qemu-img, > given its high level goals? > > On 3/3/08, Andrew Jorgensen wrote: > On Sat, 2008-02-16 at 11:16 -0800, Swaminathan Saikumar wrote: > > Hello, the VM image works great with VMware player/server, > and I loved > > MojoPortal on it. However, a lot of corporations use VMware > ESX > > server, which supports only SCSI disks on a VM. This VM > image uses an > > IDE disk. Changing it use a SCSI disk when building the > image should > > be pretty easy. If you can do that, it would be great, and > would help > > propagation of the image. > > Kiwi (the system which creates our vmware image) uses qemu-img > to create > the disk image. qemu-img cannot create or convert to a scsi > vmdk type. > Also there are no other tools to convert from an ide disk to > scsi. > > Thank you for the suggestion. Sorry for taking so long to get > back to > you about this. > > > - Andrew > > From gnorton at novell.com Mon Mar 10 16:57:04 2008 From: gnorton at novell.com (Geoff Norton) Date: Mon, 10 Mar 2008 16:57:04 -0400 Subject: [Mono-list] Announcing moonlight-list Message-ID: <0279FE9B-2C81-4343-AA24-8B5BA97D9F5B@novell.com> I have just created a new mailing list specific to Moonlight. You can subscribe to this new list @ http://lists.ximian.com/mailman/listinfo/moonlight-list Let me know if there are any issues. -g From mike at moga.to Mon Mar 10 21:29:44 2008 From: mike at moga.to (Mike Cleaver) Date: Tue, 11 Mar 2008 10:29:44 +0900 Subject: [Mono-list] Nant / Osx Message-ID: <2D3C3EC6-29A1-4DA5-967F-CFCE4BC4E668@moga.to> Hi all, I've been having some troubles building my project under osx 10.5.2. Our project is normally compiled via a Monodevelop solution which has always worked fine - I'm just trying to get it to compile on my laptop. I've written NANT scripts to build all of the different projects but have had trouble with: 1) Gdk - I use it for image resizing. I have to have a reference directly to the gdk-sharp-2.0 alias - Now I vaguely remember seeing a tutorial about using pkg-config to create a link to the dlls so that they can be easily referenced but couldnt find it when i looked today? Is there some way to get the NANT script to add mono package references instead? 2) When I actually run the app, it bombs out saying that it cant find the dll - @@@ Failed to startup GDK - System.DllNotFoundException: libglib-2.0-0.dll at (wrapper managed-to-native) GLib.Marshaller:g_malloc (uintptr) at GLib.Marshaller.StringToPtrGStrdup (System.String str) [0x00000] at GLib.Argv..ctor (System.String[] args, Boolean add_program_name) [0x00000] at Gdk.Global.InitCheck (System.String[]& argv) [0x00000] at Mogato.Services.GdkResamplingService..ctor () [0x00000] This is a concern, any comments? 3) I have similar issues for System.Runtime / System.Runtime.Serialization dlls as number 1. So really I'm just having some troubles with packages / references as Monodevelop magically handled them for me before which is great but now I need to understand a little more myself. Any pointers or ideas anyone? Cheers, Mike Cleaver FYI, I can compile under Monodevelop / Osx ok (as it handles reference packages) but point 2 is still a problem. My laptop is a 1ghz g4 so MD doesn't run well enough and I'd prefer to use tm/vi. From lindsay at softlog.com.au Tue Mar 11 00:39:45 2008 From: lindsay at softlog.com.au (Lindsay Mathieson) Date: Tue, 11 Mar 2008 14:39:45 +1000 Subject: [Mono-list] Displaying Streaming Video? Message-ID: <47D60D11.4000205@softlog.com.au> Can anyone point to documentation on how to display video under linux using mono? is there a builtin api or would I have to embed something like VLC or xine using unmanaged code? Background : Working on a basic frontend to a mythtv server Thanks - Lindsay -- Lindsay From gert.driesen at telenet.be Tue Mar 11 05:59:22 2008 From: gert.driesen at telenet.be (Gert Driesen) Date: Tue, 11 Mar 2008 10:59:22 +0100 Subject: [Mono-list] Nant / Osx References: <2D3C3EC6-29A1-4DA5-967F-CFCE4BC4E668@moga.to> Message-ID: <004801c8835e$94894e10$d9071fac@cegekanv.corp.local> ----- Original Message ----- From: "Mike Cleaver" To: Sent: Tuesday, March 11, 2008 2:29 AM Subject: [Mono-list] Nant / Osx > Hi all, > > I've been having some troubles building my project under osx 10.5.2. > Our project is normally compiled via a Monodevelop solution which has > always worked fine - I'm just trying to get it to compile on my laptop. > > I've written NANT scripts to build all of the different projects but > have had trouble with: > 1) Gdk - I use it for image resizing. I have to have a reference > directly to the gdk-sharp-2.0 alias - > > > > > Now I vaguely remember seeing a tutorial about using pkg-config to > create a link to the dlls so that they can be easily referenced but > couldnt find it when i looked today? Is there some way to get the NANT > script to add mono package references instead? You can use the element for this purpose: Hope this helps, Gert From lindsay at softlog.com.au Tue Mar 11 06:39:43 2008 From: lindsay at softlog.com.au (Lindsay Mathieson) Date: Tue, 11 Mar 2008 20:39:43 +1000 Subject: [Mono-list] Mailing List Serach? Message-ID: <200803112039.43064.lindsay@softlog.com.au> Is there a searchable archive of this list? -- Lindsay Mathieson From robertj at gmx.net Tue Mar 11 07:05:56 2008 From: robertj at gmx.net (Robert Jordan) Date: Tue, 11 Mar 2008 12:05:56 +0100 Subject: [Mono-list] Mailing List Serach? In-Reply-To: <200803112039.43064.lindsay@softlog.com.au> References: <200803112039.43064.lindsay@softlog.com.au> Message-ID: Lindsay Mathieson wrote: > Is there a searchable archive of this list? This list: http://lists.ximian.com/pipermail/mono-list All lists: http://lists.ximian.com/pipermail/ Searching with Google: your-keywords ... site:lists.ximian.com/pipermail/ Robert From lindsay at softlog.com.au Tue Mar 11 07:25:18 2008 From: lindsay at softlog.com.au (Lindsay Mathieson) Date: Tue, 11 Mar 2008 21:25:18 +1000 Subject: [Mono-list] Mailing List Serach? In-Reply-To: References: <200803112039.43064.lindsay@softlog.com.au> Message-ID: <200803112125.18902.lindsay@softlog.com.au> On Tuesday 11 March 2008 21:05:56 Robert Jordan wrote: > http://lists.ximian.com/pipermail/mono-list Thanks -- Lindsay Mathieson From kevinbe71 at yahoo.com Tue Mar 11 09:55:04 2008 From: kevinbe71 at yahoo.com (Kevin Berry) Date: Tue, 11 Mar 2008 06:55:04 -0700 (PDT) Subject: [Mono-list] ASP.NET Forms Authentication Message-ID: <333697.63495.qm@web51608.mail.re2.yahoo.com> I haven't seen any replies on this yet. Is anyone using forms authentication in this way? On Mar 7, 2008, at 11:06 PM, Kevin Berry wrote: I can't get forms authentication to work under XSP 2.0. I'm using the following code in my login button click event handler if the login entered is correct: FormsAuthentication.Initialize(); String strRole = assignRoles(loginTextBox.Text); //The AddMinutes determines how long the user will be logged in after leaving //the site if he doesn't log off. FormsAuthenticationTicket fat = new FormsAuthenticationTicket(1, loginTextBox.Text, DateTime.Now, DateTime.Now.AddMinutes(30), false, strRole, FormsAuthentication.FormsCookiePath); Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(fat))); Response.Redirect(FormsAuthentication.GetRedirectUrl(loginTextBox.Text, false)); In the Web.config file I have: This works with VS 2005 and the ASP.NET web dev server. Why doesn't this work with Mono's XSP 2.0 web server? Is there something I can change to make sure this works? NOTE: I'm using Mono 1.2.6 under Windows Vista x64 but plan to move this to a Linux Apache web server once I have it working on Windows. Surely this doesn't make any difference though... Thanks, Kevin. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From grendello at gmail.com Tue Mar 11 12:13:19 2008 From: grendello at gmail.com (Marek Habersack) Date: Tue, 11 Mar 2008 12:13:19 -0400 Subject: [Mono-list] ASP.NET Forms Authentication In-Reply-To: <333697.63495.qm@web51608.mail.re2.yahoo.com> References: <333697.63495.qm@web51608.mail.re2.yahoo.com> Message-ID: <20080311121319.78a17bdb@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 11 Mar 2008 06:55:04 -0700 (PDT) Kevin Berry wrote: hey Kevin, > I haven't seen any replies on this yet. Is anyone using forms authentication in > this way? Can you please create a stand-alone test case that demonstrates the bug and file a bug at https://bugzilla.novell.com/? Thanks! best regards, marek -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFH1q+iq3909GIf5uoRAodHAJ4jaQH8rjYpuOdGnqmJiN9jKew4BwCfVGxw +pC4L5MaurXrbBNfcjhKkAM= =M+Pu -----END PGP SIGNATURE----- From kobruleht2 at hot.ee Tue Mar 11 12:23:32 2008 From: kobruleht2 at hot.ee (Andrus Moor) Date: Tue, 11 Mar 2008 18:23:32 +0200 Subject: [Mono-list] C# script editor Message-ID: <016b01c88394$4322c610$7b01a8c0@acer> I'm looking for a open source C# script editor to be embedded to MONO 2 application. I found SyntaxBox in http://www.puzzleframework.com/wikiengine/WikiPageViewer.aspx?ID=90 (last link). SyntaxBox uses DllImports in 3 files (NativeMethods.cs, AutoListForm.cs, InfoTipform.cs) , code shown below. What to you think which is best way to solve this: 1. Change SyntaxBox source code not to use direct WinAPI calls when running under MONO. Is it possible/reasonable to try it to port this MONO ? 2. Use Scincilla or FireBall Editorcontrol. 3. Create new implementation form scratch. Andrus. DllImport occurances: NativeMethods.cs: [DllImport("uxtheme.dll", SetLastError = true, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr OpenThemeData(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszClassList); [DllImport("uxtheme.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CloseThemeData(IntPtr hTheme); [DllImport("uxtheme.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern bool IsThemeActive(); [DllImport("uxtheme.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int DrawThemeBackground(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref APIRect rect, ref APIRect clipRect); [DllImport("uxtheme.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int DrawThemeText(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string pszText, int iCharCount, uint dwTextFlags, uint dwTextFlags2, [MarshalAs(UnmanagedType.Struct)] ref APIRect rect); [DllImport("uxtheme.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int GetThemeColor(IntPtr hTheme, int iPartId, int iStateId, int iPropId, out ulong color); [DllImport("imm32.dll")] public static extern IntPtr ImmGetDefaultIMEWnd(IntPtr hWnd); [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, COMPOSITIONFORM lParam); [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, LogFont lParam); [DllImport("user32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int DrawText(IntPtr hDC, string lpString, int nCount, ref APIRect Rect, int wFormat); public const int GWL_STYLE = -16; public const int WS_CHILD = 0x40000000; [DllImport("gdi32", SetLastError = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public static extern int EnumFontFamiliesEx(IntPtr hDC, [MarshalAs(UnmanagedType.LPStruct)] LogFont lf, FONTENUMPROC proc, Int64 LParam, Int64 DW); [DllImport("shlwapi.dll", SetLastError = true)] public static extern int SHAutoComplete(IntPtr hWnd, UInt32 flags); [DllImport("user32.dll")] public static extern IntPtr GetDesktopWindow(); [DllImport("user32.DLL")] public static extern IntPtr GetWindowRect(IntPtr hWND, ref APIRect Rect); [DllImport("user32.dll", EntryPoint = "SendMessage")] public static extern int SendMessage(IntPtr hWND, int message, int WParam, int LParam); [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); [DllImport("gdi32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetBkColor(IntPtr hDC, int crColor); [DllImport("gdi32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetBkMode(IntPtr hDC, int Mode); [DllImport("user32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr ReleaseDC(IntPtr hWND, IntPtr hDC); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr DeleteDC(IntPtr hDC); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr GdiFlush(); [DllImport("user32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr GetWindowDC(IntPtr hWND); [DllImport("user32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr GetDC(IntPtr hWND); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreateCompatibleBitmap(IntPtr hDC, int nWidth, int nHeight); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreateCompatibleDC(IntPtr hDC); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr SelectObject(IntPtr hDC, IntPtr hObject); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr DeleteObject(IntPtr hObject); [DllImport("gdi32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int GetTextColor(IntPtr hDC); [DllImport("gdi32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetTextColor(IntPtr hDC, int crColor); [DllImport("gdi32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int GetBkColor(IntPtr hDC); [DllImport("gdi32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int GetBkMode(IntPtr hDC); [DllImport("user32", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int DrawFocusRect(IntPtr hDC, ref APIRect rect); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreateSolidBrush(int crColor); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int Rectangle(IntPtr hDC, int left, int top, int right, int bottom); [DllImport("gdi32.DLL", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreateHatchBrush(int Style, int crColor); [DllImport("user32.DLL", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int TabbedTextOut(IntPtr hDC, int x, int y, string lpString, int nCount, int nTabPositions, ref int lpnTabStopPositions, int nTabOrigin); [DllImport("gdi32.dll", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr BitBlt(IntPtr hDestDC, int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, int dwRop); [DllImport("user32.dll", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int FillRect(IntPtr hDC, ref APIRect rect, IntPtr hBrush); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int GetTextFace(IntPtr hDC, int nCount, string lpFacename); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int GetTextMetrics(IntPtr hDC, ref GDITextMetric TextMetric); [DllImport("gdi32.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreateFontIndirect([MarshalAs(UnmanagedType.LPStruct)]LogFont LogFont); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] public static extern int GetTabbedTextExtent(IntPtr hDC, string lpString, int nCount, int nTabPositions, ref int lpnTabStopPositions); [DllImport("user32.dll", SetLastError = false, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int InvertRect(IntPtr hDC, ref APIRect rect); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreatePen(int nPenStyle, int nWidth, int crColor); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetBrushOrgEx(IntPtr hDC, int x, int y, ref APIPoint p); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr CreatePatternBrush(IntPtr hBMP); [DllImport("User32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int ShowWindow(IntPtr hWnd, short cmdShow); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr MoveToEx(IntPtr hDC, int x, int y, ref APIPoint lpPoint); [DllImport("gdi32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static e