From venkat.spec at gmail.com Wed Apr 1 01:56:54 2009 From: venkat.spec at gmail.com (somepalli) Date: Tue, 31 Mar 2009 22:56:54 -0700 (PDT) Subject: [Mono-list] Ubuntu 8.04 GTK-Sharp Couldn't File in MonoDevelop IDE Message-ID: <22820263.post@talk.nabble.com> Build the project completed successfully. but while Run the project i am getting following error I am Ubuntu 8.04 User . I installed Mono and Open the Mono develop then i designed with just simple design and I got success in Build Project and Build Solution. When i Run the Solution i got Below Message ** (/home/Csharp1/Csharp1/bin/Debug/Csharp1.exe:16310): WARNING **: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies. Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies. File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' -- View this message in context: http://www.nabble.com/Ubuntu-8.04-GTK-Sharp-Couldn%27t-File-in-MonoDevelop-IDE-tp22820263p22820263.html Sent from the Mono - General mailing list archive at Nabble.com. From seanbeeson at gmail.com Wed Apr 1 05:20:04 2009 From: seanbeeson at gmail.com (Sean Beeson) Date: Wed, 1 Apr 2009 18:20:04 +0900 Subject: [Mono-list] Anyone Know of Any Resources on Using Mono with Jack Audio Connection Kit Message-ID: <6e7673c00904010220q49a2a875jb35d3626c00dcbd2@mail.gmail.com> Hi list, I am wondering if there are any resources on using Jack Audio Connection Kit with Mono. Any information would be appreciated. Thank you and kind regards, --Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090401/0a482eba/attachment.html From randall at tnr.cc Wed Apr 1 15:22:21 2009 From: randall at tnr.cc (Randall Smith) Date: Wed, 01 Apr 2009 14:22:21 -0500 Subject: [Mono-list] App_GlobalResources Message-ID: I'm attempting to run an application written for ASP.NET 2.0 using mono via xsp2. I built from a recent tarballs mono-20090306.tar.bz2 and xsp-2.4.tar.bz2. When I try to access the index page, I get the error: Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: CS0103: The name `Resources' does not exist in the current context Not being an ASP.NET developer, I poked around and this is what I found. Index.aspx.cs has references to Resources in the form "Resources.strings.CCS_IncorrectFormat". The directory App_GlobalResources contains the files strings.resources and strings.txt and strings.txt contains the line: CCS_IncorrectFormat=The value in field {0} is not valid. Use the following format: {1}. So it would seem to me that the the information in App_GlobalResources is supposed to go into a global context, but is not. Any help is appreciated. From dgortonii at gmail.com Wed Apr 1 16:06:28 2009 From: dgortonii at gmail.com (Danny) Date: Wed, 01 Apr 2009 16:06:28 -0400 Subject: [Mono-list] Mono and its limitations In-Reply-To: <22799220.post@talk.nabble.com> References: <22799220.post@talk.nabble.com> Message-ID: <49D3C944.3090300@gmail.com> You English seems pretty OK to me. To your question (which others may be able to answer with greater detail): I've been successfully writing code on Windows and running it on Linux (Ubuntu+Mono) for over a year now. It seems that the Mono guys have done a pretty good job at making a runtime that is compatible with any CLR assembly - at least those produced with current C# and VB compilers. It stands to reason that they would also produce compatible assemblies with their development tools, so the reverse (Running code on Windows FW that was created on Linux+Mono) should be true as well. There have been a few small 'gotchas' but overall very easy. Marco Trapanese wrote: > Hello, > > I'm from Italy and I'm sorry if my English is not so good. I hope it's good > enough to explain whatever I'm going to say :-) > > I'm new to Mono and I read through the forum and the website. > Anyway I'm not sure I understood all its qualities and limitations. > > To simplify the question, let me to use an example: > > "I install the Mono IDE on a Windows machine and a Debian Linux one. I can > develop code in VB.NET on both ones and the compiled files will be executed > on both as well. I can also use my .NET third-party library (eg. > http://www.dundas.com/Products/Gauge/NET/index.aspx) on Linux machines." > > The sentences I've just write are true? Otherwise what I can't do? > > I'd like to use Mono instead of Visual Basic .NET Express in order to > develop cross-platform application. > > Thanks in advance > Marco Trapanese > Femtotech > Italy > > From jhill at arcfocus.com Wed Apr 1 16:45:40 2009 From: jhill at arcfocus.com (Joseph Hill) Date: Wed, 01 Apr 2009 16:45:40 -0400 Subject: [Mono-list] New mailing list - Mono ASP.NET Message-ID: <49D3D274.8010703@arcfocus.com> Hey everyone To create a common location for discussions regarding running ASP.NET applications on Mono, we have created a Mono ASP.NET mailing list: mono-aspnet-list at lists.ximian.com Subscribe / manage your subscription here: http://lists.ximian.com/mailman/listinfo/mono-aspnet-list Or use the forums web interface to "Mono - ASP.NET", located here: http://go-mono.com/forums/ Thanks! Joseph From eric.jacoboni at gmail.com Wed Apr 1 19:53:22 2009 From: eric.jacoboni at gmail.com (Eric Jacoboni) Date: Thu, 2 Apr 2009 01:53:22 +0200 Subject: [Mono-list] Go-mono is out of order? Message-ID: Hi, Since the 2.4 release, the go-mono site seems out of order : it is totally blue with Safari (on OS X). It's a litte better with Firefox (still on OS X) but contents seems to be scrambled. Am i the only one who have this problem? -- Jaco From m.j.hutchinson at gmail.com Wed Apr 1 20:49:52 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Wed, 1 Apr 2009 20:49:52 -0400 Subject: [Mono-list] Ubuntu 8.04 GTK-Sharp Couldn't File in MonoDevelop IDE In-Reply-To: <22820263.post@talk.nabble.com> References: <22820263.post@talk.nabble.com> Message-ID: On Wed, Apr 1, 2009 at 1:56 AM, somepalli wrote: > Build the project completed successfully. but while Run the project i am > getting following error > > I am Ubuntu 8.04 User . > I installed Mono and Open the Mono develop then i designed with just simple > design and I got success in > Build Project and Build Solution. > When i Run the Solution i got Below Message > > ** (/home/Csharp1/Csharp1/bin/Debug/Csharp1.exe:16310): WARNING **: Could > not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, > PublicKeyToken=35e10195dab3c99f' or one of its dependencies. > > Unhandled Exception: System.IO.FileNotFoundException: Could not load file or > assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, > PublicKeyToken=35e10195dab3c99f' or one of its dependencies. > File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, > PublicKeyToken=35e10195dab3c99f' It sounds to me like you have a messed up mono installation -- probably Mono installed from source into /usr/local, with the distro-provided Mono in /usr. Is this the case? -- Michael Hutchinson http://mjhutchinson.com From jonpryor at vt.edu Wed Apr 1 22:34:39 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Wed, 01 Apr 2009 22:34:39 -0400 Subject: [Mono-list] Go-mono is out of order? In-Reply-To: References: Message-ID: <1238639679.16705.38.camel@lina> On Thu, 2009-04-02 at 01:53 +0200, Eric Jacoboni wrote: > Since the 2.4 release, the go-mono site seems out of order : it is > totally blue with Safari (on OS X). It's a litte better with Firefox > (still on OS X) but contents seems to be scrambled. http://www.go-mono.com/ (which redirects to http://www.mono-project.com)? Or a sub-site such as http://www.go-mono.com/mono-downloads/download.html or http://www.go-mono.com/docs? Safari 3.2.1 (5525.27.1) on OS X 10.5.6 seems to show those sites properly for me. Perhaps you need an update? - Jon From venkat.spec at gmail.com Thu Apr 2 00:24:05 2009 From: venkat.spec at gmail.com (somepalli) Date: Wed, 1 Apr 2009 21:24:05 -0700 (PDT) Subject: [Mono-list] Ubuntu 8.04 GTK-Sharp Couldn't File in MonoDevelop IDE In-Reply-To: References: <22820263.post@talk.nabble.com> Message-ID: <22840637.post@talk.nabble.com> Michael Hutchinson wrote: > > On Wed, Apr 1, 2009 at 1:56 AM, somepalli wrote: >> Build the project completed successfully. but while Run the project i am >> getting following error >> >> I am Ubuntu 8.04 User . >> I installed Mono and Open the Mono develop then i designed with just >> simple >> design and I got success in >> Build Project and Build Solution. >> When i Run the Solution i got Below Message >> >> ** (/home/Csharp1/Csharp1/bin/Debug/Csharp1.exe:16310): WARNING **: Could >> not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, >> PublicKeyToken=35e10195dab3c99f' or one of its dependencies. >> >> Unhandled Exception: System.IO.FileNotFoundException: Could not load file >> or >> assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, >> PublicKeyToken=35e10195dab3c99f' or one of its dependencies. >> File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, >> PublicKeyToken=35e10195dab3c99f' > > It sounds to me like you have a messed up mono installation -- > probably Mono installed from source into /usr/local, with the > distro-provided Mono in /usr. Is this the case? > > -- > Michael Hutchinson > http://mjhutchinson.com > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > Thank you for reply.... Ya.......... its installation problem.... after your message i tried to install build-essential package but i am not able to install........ after solving get back to the mono development. -- View this message in context: http://www.nabble.com/Ubuntu-8.04-GTK-Sharp-Couldn%27t-File-in-MonoDevelop-IDE-tp22820263p22840637.html Sent from the Mono - General mailing list archive at Nabble.com. From venkat.spec at gmail.com Thu Apr 2 00:39:20 2009 From: venkat.spec at gmail.com (somepalli) Date: Wed, 1 Apr 2009 21:39:20 -0700 (PDT) Subject: [Mono-list] monodevelop on FreeBSD??? In-Reply-To: <22808821.post@talk.nabble.com> References: <22808821.post@talk.nabble.com> Message-ID: <22840745.post@talk.nabble.com> Dennis_ wrote: > > I download source from > http://ftp.novell.com/pub/mono/sources/monodevelop/monodevelop-1.9.3.tar.bz2 > and unpack. > How to compile and install monodevelop now ? > i didn't tried monodevelop on FreeBSD. I think following link will useful for u but its not useful sorry for inconvience. http://www.mono-project.com/Mono:FreeBSD mono-project -- View this message in context: http://www.nabble.com/monodevelop-on-FreeBSD----tp22808821p22840745.html Sent from the Mono - General mailing list archive at Nabble.com. From imaudi at comcast.net Thu Apr 2 01:19:51 2009 From: imaudi at comcast.net (Mike Christensen) Date: Wed, 01 Apr 2009 22:19:51 -0700 Subject: [Mono-list] Guide to installing Mono 2.4 on a clean Ubuntu 8.10 Server machine Message-ID: <49D44AF7.6070809@comcast.net> Hi guys - I've written a rough guide to installing Mono 2.4 on a totally clean fresh install of Ubuntu Server 8.10. This guide is geared towards people like me who don't really know a whole lot about Linux or Mono and are most likely coming from a Windows .NET world. For that reason, everything is spelled out pretty verbosely and I try not to take any shortcuts (like stringing a whole bunch of commands together with ampersands and stuff). I'd love to get some of the experts to review this, and perhaps a few people to try it out too if you have VMWare and can create a test machine quickly. I've tried this twice so far and both times I haven't ran into any major problems. Also, I'd like to convert this guide to HTML and post it up on a website somewhere, if anyone has any advice for me on this lemme know. For all you bloggers, this guide is totally public domain and you can post it wherever you'd like. Thanks!! ------ *** Complete @!#$'ing Moron's Guide to Installing Mono 2.4 on Ubuntu Server 8.10: *** This is a step by step guide to installing Mono 2.4 and mod_mono on a fresh Ubuntu Server install. Let's begin. 1) Logon to machine so you see a command prompt. Type: sudo bash Enter your password, you should now be root. This will allow you to do whatever you want without typing "sudo" in front of every command. 2) Install all prequisits for Mono. Note you can put all packages on a single line, but if you're just starting out, you might want to install each one just to make sure it all goes well. If any package is already installed, just continue on. Depending on your system, you might already have some of these. Type: apt-get install build-essential Type: apt-get install pkg-config Type: apt-get install bison Type: apt-get install libglib2.0-0 libglib2.0-dev Type: apt-get install libpng12-dev Type: apt-get install libx11-dev Type: apt-get install libfontconfig1-dev Type: apt-get install libfreetype6-dev Type: apt-get install apache2 Type: apt-get install apache2-threaded-dev Type: apt-get install gettext 3) Download and build libgdiplus which is required for Mono to build. Type: cd ~ Type: wget http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.4.tar.bz2 You should now have the file libgdiplus-2.4.tar.bz2 in your ~/ directory Type: tar -xpjf libgdiplus-2.4.tar.bz2 This will decompress the tar file into its own directory, note you won't see any output) You should now have a directory called libgdiplus-2.4 Type: cd libgdiplus-2.4/ Type: ./configure You should not see any errors, but if you're missing any packages please install them and run "./configure" again. Type: make Sometimes here I see some error about "link is not a valid libtool object" and Error 1. I have no idea what causes this, but I can usually work around it by running "apt-get update" and "./configure" again. Type: make install 4) Build Mono: Type: cd ~ Type: wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2 Type: tar -xpjf mono-2.4.tar.bz2 This will take a minute or so because it's a big file and you won't see anything on the screen because stuff isn't too chatty in the UNIX world. Type: cd mono-2.4/ Type: ./configure Type: make This will take a while - probably about 15 minutes or so. Type: make install When this is done, you should be able to type "mono" from the prompt and see mono options. This is a good sign. 5) Build xsp (this also includes mono-server which is used for Apache integration) Type: cd ~ Type: wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.tar.bz2 Type: tar -xpjf xsp-2.4.tar.bz2 Type: cd xsp-2.4/ Type: ./configure Type: make Type: make install 6) Build mod_mono so you can run Mono web sites on Apache Type: cd ~ Type: wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.4.tar.bz2 Type: tar -xpjf mod_mono-2.4.tar.bz2 Type: cd mod_mono-2.4/ Type: ./configure Type: make Type: make install 7) Configure Mod_Mono with Apache Type: cd /etc/apache2 Type: pico apache2.conf Search for this section: # Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf Add the following line under the above lines: Include /etc/apache2/mod_mono.conf At the end of this file, add the following line: MonoServerPath /usr/local/bin/mod-mono-server2 Press CTRL+X to exit Pico, answer "Yes" to save your changes and press enter to use the same file name. Restart Apache by typing: /etc/init.d/apache2 restart 8) Make sure it all works! Type: cd /var/www This is your default website directory. By default there's just a temporary index.html file that says "It works!", you can remove this. Type: rm * Now let's create a test ASPX page. Type: pico default.aspx If you know ASP.NET, you can write some code here. But for something dirt simple, just use: <% Response.Write("Hello World!"); %> Save the file and exit Pico (CTRL+X) In your web browser, you should now be able to browse to the site and see "Hello World!" on your screen. From this point on, you should be good to go and develop a much more complex application :) Congrats! From roka100 at gmail.com Thu Apr 2 04:12:27 2009 From: roka100 at gmail.com (Jia Lu) Date: Thu, 2 Apr 2009 17:12:27 +0900 Subject: [Mono-list] How to get an arrow key input on Linux Console. Message-ID: <9a1e512f0904020112g503e5032wdde3b2873431bfa2@mail.gmail.com> Hi all My command line app cannot get the arrow key input on Linux console. I just want to get a up-arrow key and display the last command I entered. Is there anyway to do that with mono? Thank you. -- ////////////////////////////////////////// OCP #10942266 LPI Level-2 #LPI000156466 MCP/MCTS #6795184 ////////////////////////////////////////// -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090402/12ce473a/attachment-0001.html From dr_doom1983 at yahoo.de Thu Apr 2 04:16:59 2009 From: dr_doom1983 at yahoo.de (Ferdinand Funke) Date: Thu, 02 Apr 2009 10:16:59 +0200 Subject: [Mono-list] UserControls in MonoDevelop 2.0 Message-ID: <49D4747B.7040201@yahoo.de> Hi, I recently started using MonoDevelop 2.0 and it seems to me that MonoDevelop always replaces my UserControl definitions in the designer file by "System.Web.UI.UserControl" when rebuilding the project. I created the project on Visual Studio and then ported it to MonoDevelop. Did anyone come across this issue? Best regards Ferdinand From eric.jacoboni at gmail.com Thu Apr 2 05:20:44 2009 From: eric.jacoboni at gmail.com (Eric Jacoboni) Date: Thu, 2 Apr 2009 11:20:44 +0200 Subject: [Mono-list] Go-mono is out of order? In-Reply-To: <1238639679.16705.38.camel@lina> References: <1238639679.16705.38.camel@lina> Message-ID: <81AFE1C2-A66C-45D2-BE73-4CA6A457071E@gmail.com> Le 2 avr. 09 ? 04:34, Jonathan Pryor a ?crit : > > http://www.go-mono.com/ (which redirects to > http://www.mono-project.com)? Yes go-mono... Others like : > > http://www.go-mono.com/mono-downloads/download.html This one too... > or > http://www.go-mono.com/docs? This one works... It seems my browsers don't like the blue css or something like that. > Safari 3.2.1 (5525.27.1) on OS X 10.5.6 seems to show those sites > properly for me. Perhaps you need an update? Well... All my software are always at the last release. I'm using Safari Beta 4 on 10.5.6 and, as it's a Beta, i'm using also Firefox 3.0.6. It's better with Firefox, though : i see the blue bar with "Mono is a cross platform, open source .NET development framework", but no tabs ('Forum", for instance)... But if you confirm there's no problem on the site side, i know there is one on MY side, so i can try to solve it... Thanks -- Jaco From robertj at gmx.net Thu Apr 2 06:00:23 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 02 Apr 2009 12:00:23 +0200 Subject: [Mono-list] ASP.NET MVC In-Reply-To: <7d6368d00903271111h30a7d081q4db6da07c833bf99@mail.gmail.com> References: <1227242867.4028.0.camel@lalo.home> <7d6368d00903271111h30a7d081q4db6da07c833bf99@mail.gmail.com> Message-ID: Corbin Hoenes wrote: > I am interested in running ASP.NET MVC applications on linux. I was under > the impression that the ASP.NET MVC license prohibits me from doing it. > > I think this is still the verbiage: > "Platform Limitation - The Additional Use Rights extend only to the software > or permitted derivative works that you create that run on a Microsoft > Windows operating system product. " ASP.NET MVC is open source since yesterday: http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx Robert From eric.jacoboni at gmail.com Thu Apr 2 06:23:59 2009 From: eric.jacoboni at gmail.com (Eric Jacoboni) Date: Thu, 2 Apr 2009 12:23:59 +0200 Subject: [Mono-list] J# on Mono ? Message-ID: Hi, I've installed last version of J# and it runs ok on Mono 2.4 on my Mac, at least with the jsc compiler. Anyway, i have some problems: - the interactive interpreter (jsi) doesn't have a readline feature, so it's really boring... (no mention of its color mess) - i don't succeed to install various solutions i've found on the net to deal with J# on Monodevelop (2.0 alpha on Mac) - i don't succeed to mix code in C# and code in J#. If someone has some clues... -- Jaco From rjlopes at gmail.com Thu Apr 2 06:52:46 2009 From: rjlopes at gmail.com (Ricardo Lopes) Date: Thu, 2 Apr 2009 11:52:46 +0100 Subject: [Mono-list] J# on Mono ? In-Reply-To: References: Message-ID: <28220bb40904020352t5b27e35bm2b45296da537c277@mail.gmail.com> Hi, Can you please tell me how did you install J# on Mono + OSX ? Thanks. 2009/4/2 Eric Jacoboni : > Hi, > > I've installed last version of J# and it runs ok on Mono 2.4 on my > Mac, at least with the jsc compiler. > > Anyway, i have some problems: > > - the interactive interpreter (jsi) doesn't have a readline feature, > so it's really boring... (no mention of its color mess) > - i don't succeed to install various solutions i've found on the net > to deal with J# on Monodevelop (2.0 alpha on Mac) > - i don't succeed to mix code in C# and code in J#. > > If someone has some clues... > -- > Jaco > > > > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Ricardo Lopes From info at femtotech.it Thu Apr 2 08:20:26 2009 From: info at femtotech.it (Marco Trapanese) Date: Thu, 2 Apr 2009 05:20:26 -0700 (PDT) Subject: [Mono-list] Mono and its limitations In-Reply-To: <49D3C944.3090300@gmail.com> References: <22799220.post@talk.nabble.com> <49D3C944.3090300@gmail.com> Message-ID: <22846599.post@talk.nabble.com> Danny-113 wrote: > > You English seems pretty OK to me. To your question (which others may > be able to answer with greater detail): I've been successfully writing > code on Windows and running it on Linux (Ubuntu+Mono) for over a year > now. It seems that the Mono guys have done a pretty good job at making > a runtime that is compatible with any CLR assembly - at least those > produced with current C# and VB compilers. > Thank you both for your kind answers. I still have a doubt: In my application I often use serial ports or read/write access to files: how the code could successfully run either on Windows or Linux? They are quite different: for example Windows calls the serial ports "COM" but in Linux I have to look under /dev... So I can't understand how the same code could run on both systems. Marco -- View this message in context: http://www.nabble.com/Mono-and-its-limitations-tp22799220p22846599.html Sent from the Mono - General mailing list archive at Nabble.com. From awilliam at whitemice.org Thu Apr 2 08:30:20 2009 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Thu, 02 Apr 2009 08:30:20 -0400 Subject: [Mono-list] Mono and its limitations In-Reply-To: <22846599.post@talk.nabble.com> References: <22799220.post@talk.nabble.com> <49D3C944.3090300@gmail.com> <22846599.post@talk.nabble.com> Message-ID: <1238675420.5399.6.camel@linux-m3mt> On Thu, 2009-04-02 at 05:20 -0700, Marco Trapanese wrote: > Danny-113 wrote: > > You English seems pretty OK to me. To your question (which others may > > be able to answer with greater detail): I've been successfully writing > > code on Windows and running it on Linux (Ubuntu+Mono) for over a year > > now. It seems that the Mono guys have done a pretty good job at making > > a runtime that is compatible with any CLR assembly - at least those > > produced with current C# and VB compilers > Thank you both for your kind answers. > I still have a doubt: > In my application I often use serial ports or read/write access to files: > how the code could successfully run either on Windows or Linux? They are > quite different: for example Windows calls the serial ports "COM" but in > Linux I have to look under /dev... So I can't understand how the same code > could run on both systems. I think System.IO.Ports is available in Mono (I have no idea how current or out-of-date that page is). There doesn't seem to be many open bugs but googling about makes it seem iffy. Port makes are arbitrary, don't hard-code them and that shouldn't be a problem. From alan.mcgovern at gmail.com Thu Apr 2 08:35:00 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Thu, 2 Apr 2009 13:35:00 +0100 Subject: [Mono-list] Mono and its limitations In-Reply-To: <22846599.post@talk.nabble.com> References: <22799220.post@talk.nabble.com> <49D3C944.3090300@gmail.com> <22846599.post@talk.nabble.com> Message-ID: <117799f00904020535n475abeebo40c90d958a4f35b0@mail.gmail.com> Hey, > In my application I often use serial ports or read/write access to files: > how the code could successfully run either on Windows or Linux? They are > quite different: for example Windows calls the serial ports "COM" but in > Linux I have to look under /dev... So I can't understand how the same code > could run on both systems. .Net calls them System.IO.Ports.SerialPort. That's all you need to use to guarantee yourself cross platform code ;) Alan. > > > Marco > > -- > View this message in context: > http://www.nabble.com/Mono-and-its-limitations-tp22799220p22846599.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090402/ada2c96b/attachment.html From stifu at free.fr Thu Apr 2 08:44:54 2009 From: stifu at free.fr (Stifu) Date: Thu, 2 Apr 2009 05:44:54 -0700 (PDT) Subject: [Mono-list] Mono and its limitations In-Reply-To: <22846599.post@talk.nabble.com> References: <22799220.post@talk.nabble.com> <49D3C944.3090300@gmail.com> <22846599.post@talk.nabble.com> Message-ID: <22847002.post@talk.nabble.com> You can sometimes use environment paths, such as System.Environment.GetFolderPath(DesktopDirectory)... This is not always possible, though (see: http://www.go-mono.com/docs/index.aspx?link=T%3ASystem.Environment.SpecialFolder). When defining your paths yourself (and that they are the same for all OSes), make sure to define your separators the right way rather than hard coding them as anti-slashes, as that would only work on Windows (see this: http://www.mono-project.com/Guidelines:Application_Portability#Path_Separators). Also, you can fork your code if needed, like if (OS == Windows) do this, else if(...) do that, which ensures you can solve any problem you encounter. Marco Trapanese wrote: > > > > Danny-113 wrote: >> >> You English seems pretty OK to me. To your question (which others may >> be able to answer with greater detail): I've been successfully writing >> code on Windows and running it on Linux (Ubuntu+Mono) for over a year >> now. It seems that the Mono guys have done a pretty good job at making >> a runtime that is compatible with any CLR assembly - at least those >> produced with current C# and VB compilers. >> > > > Thank you both for your kind answers. > > I still have a doubt: > > In my application I often use serial ports or read/write access to files: > how the code could successfully run either on Windows or Linux? They are > quite different: for example Windows calls the serial ports "COM" but in > Linux I have to look under /dev... So I can't understand how the same code > could run on both systems. > > Marco > > -- View this message in context: http://www.nabble.com/Mono-and-its-limitations-tp22799220p22847002.html Sent from the Mono - General mailing list archive at Nabble.com. From zarevucky.jiri at gmail.com Thu Apr 2 08:55:32 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Thu, 2 Apr 2009 14:55:32 +0200 Subject: [Mono-list] Guide to installing Mono 2.4 on a clean Ubuntu 8.10 Server machine In-Reply-To: <49D44AF7.6070809@comcast.net> References: <49D44AF7.6070809@comcast.net> Message-ID: Hello, very nice guide. > 4) Build Mono: > > Type: cd ~ > Type: wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2 > Type: tar -xpjf mono-2.4.tar.bz2 > > This will take a minute or so because it's a big file and you won't see > anything on the screen because stuff isn't too chatty in the UNIX world. > You will probably want to add "v" switch to turn on verbose output. It will then print name of every extracted file. From mail at tinco.nl Thu Apr 2 10:05:59 2009 From: mail at tinco.nl (Tinco Andringa) Date: Thu, 2 Apr 2009 16:05:59 +0200 Subject: [Mono-list] Guide to installing Mono 2.4 on a clean Ubuntu 8.10 Server machine In-Reply-To: <49D44AF7.6070809@comcast.net> References: <49D44AF7.6070809@comcast.net> Message-ID: <2fd035f00904020705h69a2c053u6bfec8a44494d40d@mail.gmail.com> Hi Mike, I like your guide :) I have one comment on step 7. What you do here is not the Apache way, and may scare people since they have to edit the apache2.conf which usually is a very large file. > 7) Configure Mod_Mono with Apache > > Type: cd /etc/apache2 > Type: pico apache2.conf > > Search for this section: > ? # Include module configuration: > ? Include /etc/apache2/mods-enabled/*.load > ? Include /etc/apache2/mods-enabled/*.conf > > Add the following line under the above lines: > ? Include /etc/apache2/mod_mono.conf > > At the end of this file, add the following line: > ? MonoServerPath /usr/local/bin/mod-mono-server2 > > Press CTRL+X to exit Pico, answer "Yes" to save your changes and press > enter to use the same file name. > > Restart Apache by typing: /etc/init.d/apache2 restart Simpler would be to make a symbolic link in the /etc/apache2/mods_enabled/ directory to the mod_mono.conf file like so: Type: ln -s /etc/apache2/mod_mono.conf /etc/apache2/mods-enabled/mod_mono.conf And with that, it might also be a good idea to put MonoServerPath in the mod_mono.conf file rather than in the apache2.conf. Since when one would disable mod_mono, MonoServerPath would likely throw an error or warning or at least be totally useless. Great work! Greetings, Tinco From abe.gillespie at gmail.com Thu Apr 2 10:28:12 2009 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Thu, 2 Apr 2009 10:28:12 -0400 Subject: [Mono-list] ASP.NET MVC In-Reply-To: References: <1227242867.4028.0.camel@lalo.home> <7d6368d00903271111h30a7d081q4db6da07c833bf99@mail.gmail.com> Message-ID: Great news. Thanks, Robert, for finding that. I got a question, though. What does the MS-PL license mean in regards to contributing to Mono? I have still never looked at MS code either by Reflector decompilation or the platform source to keep the possibility of contributing to Mono open. Should I stay away from the MVC source as well? Thanks. -Abr On Thu, Apr 2, 2009 at 6:00 AM, Robert Jordan wrote: > Corbin Hoenes wrote: >> I am interested in running ASP.NET MVC applications on linux. ?I was under >> the impression that the ASP.NET MVC license prohibits me from doing it. >> >> I think this is still the verbiage: >> "Platform Limitation - The Additional Use Rights extend only to the software >> or permitted derivative works that you create that run on a Microsoft >> Windows operating system product. " > > ASP.NET MVC is open source since yesterday: > > http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx > > Robert > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From stifu at free.fr Thu Apr 2 10:39:52 2009 From: stifu at free.fr (Stifu) Date: Thu, 2 Apr 2009 07:39:52 -0700 (PDT) Subject: [Mono-list] ASP.NET MVC In-Reply-To: References: <1227242867.4028.0.camel@lalo.home> <7d6368d00903271111h30a7d081q4db6da07c833bf99@mail.gmail.com> Message-ID: <22849456.post@talk.nabble.com> >From what Miguel says here: http://tirania.org/blog/archive/2009/Apr-02.html It doesn't sound like there's any problem with using these sources. Abe Gillespie wrote: > > Great news. Thanks, Robert, for finding that. > > I got a question, though. What does the MS-PL license mean in regards > to contributing to Mono? I have still never looked at MS code either > by Reflector decompilation or the platform source to keep the > possibility of contributing to Mono open. Should I stay away from the > MVC source as well? > > Thanks. > -Abr > > On Thu, Apr 2, 2009 at 6:00 AM, Robert Jordan wrote: >> Corbin Hoenes wrote: >>> I am interested in running ASP.NET MVC applications on linux. ?I was >>> under >>> the impression that the ASP.NET MVC license prohibits me from doing it. >>> >>> I think this is still the verbiage: >>> "Platform Limitation - The Additional Use Rights extend only to the >>> software >>> or permitted derivative works that you create that run on a Microsoft >>> Windows operating system product. " >> >> ASP.NET MVC is open source since yesterday: >> >> http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx >> >> Robert >> >> _______________________________________________ >> Mono-list maillist ?- ?Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/ASP.NET-MVC-tp20614867p22849456.html Sent from the Mono - General mailing list archive at Nabble.com. From dgortonii at gmail.com Thu Apr 2 11:56:14 2009 From: dgortonii at gmail.com (Danny) Date: Thu, 02 Apr 2009 11:56:14 -0400 Subject: [Mono-list] Mono and its limitations In-Reply-To: <22846599.post@talk.nabble.com> References: <22799220.post@talk.nabble.com> <49D3C944.3090300@gmail.com> <22846599.post@talk.nabble.com> Message-ID: <49D4E01E.8000804@gmail.com> All of the answers so far are right on. And it's funny that you should ask about those specific things because right now that's about ALL my application does. It polls data from COM ports (soon to be USB ports too) and stores it in a home-grown XML data store, which makes heavy use of streams for file read and write access. Other than that it also provides a client interface via remoting, which is the only part I had any portability issues with. For things such as you mention - port names and file paths - I push them out to configuration where the 'platform-specificness' of them doesn't matter. Hope that helps, Danny Marco Trapanese wrote: > > > Danny-113 wrote: >> You English seems pretty OK to me. To your question (which others may >> be able to answer with greater detail): I've been successfully writing >> code on Windows and running it on Linux (Ubuntu+Mono) for over a year >> now. It seems that the Mono guys have done a pretty good job at making >> a runtime that is compatible with any CLR assembly - at least those >> produced with current C# and VB compilers. >> > > > Thank you both for your kind answers. > > I still have a doubt: > > In my application I often use serial ports or read/write access to files: > how the code could successfully run either on Windows or Linux? They are > quite different: for example Windows calls the serial ports "COM" but in > Linux I have to look under /dev... So I can't understand how the same code > could run on both systems. > > Marco > From robertj at gmx.net Thu Apr 2 12:31:11 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 02 Apr 2009 18:31:11 +0200 Subject: [Mono-list] ASP.NET MVC In-Reply-To: References: <1227242867.4028.0.camel@lalo.home> <7d6368d00903271111h30a7d081q4db6da07c833bf99@mail.gmail.com> Message-ID: Hi, Abe Gillespie wrote: > Great news. Thanks, Robert, for finding that. > > I got a question, though. What does the MS-PL license mean in regards > to contributing to Mono? I have still never looked at MS code either > by Reflector decompilation or the platform source to keep the > possibility of contributing to Mono open. Should I stay away from the > MVC source as well? The MVC code is already in mono's repository: http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/System.Web.Mvc/ I don't believe Marek was compelled to wear welding goggles during the import, so it should be safe to look at the code :-D Robert From abe.gillespie at gmail.com Thu Apr 2 12:42:50 2009 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Thu, 2 Apr 2009 12:42:50 -0400 Subject: [Mono-list] ASP.NET MVC In-Reply-To: References: <1227242867.4028.0.camel@lalo.home> <7d6368d00903271111h30a7d081q4db6da07c833bf99@mail.gmail.com> Message-ID: Well, hey, there you go. These Mono guys, they're quick! Thanks, everyone, for the response. -Abe On Thu, Apr 2, 2009 at 12:31 PM, Robert Jordan wrote: > Hi, > > Abe Gillespie wrote: >> Great news. ?Thanks, Robert, for finding that. >> >> I got a question, though. ?What does the MS-PL license mean in regards >> to contributing to Mono? ?I have still never looked at MS code either >> by Reflector decompilation or the platform source to keep the >> possibility of contributing to Mono open. ?Should I stay away from the >> MVC source as well? > > The MVC code is already in mono's repository: > > http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/System.Web.Mvc/ > > I don't believe Marek was compelled to wear welding goggles during > the import, so it should be safe to look at the code :-D > > Robert > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From rolflists at ya.com Thu Apr 2 13:13:07 2009 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Thu, 2 Apr 2009 19:13:07 +0200 Subject: [Mono-list] VB code completion In-Reply-To: <449438A5C6CD4F7D90A2F03F9EA44BB9@prowest.com> References: <449438A5C6CD4F7D90A2F03F9EA44BB9@prowest.com> Message-ID: <021b01c9b3b6$4c56b360$e5041a20$@com> As soon as somebody volunteers to do it J The MonoDevelop team is really busy with other stuff right now. Rolf From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Chris LaFond Sent: lunes, 30 de marzo de 2009 19:47 To: MonoDevel Subject: [Mono-list] VB code completion I asked this a few days ago, i dont know if it got sent because i was new to the list: Anyone know when monodevelop will have VB .Net code completion? Chris LaFond Programmer Pro-West & Associates Inc. 8239 State 371 NW PO Box 812 Walker, MN 56484 www.prowestgis.com clafond at prowestgis.com (v) 218-547-3374 ext 125 (f) 218-547-3375 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.285 / Virus Database: 270.11.31/2028 - Release Date: 04/01/09 06:06:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090402/6908394d/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4285 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090402/6908394d/attachment-0001.gif From colin_a_jones at hotmail.com Wed Apr 1 21:09:30 2009 From: colin_a_jones at hotmail.com (colinjones) Date: Wed, 1 Apr 2009 18:09:30 -0700 (PDT) Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share Message-ID: <22836300.post@talk.nabble.com> I hve done some searching for this specific case, but cannot find any examples of people confirming this works. >From the MSDN article http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx it says in the Remarks section that this class can be used to register for events relating to file/folder changes on a remote system, not just the local system. Is this functionality fully implemented in Mono? I would like to code something on a Linux box, using the Mono equivalent class, that will monitor a remote share file/folder structure on a Windows box, and get events back when a file/folder on that Windows box changes. Is this possible with the Mono class? -- View this message in context: http://www.nabble.com/FileSystemWatcher-on-Linux-to-monitor-a-remote-NTFS-share-tp22836300p22836300.html Sent from the Mono - General mailing list archive at Nabble.com. From cosku.bas at gmail.com Thu Apr 2 11:14:00 2009 From: cosku.bas at gmail.com (cb951303) Date: Thu, 2 Apr 2009 08:14:00 -0700 (PDT) Subject: [Mono-list] Porting *.resx string collections to Mono Message-ID: <22849935.post@talk.nabble.com> http://www.nabble.com/file/p22849935/Resources.Designer.cs Resources.Designer.cs http://www.nabble.com/file/p22849935/Resources.resx Resources.resx Above files are from Horde3D engine VS2008 project file. I succesfully compiled the engine with these resource files included but when I try to use built DLL I get errors like this: [quote] Unhandled Exception: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Horde3DNET.Properties.Resources.resources" was correctly embedded or linked into assembly "Horde3D.NET" at compile time, or that all the satellite assemblies required are loadable and fully signed. at System.Resources.ResourceManager.AssemblyResourceMissing (System.String fileName) [0x00000] at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] at System.Resources.ResourceManager.GetString (System.String name, System.Globalization.CultureInfo culture) [0x00000] at Horde3DNET.Properties.Resources.get_VersionString () [0x00000] at Horde3DNET.Horde3D.init () [0x00000] at HordeDe.Program.Main () [0x00000] [/quote] so I'm guessing I need to change some things in Resource.Designer.cs and Resources.resx but I don't know what? Any ideas what may cause this problem? Thanks -- View this message in context: http://www.nabble.com/Porting-*.resx-string-collections-to-Mono-tp22849935p22849935.html Sent from the Mono - General mailing list archive at Nabble.com. From dave.is.doublebass at gmail.com Thu Apr 2 12:22:15 2009 From: dave.is.doublebass at gmail.com (l333t) Date: Thu, 2 Apr 2009 09:22:15 -0700 (PDT) Subject: [Mono-list] sending characters onto the active window Message-ID: <22851105.post@talk.nabble.com> I need to know if it's possible to send characters(Unicodes in particular) onto the active window using Mono in linux. Though I don't know much about it, I know that it's possible in microsoft windows. Is it possible to achieve the same thing in linux? I am using java for my development and it's not possible to send characters onto active window using java. Sending characters is possible using Xlib.. but its not possible to send unicodes using Xlib.. -- View this message in context: http://www.nabble.com/sending-characters-onto-the-active-window-tp22851105p22851105.html Sent from the Mono - General mailing list archive at Nabble.com. From jonpryor at vt.edu Thu Apr 2 14:51:42 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Thu, 02 Apr 2009 14:51:42 -0400 Subject: [Mono-list] How to get an arrow key input on Linux Console. In-Reply-To: <9a1e512f0904020112g503e5032wdde3b2873431bfa2@mail.gmail.com> References: <9a1e512f0904020112g503e5032wdde3b2873431bfa2@mail.gmail.com> Message-ID: <1238698302.16705.115.camel@lina> On Thu, 2009-04-02 at 17:12 +0900, Jia Lu wrote: > My command line app cannot get the arrow key input on Linux console. > I just want to get a up-arrow key and display the last command I > entered. > > Is there anyway to do that with mono? Look into Mono.Terminal.Editor; see: http://tirania.org/blog/archive/2008/Aug.html If you have Mono 2.2 or later, you can grab the Mono.Terminal.Editor sources by doing: cp `pkg-config --variable=Sources mono-lineeditor` . Then building getline.cs into your solution. - Jon From robertj at gmx.net Thu Apr 2 15:10:42 2009 From: robertj at gmx.net (Robert Jordan) Date: Thu, 02 Apr 2009 21:10:42 +0200 Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share In-Reply-To: <22836300.post@talk.nabble.com> References: <22836300.post@talk.nabble.com> Message-ID: colinjones wrote: > I hve done some searching for this specific case, but cannot find any > examples of people confirming this works. > >>From the MSDN article > http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx it > says in the Remarks section that this class can be used to register for > events relating to file/folder changes on a remote system, not just the > local system. > > Is this functionality fully implemented in Mono? I would like to code > something on a Linux box, using the Mono equivalent class, that will monitor > a remote share file/folder structure on a Windows box, and get events back > when a file/folder on that Windows box changes. > > Is this possible with the Mono class? It should be possible if you set the environment var MONO_MANAGED_WATCHER=1. See mono(1). The performance will most likely suck... Robert From imaudi at comcast.net Thu Apr 2 16:09:52 2009 From: imaudi at comcast.net (Mike Christensen) Date: Thu, 02 Apr 2009 13:09:52 -0700 Subject: [Mono-list] Guide to installing Mono 2.4 on a clean Ubuntu 8.10 Server machine In-Reply-To: <2fd035f00904020705h69a2c053u6bfec8a44494d40d@mail.gmail.com> References: <49D44AF7.6070809@comcast.net> <2fd035f00904020705h69a2c053u6bfec8a44494d40d@mail.gmail.com> Message-ID: <49D51B90.4020406@comcast.net> Thanks! I'm thinking the official way to do it is probably create a file called mod_mono.load in /etc/apache2/mods-available that has: Include /etc/apache2/mod_mono.conf MonoServerPath /usr/local/bin/mod-mono-server2 and then create the link in mods-enabled. Isn't there actually some sort of "enable-mod" script that does this for you too, rather than using the ln command directly? Would people prefer this? Thanks!! Mike Tinco Andringa wrote: > Hi Mike, I like your guide :) > > I have one comment on step 7. What you do here is not the Apache way, > and may scare people since they have to edit the apache2.conf which > usually is a very large file. > > >> 7) Configure Mod_Mono with Apache >> >> Type: cd /etc/apache2 >> Type: pico apache2.conf >> >> Search for this section: >> # Include module configuration: >> Include /etc/apache2/mods-enabled/*.load >> Include /etc/apache2/mods-enabled/*.conf >> >> Add the following line under the above lines: >> Include /etc/apache2/mod_mono.conf >> >> At the end of this file, add the following line: >> MonoServerPath /usr/local/bin/mod-mono-server2 >> >> Press CTRL+X to exit Pico, answer "Yes" to save your changes and press >> enter to use the same file name. >> >> Restart Apache by typing: /etc/init.d/apache2 restart >> > > Simpler would be to make a symbolic link in the > /etc/apache2/mods_enabled/ directory to the mod_mono.conf file like > so: > > Type: ln -s /etc/apache2/mod_mono.conf /etc/apache2/mods-enabled/mod_mono.conf > > And with that, it might also be a good idea to put MonoServerPath in > the mod_mono.conf file rather than in the apache2.conf. Since when one > would disable mod_mono, MonoServerPath would likely throw an error or > warning or at least be totally useless. > > Great work! > > Greetings, > Tinco > _______________________________________________ > 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/20090402/3da3de8d/attachment.html From imaudi at comcast.net Thu Apr 2 16:21:00 2009 From: imaudi at comcast.net (Mike Christensen) Date: Thu, 02 Apr 2009 13:21:00 -0700 Subject: [Mono-list] Guide to installing Mono 2.4 on a clean Ubuntu 8.10 Server machine In-Reply-To: <49D51B90.4020406@comcast.net> References: <49D44AF7.6070809@comcast.net> <2fd035f00904020705h69a2c053u6bfec8a44494d40d@mail.gmail.com> <49D51B90.4020406@comcast.net> Message-ID: <49D51E2C.9090401@comcast.net> Ok I've updated my step 7 section, I think this is a lot better. 7) Configure Mod_Mono with Apache Type: cd /etc/apache2/mods-available/ Type: pico mod_mono.load This will create a new file, add the following lines to the file: Include /etc/apache2/mod_mono.conf MonoServerPath /usr/local/bin/mod-mono-server2 Press CTRL+X to exit Pico, answer "Yes" to save your changes. Now we have to activate our new module. Type: a2enmod mod_mono Restart Apache by typing: /etc/init.d/apache2 restart 8) Make sure it all works! ... Also I've changed all the tar commands to "tar -xvpjf" so the user can see what's going on Also, *quick question* why doesn't the mod_mono.conf file just get built into the /mods-available directory in the first place, along with a mod_mono.load file? If this happened, I'd only need to tell users to enable the mod and boom they'd be done. Maybe the build guys can comment? Thanks for the feedback! Mike Mike Christensen wrote: > Thanks! I'm thinking the official way to do it is probably create a > file called mod_mono.load in /etc/apache2/mods-available that has: > > Include /etc/apache2/mod_mono.conf > MonoServerPath /usr/local/bin/mod-mono-server2 > > and then create the link in mods-enabled. Isn't there actually some > sort of "enable-mod" script that does this for you too, rather than > using the ln command directly? > > Would people prefer this? Thanks!! > > Mike > > > Tinco Andringa wrote: >> Hi Mike, I like your guide :) >> >> I have one comment on step 7. What you do here is not the Apache way, >> and may scare people since they have to edit the apache2.conf which >> usually is a very large file. >> >> >>> 7) Configure Mod_Mono with Apache >>> >>> Type: cd /etc/apache2 >>> Type: pico apache2.conf >>> >>> Search for this section: >>> # Include module configuration: >>> Include /etc/apache2/mods-enabled/*.load >>> Include /etc/apache2/mods-enabled/*.conf >>> >>> Add the following line under the above lines: >>> Include /etc/apache2/mod_mono.conf >>> >>> At the end of this file, add the following line: >>> MonoServerPath /usr/local/bin/mod-mono-server2 >>> >>> Press CTRL+X to exit Pico, answer "Yes" to save your changes and press >>> enter to use the same file name. >>> >>> Restart Apache by typing: /etc/init.d/apache2 restart >>> >> >> Simpler would be to make a symbolic link in the >> /etc/apache2/mods_enabled/ directory to the mod_mono.conf file like >> so: >> >> Type: ln -s /etc/apache2/mod_mono.conf /etc/apache2/mods-enabled/mod_mono.conf >> >> And with that, it might also be a good idea to put MonoServerPath in >> the mod_mono.conf file rather than in the apache2.conf. Since when one >> would disable mod_mono, MonoServerPath would likely throw an error or >> warning or at least be totally useless. >> >> Great work! >> >> Greetings, >> Tinco >> _______________________________________________ >> 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/20090402/8bf10dfb/attachment-0001.html From fevans at harris.com Thu Apr 2 20:54:40 2009 From: fevans at harris.com (fevans) Date: Thu, 2 Apr 2009 17:54:40 -0700 (PDT) Subject: [Mono-list] Installing Mono without admin Message-ID: <22860040.post@talk.nabble.com> The following comments are hopelessly generalized, but in a nutshell a lot of .NET developers entering into Linux either don't have root, or are reluctant to make changes to a system they don't yet fully understand. I'm not a big fan of java, but by comparison the JRE distributions do seem to be fairly self-contained. One can install multiple JREs on a system in any directory, and simply add it to $PATH. Mono in contrast seems to have followed the traditional linux approach of '/usr/bin' and '/usr/lib'. I can't say which approach is 'better', but I've spent a lot of weekends groping for work-arounds. The RPMs don't have a relocate package, and when I build from source with a --prefix option, I still find references that are looking for mono in the system bin directory. To be clear, I'll bet good money its something I'm doing wrong. But that's the whole point. For a developer switching to Linux (which is a big percent of Mono adoption), there are some big hurdles. Downloading and compiling source is a no-brainer in the linux world, but for a windows developer/user it feels a bit unnatural. Overall Mono rocks. Looking forward to leveraging SIMD. Just taking a little longer to get there than I'd hoped. -- View this message in context: http://www.nabble.com/Installing-Mono-without-admin-tp22860040p22860040.html Sent from the Mono - General mailing list archive at Nabble.com. From imaudi at comcast.net Thu Apr 2 23:24:23 2009 From: imaudi at comcast.net (Mike Christensen) Date: Thu, 02 Apr 2009 20:24:23 -0700 Subject: [Mono-list] IHttpHandler works fine under IIS but not Apache Message-ID: <49D58167.5030306@comcast.net> Hi guys - I'm thinking this is most likely either an Apache limitation, a configuration problem, or a bug in mod-mono. I'm hoping it's the latter so we can fix it :) Let's say I have an IHttpHandler: public class Handler : IHttpHandler { //Stuff here that will blow your mind } Now I register this in my web.config: Good so far right? When I go to: /Test.foo My handler will be invoked and it will do all sorts of great things that you simply can't imagine, probably change the world and all. However if I do: /Blah/Test.foo Then Apache gives me a default 404 File not found error. If I go and create a blank directory on the file system called Blah, things will then work again. The point is, I do not want Apache or anything else validating the filepath or directory structure. Keep in mind there's web apps such as SharePoint that allow you to provision webs, subwebs, etc and these paths are completely resolved by HTTP handlers and are totally independent of the filesystem. Porting this architecture over to Mono might cause problems. My question is what is actually to blame? Is Apache verifying the directory before passing the request off to mod_mono? It obviously doesn't validate the file itself since Test.foo doesn't exist anywhere on the filesystem. I kinda think so because it's an Apache 404 error page I'm getting, which depresses me. Also, this doesn't happen on xsp so I blame Apache. Anything I can do about this? On my app, I can hack around it by creating the directories or maybe doing some hacks with vdirs and stuff, but is there a way we can provide a better experience? Thanks!! Mike From m.j.hutchinson at gmail.com Thu Apr 2 23:26:22 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Thu, 2 Apr 2009 23:26:22 -0400 Subject: [Mono-list] Installing Mono without admin In-Reply-To: <22860040.post@talk.nabble.com> References: <22860040.post@talk.nabble.com> Message-ID: On Thu, Apr 2, 2009 at 8:54 PM, fevans wrote: > > The following comments are hopelessly generalized, but in a nutshell a lot of > .NET developers entering into Linux either don't have root, or are reluctant > to make changes to a system they don't yet fully understand. > > I'm not a big fan of java, but by comparison the JRE distributions do seem > to be fairly self-contained. One can install multiple JREs on a system in > any directory, and simply add it to $PATH. > > Mono in contrast seems to have followed the traditional linux approach of > '/usr/bin' and '/usr/lib'. ?I can't say which approach is 'better', but I've > spent a lot of weekends groping for work-arounds. The RPMs don't have a > relocate package, and when I build from source with a --prefix option, I > still find references that are looking for mono in the system bin directory. > > To be clear, I'll bet good money its something I'm doing wrong. But that's > the whole point. For a developer switching to Linux (which is a big percent > of Mono adoption), there are some big hurdles. Downloading and compiling > source is a no-brainer in the linux world, but for a windows developer/user > it feels a bit unnatural. > > Overall Mono rocks. Looking forward to leveraging SIMD. Just taking a little > longer to get there than I'd hoped. FWIW, you can build and install isolated Monos as non-root quite easily: http://www.mono-project.com/Parallel_Mono_Environments -- Michael Hutchinson http://mjhutchinson.com From surfzoid at gmail.com Fri Apr 3 03:58:52 2009 From: surfzoid at gmail.com (Petit Eric) Date: Fri, 3 Apr 2009 09:58:52 +0200 Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share In-Reply-To: References: <22836300.post@talk.nabble.com> Message-ID: <84776a970904030058h21a11c80o88a667e0999dcc2f@mail.gmail.com> 2009/4/2 Robert Jordan : > colinjones wrote: >> I hve done some searching for this specific case, but cannot find any >> examples of people confirming this works. >> >>>From the MSDN article >> http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx it >> says in the Remarks section that this class can be used to register for >> events relating to file/folder changes on a remote system, not just the >> local system. >> >> Is this functionality fully implemented in Mono? I would like to code >> something on a Linux box, using the Mono equivalent class, that will monitor >> a remote share file/folder structure on a Windows box, and get events back >> when a file/folder on that Windows box changes. >> >> Is this possible with the Mono class? Did you try on an mounted point ? > > It should be possible if you set the environment var > MONO_MANAGED_WATCHER=1. See mono(1). > > The performance will most likely suck... > > Robert > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From rjlopes at gmail.com Fri Apr 3 04:10:22 2009 From: rjlopes at gmail.com (Ricardo Lopes) Date: Fri, 3 Apr 2009 09:10:22 +0100 Subject: [Mono-list] IHttpHandler works fine under IIS but not Apache In-Reply-To: <49D58167.5030306@comcast.net> References: <49D58167.5030306@comcast.net> Message-ID: <28220bb40904030110s224a8364n73fe1e0d3ace9adb@mail.gmail.com> Hi, You have to tell apache to send requests to *.foo to mod-mono, check your configuration. 2009/4/3 Mike Christensen : > Hi guys - I'm thinking this is most likely either an Apache limitation, > a configuration problem, or a bug in mod-mono. ?I'm hoping it's the > latter so we can fix it :) > > Let's say I have an IHttpHandler: > > public class Handler : IHttpHandler > { > //Stuff here that will blow your mind > } > > > Now I register this in my web.config: > > > ? > > > Good so far right? > > When I go to: > > /Test.foo > > My handler will be invoked and it will do all sorts of great things that > you simply can't imagine, probably change the world and all. > > However if I do: > > /Blah/Test.foo > > Then Apache gives me a default 404 File not found error. > > If I go and create a blank directory on the file system called Blah, > things will then work again. ?The point is, I do not want Apache or > anything else validating the filepath or directory structure. ?Keep in > mind there's web apps such as SharePoint that allow you to provision > webs, subwebs, etc and these paths are completely resolved by HTTP > handlers and are totally independent of the filesystem. ?Porting this > architecture over to Mono might cause problems. > > My question is what is actually to blame? ?Is Apache verifying the > directory before passing the request off to mod_mono? ?It obviously > doesn't validate the file itself since Test.foo doesn't exist anywhere > on the filesystem. ?I kinda think so because it's an Apache 404 error > page I'm getting, which depresses me. ?Also, this doesn't happen on xsp > so I blame Apache. ?Anything I can do about this? > > On my app, I can hack around it by creating the directories or maybe > doing some hacks with vdirs and stuff, but is there a way we can provide > a better experience? ?Thanks!! > > Mike > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Ricardo Lopes From imaudi at comcast.net Fri Apr 3 04:17:45 2009 From: imaudi at comcast.net (Mike Christensen) Date: Fri, 03 Apr 2009 01:17:45 -0700 Subject: [Mono-list] IHttpHandler works fine under IIS but not Apache In-Reply-To: <28220bb40904030110s224a8364n73fe1e0d3ace9adb@mail.gmail.com> References: <49D58167.5030306@comcast.net> <28220bb40904030110s224a8364n73fe1e0d3ace9adb@mail.gmail.com> Message-ID: <49D5C629.3060700@comcast.net> This is already done. As I've stated in my email, this works for /Test.foo but not /Blah/Test.foo. Apache requires the physical directory to exist on the filesystem, otherwise it returns a 404. Ricardo Lopes wrote: > Hi, > > You have to tell apache to send requests to *.foo to mod-mono, check > your configuration. > > 2009/4/3 Mike Christensen : > >> Hi guys - I'm thinking this is most likely either an Apache limitation, >> a configuration problem, or a bug in mod-mono. I'm hoping it's the >> latter so we can fix it :) >> >> Let's say I have an IHttpHandler: >> >> public class Handler : IHttpHandler >> { >> //Stuff here that will blow your mind >> } >> >> >> Now I register this in my web.config: >> >> >> >> >> >> Good so far right? >> >> When I go to: >> >> /Test.foo >> >> My handler will be invoked and it will do all sorts of great things that >> you simply can't imagine, probably change the world and all. >> >> However if I do: >> >> /Blah/Test.foo >> >> Then Apache gives me a default 404 File not found error. >> >> If I go and create a blank directory on the file system called Blah, >> things will then work again. The point is, I do not want Apache or >> anything else validating the filepath or directory structure. Keep in >> mind there's web apps such as SharePoint that allow you to provision >> webs, subwebs, etc and these paths are completely resolved by HTTP >> handlers and are totally independent of the filesystem. Porting this >> architecture over to Mono might cause problems. >> >> My question is what is actually to blame? Is Apache verifying the >> directory before passing the request off to mod_mono? It obviously >> doesn't validate the file itself since Test.foo doesn't exist anywhere >> on the filesystem. I kinda think so because it's an Apache 404 error >> page I'm getting, which depresses me. Also, this doesn't happen on xsp >> so I blame Apache. Anything I can do about this? >> >> On my app, I can hack around it by creating the directories or maybe >> doing some hacks with vdirs and stuff, but is there a way we can provide >> a better experience? Thanks!! >> >> Mike >> _______________________________________________ >> 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/20090403/459aadd7/attachment.html From donbonifacio at gmail.com Fri Apr 3 04:50:27 2009 From: donbonifacio at gmail.com (Pedro Santos) Date: Fri, 3 Apr 2009 09:50:27 +0100 Subject: [Mono-list] XSP Compilation Error In-Reply-To: References: Message-ID: Can I please get some feedback on this? Just woke up and realized that we had our institutional website [orionsbelt.eu] with that error all night long... :s Thank you for your time, 2009/3/31 Pedro Santos : > Hello, > > Yesterday I installed Mono and XSP 2.4 from SVN (after Miguel > announced mono 2.4). Today I got this error while accessing a page: > > Compilation Error > Description: Error compiling a resource required to service this > request. Review your source file and modify it to fix this error. > Compiler Error Message: CS0006: cannot find metadata file > `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.601c5071.dll' > > /Admin/default.aspx > Show Detailed Compiler Output: > > gmcs /target:library /debug- /optimize+ /warn:0 > /out:"/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_3e10ed3f.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll" > /r:"/usr/local/mono/mono-2.4_svn/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Castle.Core.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Castle.DynamicProxy2.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Commons.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/DesignPatterns.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/FreeTextBox.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Iesi.Collections.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Institutional.Core.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Institutional.DataAccessLayer.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Institutional.WebAdmin.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Institutional.WebComponents.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Institutional.WebUserInterface.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Loki.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/Mono.GetOptions.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/MySql.Data.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/NHibernate.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/NVelocity.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/log4net.dll" > /r:"/opt/orionsbelt/prd/institutional/public/Bin/nunit.framework.dll" > /r:"/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.601c5071.dll" > /r:"/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_2101ed92.dll" > /nowarn:0169 ?-- > "/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_3e10ed3f_0.cs" > > error CS0006: cannot find metadata file > `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.601c5071.dll' > error CS0006: cannot find metadata file > `/tmp/root-temp-aspnet-0/6f3f8f0/App_Web_2101ed92.dll' > > Mono version: > > # mono --version > Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130583 Mon Mar > 30 23:10:23 WEST 2009) > Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com > ? ? ? ?TLS: ? ? ? ? ? __thread > ? ? ? ?GC: ? ? ? ? ? ?Included Boehm (with typed GC) > ? ? ? ?SIGSEGV: ? ? ? altstack > ? ? ? ?Notifications: epoll > ? ? ? ?Architecture: ?x86 > ? ? ? ?Disabled: ? ? ?none > > > -- > Pedro Santos > Home - http://psantos.zi-yu.com > Work - http://www.pdmfc.com > The future - http://www.orionsbelt.eu > -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu From peter at wingsofdeath.nu Fri Apr 3 05:32:46 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Fri, 03 Apr 2009 11:32:46 +0200 Subject: [Mono-list] IHttpHandler works fine under IIS but not Apache In-Reply-To: <49D5C629.3060700@comcast.net> References: <49D58167.5030306@comcast.net> <28220bb40904030110s224a8364n73fe1e0d3ace9adb@mail.gmail.com> <49D5C629.3060700@comcast.net> Message-ID: <49D5D7BE.10709@wingsofdeath.nu> Hi I fixed this by using an alias. I added an alias in the site configuration, and added the alias path to the web.config: Apache site config Alias /test "/some/real/path/to/my/site/www" SetHandler mono Web.config With this configuration you don't need to create the directory Cheers Peter Mike Christensen wrote: > This is already done. > > As I've stated in my email, this works for /Test.foo but not > /Blah/Test.foo. Apache requires the physical directory to exist on the > filesystem, otherwise it returns a 404. > > Ricardo Lopes wrote: >> Hi, >> >> You have to tell apache to send requests to *.foo to mod-mono, check >> your configuration. >> >> 2009/4/3 Mike Christensen : >> >>> Hi guys - I'm thinking this is most likely either an Apache limitation, >>> a configuration problem, or a bug in mod-mono. I'm hoping it's the >>> latter so we can fix it :) >>> >>> Let's say I have an IHttpHandler: >>> >>> public class Handler : IHttpHandler >>> { >>> //Stuff here that will blow your mind >>> } >>> >>> >>> Now I register this in my web.config: >>> >>> >>> >>> >>> >>> Good so far right? >>> >>> When I go to: >>> >>> /Test.foo >>> >>> My handler will be invoked and it will do all sorts of great things that >>> you simply can't imagine, probably change the world and all. >>> >>> However if I do: >>> >>> /Blah/Test.foo >>> >>> Then Apache gives me a default 404 File not found error. >>> >>> If I go and create a blank directory on the file system called Blah, >>> things will then work again. The point is, I do not want Apache or >>> anything else validating the filepath or directory structure. Keep in >>> mind there's web apps such as SharePoint that allow you to provision >>> webs, subwebs, etc and these paths are completely resolved by HTTP >>> handlers and are totally independent of the filesystem. Porting this >>> architecture over to Mono might cause problems. >>> >>> My question is what is actually to blame? Is Apache verifying the >>> directory before passing the request off to mod_mono? It obviously >>> doesn't validate the file itself since Test.foo doesn't exist anywhere >>> on the filesystem. I kinda think so because it's an Apache 404 error >>> page I'm getting, which depresses me. Also, this doesn't happen on xsp >>> so I blame Apache. Anything I can do about this? >>> >>> On my app, I can hack around it by creating the directories or maybe >>> doing some hacks with vdirs and stuff, but is there a way we can provide >>> a better experience? Thanks!! >>> >>> Mike >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> >> >> >> > > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From imaudi at comcast.net Fri Apr 3 05:46:18 2009 From: imaudi at comcast.net (Mike Christensen) Date: Fri, 03 Apr 2009 02:46:18 -0700 Subject: [Mono-list] IHttpHandler works fine under IIS but not Apache In-Reply-To: <49D5D7BE.10709@wingsofdeath.nu> References: <49D58167.5030306@comcast.net> <28220bb40904030110s224a8364n73fe1e0d3ace9adb@mail.gmail.com> <49D5C629.3060700@comcast.net> <49D5D7BE.10709@wingsofdeath.nu> Message-ID: <49D5DAEA.4090500@comcast.net> Cool! I'll use this as well.. However, what if you wanted to build an app with a dynamic directory structure. For example, you can create a user account called Peter on MySpace and then go to www.myspace.com/Peter. However, I'm pretty sure they don't have a directory on the filesystem called Peter, nor an alias for Peter in their Apache config. It would be nice to just disable this check, which is why I'm wondering whether this is Apache or mod_mono doing this. IIS does not have this problem. Thanks again! Mike Peter Hagen wrote: > Hi > > I fixed this by using an alias. I added an alias in the site > configuration, and added the alias path to the web.config: > > Apache site config > > Alias /test "/some/real/path/to/my/site/www" > > SetHandler mono > > > Web.config > > > > > type="Willow.Cms.Common.WebServiceHandler, Willow.Cms.Common" /> > > > > > With this configuration you don't need to create the directory > > Cheers > > Peter > > > Mike Christensen wrote: >> This is already done. >> >> As I've stated in my email, this works for /Test.foo but not >> /Blah/Test.foo. Apache requires the physical directory to exist on >> the filesystem, otherwise it returns a 404. >> >> Ricardo Lopes wrote: >>> Hi, >>> >>> You have to tell apache to send requests to *.foo to mod-mono, check >>> your configuration. >>> >>> 2009/4/3 Mike Christensen : >>> >>>> Hi guys - I'm thinking this is most likely either an Apache >>>> limitation, >>>> a configuration problem, or a bug in mod-mono. I'm hoping it's the >>>> latter so we can fix it :) >>>> >>>> Let's say I have an IHttpHandler: >>>> >>>> public class Handler : IHttpHandler >>>> { >>>> //Stuff here that will blow your mind >>>> } >>>> >>>> >>>> Now I register this in my web.config: >>>> >>>> >>>> >>>> >>>> >>>> Good so far right? >>>> >>>> When I go to: >>>> >>>> /Test.foo >>>> >>>> My handler will be invoked and it will do all sorts of great things >>>> that >>>> you simply can't imagine, probably change the world and all. >>>> >>>> However if I do: >>>> >>>> /Blah/Test.foo >>>> >>>> Then Apache gives me a default 404 File not found error. >>>> >>>> If I go and create a blank directory on the file system called Blah, >>>> things will then work again. The point is, I do not want Apache or >>>> anything else validating the filepath or directory structure. Keep in >>>> mind there's web apps such as SharePoint that allow you to provision >>>> webs, subwebs, etc and these paths are completely resolved by HTTP >>>> handlers and are totally independent of the filesystem. Porting this >>>> architecture over to Mono might cause problems. >>>> >>>> My question is what is actually to blame? Is Apache verifying the >>>> directory before passing the request off to mod_mono? It obviously >>>> doesn't validate the file itself since Test.foo doesn't exist anywhere >>>> on the filesystem. I kinda think so because it's an Apache 404 error >>>> page I'm getting, which depresses me. Also, this doesn't happen on >>>> xsp >>>> so I blame Apache. Anything I can do about this? >>>> >>>> On my app, I can hack around it by creating the directories or maybe >>>> doing some hacks with vdirs and stuff, but is there a way we can >>>> provide >>>> a better experience? Thanks!! >>>> >>>> Mike >>>> _______________________________________________ >>>> Mono-list maillist - Mono-list at lists.ximian.com >>>> http://lists.ximian.com/mailman/listinfo/mono-list >>>> >>>> >>> >>> >>> >>> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > From peter at wingsofdeath.nu Fri Apr 3 06:00:34 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Fri, 03 Apr 2009 12:00:34 +0200 Subject: [Mono-list] IHttpHandler works fine under IIS but not Apache In-Reply-To: <49D5DAEA.4090500@comcast.net> References: <49D58167.5030306@comcast.net> <28220bb40904030110s224a8364n73fe1e0d3ace9adb@mail.gmail.com> <49D5C629.3060700@comcast.net> <49D5D7BE.10709@wingsofdeath.nu> <49D5DAEA.4090500@comcast.net> Message-ID: <49D5DE42.8080902@wingsofdeath.nu> Hi Mike this can also be done by Apache. The easiest way is use mod-rewrite with apache. You could create a httphandler with handles these request. For example for the page of 'peter': http://www.yourspace.com/page/peter But you want the request: http://www.yourspace.com/peter With the mod-rewrites you can change the requested url to a different one. First add the mod-rewrite module to apache (rewrite.load). Then add a .htaccess file to the root of your site, with something like this: RewriteEngine On RewriteBase / RewriteRule ^(.*) /page/$1 It uses regular expressions to find the match ^(.*) and rewrites the match to /page/$1. If the rewrite modules works, this should be your solution. Good luck! Cheers Peter Mike Christensen wrote: > Cool! I'll use this as well.. > > However, what if you wanted to build an app with a dynamic directory > structure. For example, you can create a user account called Peter on > MySpace and then go to www.myspace.com/Peter. However, I'm pretty sure > they don't have a directory on the filesystem called Peter, nor an alias > for Peter in their Apache config. > > It would be nice to just disable this check, which is why I'm wondering > whether this is Apache or mod_mono doing this. IIS does not have this > problem. > > Thanks again! > Mike > > Peter Hagen wrote: >> Hi >> >> I fixed this by using an alias. I added an alias in the site >> configuration, and added the alias path to the web.config: >> >> Apache site config >> >> Alias /test "/some/real/path/to/my/site/www" >> >> SetHandler mono >> >> >> Web.config >> >> >> >> >> > type="Willow.Cms.Common.WebServiceHandler, Willow.Cms.Common" /> >> >> >> >> >> With this configuration you don't need to create the directory >> >> Cheers >> >> Peter >> >> >> Mike Christensen wrote: >>> This is already done. >>> >>> As I've stated in my email, this works for /Test.foo but not >>> /Blah/Test.foo. Apache requires the physical directory to exist on >>> the filesystem, otherwise it returns a 404. >>> >>> Ricardo Lopes wrote: >>>> Hi, >>>> >>>> You have to tell apache to send requests to *.foo to mod-mono, check >>>> your configuration. >>>> >>>> 2009/4/3 Mike Christensen : >>>> >>>>> Hi guys - I'm thinking this is most likely either an Apache >>>>> limitation, >>>>> a configuration problem, or a bug in mod-mono. I'm hoping it's the >>>>> latter so we can fix it :) >>>>> >>>>> Let's say I have an IHttpHandler: >>>>> >>>>> public class Handler : IHttpHandler >>>>> { >>>>> //Stuff here that will blow your mind >>>>> } >>>>> >>>>> >>>>> Now I register this in my web.config: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Good so far right? >>>>> >>>>> When I go to: >>>>> >>>>> /Test.foo >>>>> >>>>> My handler will be invoked and it will do all sorts of great things >>>>> that >>>>> you simply can't imagine, probably change the world and all. >>>>> >>>>> However if I do: >>>>> >>>>> /Blah/Test.foo >>>>> >>>>> Then Apache gives me a default 404 File not found error. >>>>> >>>>> If I go and create a blank directory on the file system called Blah, >>>>> things will then work again. The point is, I do not want Apache or >>>>> anything else validating the filepath or directory structure. Keep in >>>>> mind there's web apps such as SharePoint that allow you to provision >>>>> webs, subwebs, etc and these paths are completely resolved by HTTP >>>>> handlers and are totally independent of the filesystem. Porting this >>>>> architecture over to Mono might cause problems. >>>>> >>>>> My question is what is actually to blame? Is Apache verifying the >>>>> directory before passing the request off to mod_mono? It obviously >>>>> doesn't validate the file itself since Test.foo doesn't exist anywhere >>>>> on the filesystem. I kinda think so because it's an Apache 404 error >>>>> page I'm getting, which depresses me. Also, this doesn't happen on >>>>> xsp >>>>> so I blame Apache. Anything I can do about this? >>>>> >>>>> On my app, I can hack around it by creating the directories or maybe >>>>> doing some hacks with vdirs and stuff, but is there a way we can >>>>> provide >>>>> a better experience? Thanks!! >>>>> >>>>> Mike >>>>> _______________________________________________ >>>>> Mono-list maillist - Mono-list at lists.ximian.com >>>>> http://lists.ximian.com/mailman/listinfo/mono-list >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >> From fevans at harris.com Fri Apr 3 09:30:45 2009 From: fevans at harris.com (fevans) Date: Fri, 3 Apr 2009 06:30:45 -0700 (PDT) Subject: [Mono-list] Installing Mono without admin In-Reply-To: References: <22860040.post@talk.nabble.com> Message-ID: <22868440.post@talk.nabble.com> Thanks for the link. I've compiled from source before, repeatedly actually. Trouble is, when something goes wrong I'm not sure if its something I botched in the compile, or env problem, or a legitimate mono issue. But the link did contain some very useful environment variables that I didn't know about. Will try again this weekend. Thanks very much.... Michael Hutchinson wrote: > > FWIW, you can build and install isolated Monos as non-root quite > easily: http://www.mono-project.com/Parallel_Mono_Environments > -- View this message in context: http://www.nabble.com/Installing-Mono-without-admin-tp22860040p22868440.html Sent from the Mono - General mailing list archive at Nabble.com. From matthias_weiser at yahoo.com Fri Apr 3 10:11:20 2009 From: matthias_weiser at yahoo.com (weismat) Date: Fri, 3 Apr 2009 07:11:20 -0700 (PDT) Subject: [Mono-list] Using Mono with named pipes/fifo queues Message-ID: <22869203.post@talk.nabble.com> I would like to use Mono to write and read from a named pipe on Linux to exchange large amounts of data between programs. I have managed to write using File.Open and read using File.Read, but not the same time. Has anyone experience using FIFO queues with Mono and give me any recommendations? Thanks! -- View this message in context: http://www.nabble.com/Using-Mono-with-named-pipes-fifo-queues-tp22869203p22869203.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Fri Apr 3 12:58:31 2009 From: robertj at gmx.net (Robert Jordan) Date: Fri, 03 Apr 2009 18:58:31 +0200 Subject: [Mono-list] Using Mono with named pipes/fifo queues In-Reply-To: <22869203.post@talk.nabble.com> References: <22869203.post@talk.nabble.com> Message-ID: weismat wrote: > I would like to use Mono to write and read from a named pipe on Linux to > exchange large amounts of data between programs. > I have managed to write using File.Open and read using File.Read, but not > the same time. > Has anyone experience using FIFO queues with Mono and give me any > recommendations? > Thanks! For both reading/writing at the same time you must operate the fifo in non-blocking mode. Try one of the FileStream ctors that support the "bool useAsync" argument. If it still doesn't work, you probably have to resort to Mono.Posix that definitely can open files with the O_NONBLOCK flag. Robert From gonzalo.mono at gmail.com Fri Apr 3 14:30:33 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Fri, 03 Apr 2009 14:30:33 -0400 Subject: [Mono-list] Porting *.resx string collections to Mono In-Reply-To: <22849935.post@talk.nabble.com> References: <22849935.post@talk.nabble.com> Message-ID: <1238783433.7500.1.camel@lalo-laptop> On Thu, 2009-04-02 at 08:14 -0700, cb951303 wrote: > http://www.nabble.com/file/p22849935/Resources.Designer.cs > Resources.Designer.cs > http://www.nabble.com/file/p22849935/Resources.resx Resources.resx > > Above files are from Horde3D engine VS2008 project file. I succesfully > compiled the engine with these resource files included but when I try to use > built DLL I get errors like this: > > [quote] > Unhandled Exception: System.Resources.MissingManifestResourceException: > Could not find any resources appropriate for the specified culture or the > neutral culture. Make sure "Horde3DNET.Properties.Resources.resources" was > correctly embedded or linked into assembly "Horde3D.NET" at compile time, or > that all the satellite assemblies required are loadable and fully signed. > at System.Resources.ResourceManager.AssemblyResourceMissing (System.String > fileName) [0x00000] Did you check that the resource name embedded in the assembly matches exactly "Horde3DNET.Properties.Resources.resources"? -Gonzalo From ljimenez at nacion.co.cr Fri Apr 3 15:51:07 2009 From: ljimenez at nacion.co.cr (Lorenzo Jimenez) Date: Fri, 3 Apr 2009 12:51:07 -0700 (PDT) Subject: [Mono-list] Plz, how I program for the Iphone Message-ID: <22874226.post@talk.nabble.com> hi there, I am looking for many games developed for the Iphone. it is possible to program general applications? How I can program for the Iphone? Can I program with Linux or Windows and target them to the Iphone? How is the program cycle for the Iphone? thanks very much, Regards, Lorenzo -- View this message in context: http://www.nabble.com/Plz%2C-how-I-program-for-the-Iphone-tp22874226p22874226.html Sent from the Mono - General mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Fri Apr 3 15:52:34 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Fri, 3 Apr 2009 15:52:34 -0400 Subject: [Mono-list] UserControls in MonoDevelop 2.0 In-Reply-To: <49D4747B.7040201@yahoo.de> References: <49D4747B.7040201@yahoo.de> Message-ID: On Thu, Apr 2, 2009 at 4:16 AM, Ferdinand Funke wrote: > > I recently started using MonoDevelop 2.0 and it seems to me that > MonoDevelop always replaces my UserControl definitions in the designer > file by "System.Web.UI.UserControl" when rebuilding the project. I > created the project on Visual Studio and then ported it to MonoDevelop. > Did anyone come across this issue? MD doesn't yet resolve the type of usercontrols with CodeBehind when generating designer classes. However, recent changes make this pretty easy to fix now. Could you file a bug? -- Michael Hutchinson http://mjhutchinson.com From randy at ultbingo.com Fri Apr 3 16:19:02 2009 From: randy at ultbingo.com (UndergroundChop) Date: Fri, 3 Apr 2009 13:19:02 -0700 (PDT) Subject: [Mono-list] New to mono hello world compile question. Message-ID: <22874237.post@talk.nabble.com> Hello all and thank you in advance for your time. I have recently installed Fedora 10 and am working to get Mono up and running as well. I have compiled the hello mono world code on my xp home machine. with mcs hello.cs I ftp the .exe file over to the linux machine and when i invoke mono hello.exe i get the following error. Cannot open assemble 'hello.exe': File does not contain a valid CIL image. Any thoughts on how I can get around this? -- View this message in context: http://www.nabble.com/New-to-mono-hello-world-compile-question.-tp22874237p22874237.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Fri Apr 3 17:27:36 2009 From: robertj at gmx.net (Robert Jordan) Date: Fri, 03 Apr 2009 23:27:36 +0200 Subject: [Mono-list] New to mono hello world compile question. In-Reply-To: <22874237.post@talk.nabble.com> References: <22874237.post@talk.nabble.com> Message-ID: UndergroundChop wrote: > Hello all and thank you in advance for your time. > > I have recently installed Fedora 10 and am working to get Mono up and > running as well. > > I have compiled the hello mono world code on my xp home machine. with mcs > hello.cs > I ftp the .exe file over to the linux machine and when i invoke mono > hello.exe i get the following error. > > Cannot open assemble 'hello.exe': File does not contain a valid CIL image. > > Any thoughts on how I can get around this? Have you ftp-ed the file in binary mode? Robert From seanbeeson at gmail.com Sat Apr 4 05:25:29 2009 From: seanbeeson at gmail.com (Sean Beeson) Date: Sat, 4 Apr 2009 18:25:29 +0900 Subject: [Mono-list] Mono Support for MIDI and Jack Connection Kit in Linux Systems--Is There? Message-ID: <6e7673c00904040225u72123a43ofee4a7aaf8981b79@mail.gmail.com> Hi lists, I am sending this to both Monodevelop-list and Mono-list because I have not been able to get a reply from Mono-list and I am hoping that If I ask in more general term one of the list might help on this. I am hoping to work with MIDI and the Jack Connection Kit with Mono, however after searching the class library and the Internet I am not finding anything on it or if it is at all possible other than marshaling the Linux parts and going on my own this way. In windows you have to use Interop with wmm.dll. If anyone can tell me if there is something or if I am searching for something that is not there and will not be there anytime soon, it would be much appropriated. Thank you and kind regards, --Sean Beeson (the one in Japan) From jeffry.molanus at gmail.com Fri Apr 3 18:03:53 2009 From: jeffry.molanus at gmail.com (Jeffry) Date: Fri, 3 Apr 2009 15:03:53 -0700 (PDT) Subject: [Mono-list] ironpython with mono.fuse Message-ID: <22877224.post@talk.nabble.com> Hi all, I got a working ironPython setup but want to add the Mono.Fuse (assembly?). I can clr.AddReference() the Mono.Posix library but when try to add Mono.FUse it can not find it. I updated ld.so.config tried to copy the .dll to ironpython as well as the mono/2.0 directory but no luck. Any suggestions? Regards, Jeffry -- View this message in context: http://www.nabble.com/ironpython-with-mono.fuse-tp22877224p22877224.html Sent from the Mono - General mailing list archive at Nabble.com. From jason at ms.usi.com.tw Fri Apr 3 19:07:58 2009 From: jason at ms.usi.com.tw (Jason Lin) Date: Fri, 3 Apr 2009 16:07:58 -0700 (PDT) Subject: [Mono-list] An Oracle connection issue of running Prism on Linux with mono Message-ID: <22877920.post@talk.nabble.com> Hello, I would like to convert win32 Delphi 5 to Delphi Prism and then let it run with mono on Linux. Two environmants are listed below. Windows environment: Windows 2003 + Delphi Prism + Oracle 9i Client Linux environmant: Radhat Enterprise Linux 4.6 + mono 1.9 + Oracle 9i Client Test procedure: A. To complete DB connection with Prism. 1.Add DataNewSource ->select Oracle Database -> enter user name / pwd -> Test OK 2.Draw field names to Main Form and then Prism creates BindingSource & TableAdapter 3.This program can connect to database. B.To copy the executable file to Redhat Linux but it can't connect to database. Error massage: ** (:10151): WARNING **: Missing method System.Data.OracleClient.OracleParameter::.ctor(string,OracleType,int,ParameterDirection,string,DataRowVersion,bool,object) in assembly /opt/mono-1.9.1/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll, referenced in assembly /home/oracle/DBTest.exe Unhandled Exception: System.MissingMethodException: Method not found: 'System.Data.OracleClient.OracleParameter..ctor'. at DBTest.DataSet1TableAdapters.C_COMPANY_CODE_TTableAdapter.get_Adapter () [0x00000] at DBTest.DataSet1TableAdapters.C_COMPANY_CODE_TTableAdapter.Fill (DBTest.C_COMPANY_CODE_TDataTable dataTable) [0x00000] at DBTest.MainForm.MainForm_Load (System.Object sender, System.EventArgs e) [0x00000] at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000] at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] at System.Windows.Forms.Form.OnCreateControl () [0x00000] at System.Windows.Forms.Control.CreateControl () [0x00000] at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] C.Another Prism program that isn't a database application can run on Linux well. Would someone give me some suggestions about the distribution of Linux and the version of Oracle? Should I install any packages for database connection after installed mono? Which distribution of Linux and which version of Oracle client should I use to run Prism on Linux? -- View this message in context: http://www.nabble.com/An-Oracle-connection-issue-of-running-Prism-on-Linux-with-mono-tp22877920p22877920.html Sent from the Mono - General mailing list archive at Nabble.com. From jonpryor at vt.edu Sat Apr 4 21:17:38 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Sat, 04 Apr 2009 21:17:38 -0400 Subject: [Mono-list] ironpython with mono.fuse In-Reply-To: <22877224.post@talk.nabble.com> References: <22877224.post@talk.nabble.com> Message-ID: <1238894258.12261.14.camel@lina> On Fri, 2009-04-03 at 15:03 -0700, Jeffry wrote: > I got a working ironPython setup but want to add the Mono.Fuse (assembly?). > I can clr.AddReference() the Mono.Posix library but when try to add > Mono.FUse it can not find it. I updated ld.so.config tried to copy the .dll > to ironpython as well as the mono/2.0 directory but no luck. Mono.Fuse is not included with Mono. You will need to build and install it separately. (Also, please let me know if it works at all with IronPython -- I'm particularly curious if the `out' semantics used in e.g. Mono.Fuse.FileSystem.OnGetFileSystemStatus() and FileSystem.OnReadDirectory() are usable by languages other than C#, and, if `out' semantics aren't acceptable, what an improved API would be. I'm currently thinking that an "error reporting via exceptions" approach may be more language friendly...) - Jon From m.j.hutchinson at gmail.com Sat Apr 4 22:34:46 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 4 Apr 2009 22:34:46 -0400 Subject: [Mono-list] An Oracle connection issue of running Prism on Linux with mono In-Reply-To: <22877920.post@talk.nabble.com> References: <22877920.post@talk.nabble.com> Message-ID: On Fri, Apr 3, 2009 at 7:07 PM, Jason Lin wrote: > ** (:10151): WARNING **: Missing method > System.Data.OracleClient.OracleParameter::.ctor(string,OracleType,int,ParameterDirection,string,DataRowVersion,bool,object) > in assembly > /opt/mono-1.9.1/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll, > referenced in assembly /home/oracle/DBTest.exe ... > Would someone give me some suggestions about the distribution of Linux and > the version of Oracle? Should I install any packages for database connection > after installed mono? > Which distribution of Linux and which version of Oracle client should I use > to run Prism on Linux? Mono 1.9.1 is a year old. Please upgrade to Mono 2.4, as it has better coverage of the .NET 3.5 SP1 APIs. -- Michael Hutchinson http://mjhutchinson.com From colin_a_jones at hotmail.com Sun Apr 5 02:00:50 2009 From: colin_a_jones at hotmail.com (colinjones) Date: Sat, 4 Apr 2009 23:00:50 -0700 (PDT) Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share In-Reply-To: <22836300.post@talk.nabble.com> References: <22836300.post@talk.nabble.com> Message-ID: <22890797.post@talk.nabble.com> OK, I have now compiled a C# snippet that is essentially the same as the code on the MSDN site and it runs fine both on a Windows machine and on Linux running under Mono. Functionally it works for local files on both. On Windows it will also happily take a UNC path and monitor a remote folder. However, running on Linux under Mono it refuses to accept a UNC path, with: Unhandled Exception: System.ArgumentException: Directory does not exists Parameter name: path at System.IO.FileSystemWatcher..ctor (System.String path, System.String filter) [0x00000] at System.IO.FileSystemWatcher..ctor (System.String path) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor (string) at FileSystemWatcherTest.Program.Run (System.String[] args) [0x00000] at FileSystemWatcherTest.Program.Main (System.String[] args) [0x00000] I have tried alsorts of different formats to try to get it to accept a UNC like the .NET class does, but it won't do it. Is this a bug? Shouldn't the API present the same interface as the .NET class does? I don't think there is any point trying to mount the remote share, or anything like that because the FileSystemWatcher class needs to parse the UNC path to get the remote machine name so that it can connect to the same functionality on the remote machine using COM communications. -- View this message in context: http://www.nabble.com/FileSystemWatcher-on-Linux-to-monitor-a-remote-NTFS-share-tp22836300p22890797.html Sent from the Mono - General mailing list archive at Nabble.com. From dgortonii at gmail.com Sun Apr 5 02:11:31 2009 From: dgortonii at gmail.com (Danny) Date: Sun, 05 Apr 2009 02:11:31 -0400 Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share In-Reply-To: <22890797.post@talk.nabble.com> References: <22836300.post@talk.nabble.com> <22890797.post@talk.nabble.com> Message-ID: <49D84B93.8060809@gmail.com> I think if you use a mount point, the FileSystemWatcher would then be unaware of the fact that the directory being watched is in fact on a Windows machine (abstraction) and that seems like a logical thing to try to me. The only thing I'm wondering is whether the mount type needed (cifs) will support the FileSystemWatcher's needs, which I am not familiar with. colinjones wrote: > OK, I have now compiled a C# snippet that is essentially the same as the code > on the MSDN site and it runs fine both on a Windows machine and on Linux > running under Mono. > > Functionally it works for local files on both. On Windows it will also > happily take a UNC path and monitor a remote folder. However, running on > Linux under Mono it refuses to accept a UNC path, with: > > Unhandled Exception: System.ArgumentException: Directory does not exists > Parameter name: path > at System.IO.FileSystemWatcher..ctor (System.String path, System.String > filter) [0x00000] > at System.IO.FileSystemWatcher..ctor (System.String path) [0x00000] > at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor > (string) > at FileSystemWatcherTest.Program.Run (System.String[] args) [0x00000] > at FileSystemWatcherTest.Program.Main (System.String[] args) [0x00000] > > > I have tried alsorts of different formats to try to get it to accept a UNC > like the .NET class does, but it won't do it. Is this a bug? Shouldn't the > API present the same interface as the .NET class does? > > I don't think there is any point trying to mount the remote share, or > anything like that because the FileSystemWatcher class needs to parse the > UNC path to get the remote machine name so that it can connect to the same > functionality on the remote machine using COM communications. > From robertj at gmx.net Sun Apr 5 07:01:24 2009 From: robertj at gmx.net (Robert Jordan) Date: Sun, 05 Apr 2009 13:01:24 +0200 Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share In-Reply-To: <22890797.post@talk.nabble.com> References: <22836300.post@talk.nabble.com> <22890797.post@talk.nabble.com> Message-ID: colinjones wrote: > I don't think there is any point trying to mount the remote share, or > anything like that because the FileSystemWatcher class needs to parse the > UNC path to get the remote machine name so that it can connect to the same > functionality on the remote machine using COM communications. Linux does not support UNC paths, nor Mono does. And CIFS does not need COM :). You have to mount the Windows share with OS' machinery (smbmount). Then you can use the share like a local path. Robert From ralf at ralf-haifisch.biz Sun Apr 5 07:34:50 2009 From: ralf at ralf-haifisch.biz (Ralf Haifisch) Date: Sun, 5 Apr 2009 04:34:50 -0700 (PDT) Subject: [Mono-list] Q: MONO on Linux - MONO_THREADS_PER_CPU Message-ID: <22892502.post@talk.nabble.com> Dear all, i would need some clarification on MONO on Linux - MONO_THREADS_PER_CPU . I am involved with http://opensimulator.org , and we have a regularly reorcuring discussion about the MONO_THREADS_PER_CPU . I did read http://www.mono-project.com/ThreadPool_DeadLocks and it reads, like this is an very old issue. since 3D world can have a big span of resource usage (count of prim, textures, scripts, avatars in a instance) and opensim itself is in steady development, it is sometimes not easy to track down the limiting issues for scaling. the opensim user use MONO 1.2 , 2.0.1 (mostly, i would say), 2.2 and 2.4. It is sugeestet to use 2.x . We see a little bit more stable operations and higher capacity on .Net 3.x . --> is MONO_THREADS_PER_CPU still an issue in 2.0.1 /2.2 / 2.4 ? --> is this likely to be fixed in a next version ? --> is there any guidance to calculate the actual numer to set, based on hardware and target capacity ? any help and further information may be helpfull, as opensim attracts more and more user - so higher loads get?s more likely. Many user are close to opensource and prefer Linux. So - information from MONO archcitects and dev?s maybe helpfull, as well as from linux admins who have expirience with that topic. cheers, Ralf ----- --- opensouce 3D magazine - http://www.maxping.org german opensim howto - http://www.ralf-haifisch.biz/Opensim%20HowTo.shtml Linked in - http://www.linkedin.com/in/ralfhuelsmann osgrid location - Sharkland Tropical 1 -- View this message in context: http://www.nabble.com/Q%3A--MONO-on-Linux----MONO_THREADS_PER_CPU-tp22892502p22892502.html Sent from the Mono - General mailing list archive at Nabble.com. From ishwor at loopback.ath.cx Sun Apr 5 09:04:53 2009 From: ishwor at loopback.ath.cx (Ishwor Gurung) Date: Sun, 05 Apr 2009 22:34:53 +0930 Subject: [Mono-list] Mono/Kde-binding(qyoto) bug? Message-ID: <49D8AC75.7020102@loopback.ath.cx> Hi, My setting: - Qyoto version 4.4.0 - Mono C# version 2.0.1.0 My qyoto widget has a small QTextEdit box to type messages in (which is invoked when a user presses a button). They are all good and OK (the user interface bits). However, at runtime if I type some text into the QTextEdit and move my mouse towards another window, I get a sigabort with the following output - /////////////////////////////////////////////////////////////////////// Stacktrace: at (wrapper managed-to-native) Qyoto.SmokeInvocation.CallSmokeMethod (intptr,int,intptr,intptr,int) <0x00004> at (wrapper managed-to-native) Qyoto.SmokeInvocation.CallSmokeMethod (intptr,int,intptr,intptr,int) <0xffffffff> at Qyoto.SmokeInvocation.Invoke (string,string,System.Type,object[]) [0x00399] in /build/buildd/qt-mono-bindings-4.2.1/csharp/qyoto/src/SmokeInvocation.cs:609 at Qyoto.QApplication.Exec () [0x00000] in /build/buildd/qt-mono-bindings-4.2.1/csharp/qyoto/gui/QApplication.cs:278 at Rirc.Rirc.Main (string[]) [0x00013] in /home/ishwor/workspace/csharp/Rirc/Rirc.cs:16 at (wrapper runtime-invoke) Rirc.Rirc.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: /usr/bin/mono [0x806d954] /usr/bin/mono [0x80861bb] [0xb7fa6410] /usr/lib/kde4/plugins/styles/oxygen.so [0xb599e7bd] /usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x9a) [0xb6b8404a] /usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9a) [0xb62758ca] /usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1196) [0xb627e806] /usr/lib/libsmokeqt.so.2 [0xb6dc5dab] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0xb1) [0xb6b84e61] /usr/lib/libQtGui.so.4 [0xb62d63de] /usr/lib/libQtGui.so.4 [0xb630cbb0] /usr/lib/libQtGui.so.4 [0xb630ed26] /usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x735) [0xb62e5af5] /usr/lib/libQtGui.so.4 [0xb63107aa] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e8) [0xb7ee7718] /usr/lib/libglib-2.0.so.0 [0xb7eeadc3] /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x71) [0xb7eeaf81] /usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x58) [0xb6baf478] /usr/lib/libQtGui.so.4 [0xb630fea5] /usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x4a) [0xb6b8352a] /usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea) [0xb6b836ea] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xb5) [0xb6b85da5] /usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27) [0xb6275767] /usr/lib/libsmokeqt.so.2 [0xb6dbfafa] /usr/lib/libqyotoshared.so.1(_ZN5Qyoto10MethodCall10callMethodEv+0x17b) [0xb704705b] /usr/lib/libqyotoshared.so.1(_ZN5Qyoto10MethodCall4nextEv+0x74) [0xb7047474] /usr/lib/cli/kdebindings-4.4/libqyoto.so(CallSmokeMethod+0x81) [0xb709a261] [0xb708b9f5] [0xb792a432] [0xb59dbd47] [0xb791e27a] [0xb791e1b3] /usr/bin/mono(mono_runtime_exec_main+0xe5) [0x80d3695] /usr/bin/mono(mono_runtime_run_main+0x16b) [0x80d3e0b] /usr/bin/mono(mono_main+0x1737) [0x805c927] /usr/bin/mono [0x805ac62] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d19685] /usr/bin/mono [0x805aba1] Debug info from gdb: (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 0xb7cd76d0 (LWP 31404)] [New Thread 0xb7527b90 (LWP 31411)] [New Thread 0xb791db90 (LWP 31406)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0xb7fa6430 in __kernel_vsyscall () 3 Thread 0xb791db90 (LWP 31406) 0xb7fa6430 in __kernel_vsyscall () 2 Thread 0xb7527b90 (LWP 31411) 0xb7fa6430 in __kernel_vsyscall () 1 Thread 0xb7cd76d0 (LWP 31404) 0xb7fa6430 in __kernel_vsyscall () Thread 3 (Thread 0xb791db90 (LWP 31406)): #0 0xb7fa6430 in __kernel_vsyscall () #1 0xb7e94906 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0814fc48 in ?? () #3 0xb7e8d50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #4 0xb7de4a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread 0xb7527b90 (LWP 31411)): #0 0xb7fa6430 in __kernel_vsyscall () #1 0xb7e91075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08141c47 in ?? () #3 0x08144834 in ?? () #4 0x0814489c in ?? () #5 0x08150822 in ?? () #6 0x080e6aea in ?? () #7 0x08118679 in ?? () #8 0x081564f6 in ?? () #9 0x0816f5d5 in ?? () #10 0xb7e8d50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #11 0xb7de4a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread 0xb7cd76d0 (LWP 31404)): #0 0xb7fa6430 in __kernel_vsyscall () #1 0xb7de0fb7 in syscall () from /lib/tls/i686/cmov/libc.so.6 #2 0x0806d9f7 in ?? () #3 0x080861bb in ?? () #4 #5 0x00000378 in ?? () #6 0xb599e7bd in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so #7 0xb6b8404a in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4 #8 0xb62758ca in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #9 0xb627e806 in QApplication::notify () from /usr/lib/libQtGui.so.4 #10 0xb6dc5dab in ?? () from /usr/lib/libsmokeqt.so.2 #11 0xb6b84e61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #12 0xb62d63de in ?? () from /usr/lib/libQtGui.so.4 #13 0xb630cbb0 in ?? () from /usr/lib/libQtGui.so.4 #14 0xb630ed26 in ?? () from /usr/lib/libQtGui.so.4 #15 0xb62e5af5 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #16 0xb63107aa in ?? () from /usr/lib/libQtGui.so.4 #17 0xb7ee7718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #18 0xb7eeadc3 in ?? () from /usr/lib/libglib-2.0.so.0 #19 0xb7eeaf81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #20 0xb6baf478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #21 0xb630fea5 in ?? () from /usr/lib/libQtGui.so.4 #22 0xb6b8352a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #23 0xb6b836ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #24 0xb6b85da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #25 0xb6275767 in QApplication::exec () from /usr/lib/libQtGui.so.4 #26 0xb6dbfafa in ?? () from /usr/lib/libsmokeqt.so.2 #27 0xb704705b in Qyoto::MethodCall::callMethod () from /usr/lib/libqyotoshared.so.1 #28 0xb7047474 in Qyoto::MethodCall::next () from /usr/lib/libqyotoshared.so.1 #29 0xb709a261 in CallSmokeMethod () from /usr/lib/cli/kdebindings-4.4/libqyoto.so #30 0xb708b9f5 in ?? () #31 0xb792a432 in ?? () #32 0xb59dbd47 in ?? () #33 0xb791e27a in ?? () #34 0xb791e1b3 in ?? () #35 0x080d3695 in mono_runtime_exec_main () #36 0x080d3e0b in mono_runtime_run_main () #37 0x0805c927 in mono_main () #38 0x0805ac62 in ?? () #39 0xb7d19685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #40 0x0805aba1 in ?? () #0 0xb7fa6430 in __kernel_vsyscall () ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= The application was terminated by a signal: SIGABRT /////////////////////////////////////////////////////////////////////// Different bug again while running the same application - /////////////////////////////////////////////////////////////////////// mono: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed. Stacktrace: at (wrapper managed-to-native) Qyoto.SmokeInvocation.CallSmokeMethod (intptr,int,intptr,intptr,int) <0x00004> at (wrapper managed-to-native) Qyoto.SmokeInvocation.CallSmokeMethod (intptr,int,intptr,intptr,int) <0xffffffff> at Qyoto.SmokeInvocation.Invoke (string,string,System.Type,object[]) [0x003d1] in /build/buildd/qt-mono-bindings-4.2.1/csharp/qyoto/src/SmokeInvocation.cs:616 at Qyoto.QWidget.Finalize () [0x00000] in /build/buildd/qt-mono-bindings-4.2.1/csharp/qyoto/gui/QWidget.cs:939 at (wrapper runtime-invoke) System.Object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: /usr/bin/mono [0x806d954] [0xb80b4410] /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7e3e268] /lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee) [0xb7e3572e] /usr/lib/libX11.so.6 [0xb5cad424] /usr/lib/libX11.so.6(_XSend+0x63) [0xb5cae843] /usr/lib/libX11.so.6(_XFlush+0x32) [0xb5caea02] /usr/lib/libX11.so.6(XFlush+0x31) [0xb5c85f61] /usr/lib/libQtGui.so.4(_ZN14QWidgetPrivate8hide_sysEv+0x6e) [0xb640d1ce] /usr/lib/libQtGui.so.4(_ZN14QWidgetPrivate11hide_helperEv+0x63) [0xb63d5d43] /usr/lib/libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x430) [0xb63df0a0] /usr/lib/libQtGui.so.4(_ZN7QWidgetD2Ev+0x36d) [0xb63dcb3d] /usr/lib/libsmokeqt.so.2 [0xb70643f8] /usr/lib/libsmokeqt.so.2 [0xb7049d3a] /usr/lib/libqyotoshared.so.1(_ZN5Qyoto10MethodCall10callMethodEv+0x17b) [0xb715505b] /usr/lib/libqyotoshared.so.1(_ZN5Qyoto10MethodCall4nextEv+0x74) [0xb7155474] /usr/lib/cli/kdebindings-4.4/libqyoto.so(CallSmokeMethod+0x81) [0xb71a8261] [0xb71999f5] [0xb7a384c1] [0xb5aebb76] [0xb7a35921] /usr/bin/mono [0x80e69e9] /usr/bin/mono [0x8172061] /usr/bin/mono [0x80e6bdc] /usr/bin/mono [0x8118679] /usr/bin/mono [0x81564f6] /usr/bin/mono [0x816f5d5] /lib/tls/i686/cmov/libpthread.so.0 [0xb7f9b50f] /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb7ef2a0e] Debug info from gdb: (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 0xb7de56d0 (LWP 32435)] [New Thread 0xb7635b90 (LWP 32439)] [New Thread 0xb7a2bb90 (LWP 32438)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found)Is this a bug in the Mono or is it (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0xb80b4430 in __kernel_vsyscall () 3 Thread 0xb7a2bb90 (LWP 32438) 0xb80b4430 in __kernel_vsyscall () 2 Thread 0xb7635b90 (LWP 32439) 0xb80b4430 in __kernel_vsyscall () 1 Thread 0xb7de56d0 (LWP 32435) 0xb80b4430 in __kernel_vsyscall () Thread 3 (Thread 0xb7a2bb90 (LWP 32438)): #0 0xb80b4430 in __kernel_vsyscall () #1 0xb7fa2906 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0814fc48 in ?? () #3 0xb7f9b50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #4 0xb7ef2a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread 0xb7635b90 (LWP 32439)): #0 0xb80b4430 in __kernel_vsyscall () #1 0xb7fa210b in read () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0806da6e in ?? () #3 #4 0xb80b4430 in __kernel_vsyscall () #5 0xb7e3c8a0 in raise () from /lib/tls/i686/cmov/libc.so.6 #6 0xb7e3e268 in abort () from /lib/tls/i686/cmov/libc.so.6 #7 0xb7e3572e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6 #8 0xb5cad424 in _XGetXCBBuffer () from /usr/lib/libX11.so.6 #9 0xb5cae843 in _XSend () from /usr/lib/libX11.so.6 #10 0xb5caea02 in _XFlush () from /usr/lib/libX11.so.6 #11 0xb5c85f61 in XFlush () from /usr/lib/libX11.so.6 #12 0xb640d1ce in QWidgetPrivate::hide_sys () from /usr/lib/libQtGui.so.4 #13 0xb63d5d43 in QWidgetPrivate::hide_helper () from /usr/lib/libQtGui.so.4 #14 0xb63df0a0 in QWidget::setVisible () from /usr/lib/libQtGui.so.4 #15 0xb63dcb3d in QWidget::~QWidget () from /usr/lib/libQtGui.so.4 #16 0xb70643f8 in ?? () from /usr/lib/libsmokeqt.so.2 #17 0xb7049d3a in ?? () from /usr/lib/libsmokeqt.so.2 #18 0xb715505b in Qyoto::MethodCall::callMethod () from /usr/lib/libqyotoshared.so.1 #19 0xb7155474 in Qyoto::MethodCall::next () from /usr/lib/libqyotoshared.so.1 #20 0xb71a8261 in CallSmokeMethod () from /usr/lib/cli/kdebindings-4.4/libqyoto.so #21 0xb71999f5 in ?? () #22 0xb7a384c1 in ?? () #23 0xb5aebb76 in ?? () #24 0xb7a35921 in ?? () #25 0x080e69e9 in ?? () #26 0x08172061 in ?? () #27 0x080e6bdc in ?? () #28 0x08118679 in ?? () #29 0x081564f6 in ?? () #30 0x0816f5d5 in ?? () #31 0xb7f9b50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #32 0xb7ef2a0e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread 0xb7de56d0 (LWP 32435)): #0 0xb80b4430 in __kernel_vsyscall () #1 0xb7f9f075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb5b7bc87 in ?? () from /usr/lib/libxcb.so.1 #3 0xb5b7cb9f in xcb_send_request () from /usr/lib/libxcb.so.1 #4 0xb5cad166 in _XPutXCBBuffer () from /usr/lib/libX11.so.6 #5 0xb5cad530 in ?? () from /usr/lib/libX11.so.6 #6 0xb5c9f277 in XSetClipRectangles () from /usr/lib/libX11.so.6 #7 0xb653aeb3 in ?? () from /usr/lib/libQtGui.so.4 #8 0xb653bb14 in ?? () from /usr/lib/libQtGui.so.4 #9 0xb648c83b in ?? () from /usr/lib/libQtGui.so.4 #10 0xb648c90b in ?? () from /usr/lib/libQtGui.so.4 #11 0xb648d858 in ?? () from /usr/lib/libQtGui.so.4 #12 0xb648dc9e in ?? () from /usr/lib/libQtGui.so.4 #13 0xb6490515 in QPainter::QPainter () from /usr/lib/libQtGui.so.4 #14 0xb5aad6ff in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so #15 0xb6c9204a in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4 #16 0xb63838ca in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #17 0xb638b7fa in QApplication::notify () from /usr/lib/libQtGui.so.4 #18 0xb6ed3dab in ?? () from /usr/lib/libsmokeqt.so.2 #19 0xb6c92e61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #20 0xb63e43de in ?? () from /usr/lib/libQtGui.so.4 #21 0xb63da110 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #22 0xb63da8b2 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4 #23 0xb63d9d88 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4 #24 0xb6549fae in ?? () from /usr/lib/libQtGui.so.4 #25 0xb654a4a7 in ?? () from /usr/lib/libQtGui.so.4 #26 0xb63db576 in QWidget::event () from /usr/lib/libQtGui.so.4 #27 0xb706429c in ?? () from /usr/lib/libsmokeqt.so.2 #28 0xb63838ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #29 0xb638b7fa in QApplication::notify () from /usr/lib/libQtGui.so.4 #30 0xb6ed3dab in ?? () from /usr/lib/libsmokeqt.so.2 #31 0xb6c92e61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #32 0xb6c93ae5 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4 #33 0xb6c93cdd in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4 #34 0xb6cbd82f in ?? () from /usr/lib/libQtCore.so.4 #35 0xb7ff5718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #36 0xb7ff8dc3 in ?? () from /usr/lib/libglib-2.0.so.0 #37 0xb7ff8f81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #38 0xb6cbd478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #39 0xb641dea5 in ?? () from /usr/lib/libQtGui.so.4 #40 0xb6c9152a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #41 0xb6c916ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #42 0xb6c93da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #43 0xb6383767 in QApplication::exec () from /usr/lib/libQtGui.so.4 #44 0xb6ecdafa in ?? () from /usr/lib/libsmokeqt.so.2 #45 0xb715505b in Qyoto::MethodCall::callMethod () from /usr/lib/libqyotoshared.so.1 #46 0xb7155474 in Qyoto::MethodCall::next () from /usr/lib/libqyotoshared.so.1 #47 0xb71a8261 in CallSmokeMethod () from /usr/lib/cli/kdebindings-4.4/libqyoto.so #48 0xb71999f5 in ?? () #49 0xb7a38432 in ?? () #50 0xb5ae9d47 in ?? () #51 0xb7a2c27a in ?? () #52 0xb7a2c1b3 in ?? () #53 0x080d3695 in mono_runtime_exec_main () #54 0x080d3e0b in mono_runtime_run_main () #55 0x0805c927 in mono_main () #56 0x0805ac62 in ?? () #57 0xb7e27685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #58 0x0805aba1 in ?? () #0 0xb80b4430 in __kernel_vsyscall () ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= The application was terminated by a signal: SIGABRT /////////////////////////////////////////////////////////////////////// It could be my runtime bug but I dont see any reason it should crash except if it has problem with the mono/qyoto library. If anythings needed on my part, let me know. I ahave crossposted because i am not too sure whether its mono/qyoto bug. Thanks! -- Cheers, Ishwor Gurung -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2623 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090405/e3561f52/attachment-0001.bin From ishwor at loopback.ath.cx Sun Apr 5 10:17:19 2009 From: ishwor at loopback.ath.cx (Ishwor Gurung) Date: Sun, 05 Apr 2009 23:47:19 +0930 Subject: [Mono-list] [Kde-bindings] Mono/Kde-binding(qyoto) bug? In-Reply-To: <49D8AC75.7020102@loopback.ath.cx> References: <49D8AC75.7020102@loopback.ath.cx> Message-ID: <49D8BD6F.60509@loopback.ath.cx> Ishwor Gurung wrote: > Hi, > > My setting: > - Qyoto version 4.4.0 > - Mono C# version 2.0.1.0 > > My qyoto widget has a small QTextEdit box to type messages in (which is > invoked when a user presses a button). They are all good and OK (the > user interface bits). [....] > The application was terminated by a signal: SIGABRT > /////////////////////////////////////////////////////////////////////// > > > Different bug again while running the same application - ^^^ Without change in source/compilation flags. Thought it was worth mentioning. Any help is appreciated. Thanks. -- Cheers, Ishwor Gurung -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2623 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090405/6b25873c/attachment.bin From xyznyc at rocketmail.com Sun Apr 5 13:14:12 2009 From: xyznyc at rocketmail.com (xyznyc) Date: Sun, 5 Apr 2009 10:14:12 -0700 (PDT) Subject: [Mono-list] Deploy mono website on Debian - mono-develop required? Message-ID: <22896154.post@talk.nabble.com> I plan to deploy an asp.net website on mono on Debian. I am uncertain whether I need to install the mono-2.0-devel packages, or just the mono runtime packages. I plan to deploy asp.net source code files, not binaries. (Unless I can get mono 2.4 installed, which is a separate question. With 2.4, I would deploy a pre-compiled version of my website.) My two main questions at this point: 1) Do I need to install mono-2.0-devel if I just plan to run the website on this server? 2) If I don't need to install mono-2.0-devel, specifically what mono package(s) do I need to install. Then, as a tangent: 3) The hosting company I am planning to use only offers Debian Etch (not Lenny). I've read on the "Binaries for other platforms (unsupported)" on this website how to use backports.org to install mono 1.9.1 on Etch. Is there a way, short of compiling from source code, to get mono 2.4 on Etch (again, not for development - just for deploying a website)? -- View this message in context: http://www.nabble.com/Deploy-mono-website-on-Debian---mono-develop-required--tp22896154p22896154.html Sent from the Mono - General mailing list archive at Nabble.com. From patrik at shiftcontrol.dk Sun Apr 5 16:39:30 2009 From: patrik at shiftcontrol.dk (metervara) Date: Sun, 5 Apr 2009 13:39:30 -0700 (PDT) Subject: [Mono-list] mono-core problem In-Reply-To: <45534AEA.8000002@amis.net> References: <45534AEA.8000002@amis.net> Message-ID: <22898412.post@talk.nabble.com> Mario Munda wrote: > > "WARNING **: _wapi_sendto: Need to > translate 64 [Host is down] into winsock error". > We have the same problem in a Unity project (I think that Unity is using mono 1.2.5): ** (process:186): WARNING **: _wapi_connect: Need to translate 64 [Host is down] into winsock error Get this a lot, is there a sollution or workaround? Is it a mono-version 1.2.5 issue? /Patrik -- View this message in context: http://www.nabble.com/mono-core-problem-tp7260646p22898412.html Sent from the Mono - General mailing list archive at Nabble.com. From colin_a_jones at hotmail.com Sun Apr 5 16:56:26 2009 From: colin_a_jones at hotmail.com (colinjones) Date: Sun, 5 Apr 2009 13:56:26 -0700 (PDT) Subject: [Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share In-Reply-To: References: <22836300.post@talk.nabble.com> <22890797.post@talk.nabble.com> Message-ID: <22898573.post@talk.nabble.com> Then what you are saying is that this class is not a correct implementation of the .NET class. This is a COM event registration which uses COM communications, nothing whatsoever to do with CIFS/SMB/SAMBA. The UNC is just to tell the class where to connect the COM object to. Unfortunately, mounting the share locally will not work either, as the class will then just attempt to use inotify to monitor it which will not work. The only way around it would be to use the managed/polling option which would defeat the purpose as we are trying to get a "push" notification. thx anyway! Robert Jordan wrote: > > colinjones wrote: >> I don't think there is any point trying to mount the remote share, or >> anything like that because the FileSystemWatcher class needs to parse the >> UNC path to get the remote machine name so that it can connect to the >> same >> functionality on the remote machine using COM communications. > > Linux does not support UNC paths, nor Mono does. And CIFS does not > need COM :). > > You have to mount the Windows share with OS' machinery (smbmount). > Then you can use the share like a local path. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/FileSystemWatcher-on-Linux-to-monitor-a-remote-NTFS-share-tp22836300p22898573.html Sent from the Mono - General mailing list archive at Nabble.com. From shana.ufie at gmail.com Sun Apr 5 18:02:03 2009 From: shana.ufie at gmail.com (Andreia Gaita) Date: Sun, 5 Apr 2009 23:02:03 +0100 Subject: [Mono-list] Attention all SoC students Message-ID: <3ec1038d0904051502i4ee942faw79ff73872d9db10b@mail.gmail.com> To whom it may concern, If you haven't yet, please make sure you are subscribed for updates to your proposals, so you're notified when comments are added to them. andreia gaita From daniel.soto2k at gmail.com Sun Apr 5 23:29:40 2009 From: daniel.soto2k at gmail.com (Daniel Soto) Date: Sun, 05 Apr 2009 23:29:40 -0400 Subject: [Mono-list] mono in a marvell plug server Message-ID: <1238988580.25361.20.camel@daniel-laptop> Hi, everyone. I imagine that most of you have read about this http://linuxdevices.com/news/NS9634061300.html Summarizing, it's a very small Linux server. With a size of a simple cell phone charger, it have an ARM CPU at 1.2 Ghz, 512 Mb RAM and 512 Mb of flash disk, USB ports, ethernet port, a Linux distribution (I don't know which distribution) with kernel 2.6, and other features. My question is... could be possible installing Mono 2.4 on this device? It would be fantastic if it is possible running asp.net applications on it. Regards. From atsushieno at veritas-vos-liberabit.com Mon Apr 6 05:00:03 2009 From: atsushieno at veritas-vos-liberabit.com (Atsushi Eno) Date: Mon, 06 Apr 2009 18:00:03 +0900 Subject: [Mono-list] Mono Support for MIDI and Jack Connection Kit in Linux Systems--Is There? In-Reply-To: <6e7673c00904040225u72123a43ofee4a7aaf8981b79@mail.gmail.com> References: <6e7673c00904040225u72123a43ofee4a7aaf8981b79@mail.gmail.com> Message-ID: <49D9C493.5000901@veritas-vos-liberabit.com> You can try my portmidi C# binding. I have put it on github now. http://github.com/atsushieno/portmidi-sharp/tree/master Though I haven't tried this toy on linux yet (I wrote it when I was playing with portmidi on cygwin). Atsushi Eno Sean Beeson wrote: > Hi lists, > > I am sending this to both Monodevelop-list and Mono-list because I > have not been able to get a reply from Mono-list and I am hoping that > If I ask in more general term one of the list might help on this. > > I am hoping to work with MIDI and the Jack Connection Kit with Mono, > however after searching the class library and the Internet I am not > finding anything on it or if it is at all possible other than > marshaling the Linux parts and going on my own this way. In windows > you have to use Interop with wmm.dll. > > If anyone can tell me if there is something or if I am searching for > something that is not there and will not be there anytime soon, it > would be much appropriated. > > Thank you and kind regards, > > --Sean Beeson (the one in Japan) > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > From zarevucky.jiri at gmail.com Mon Apr 6 09:05:45 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Mon, 6 Apr 2009 15:05:45 +0200 Subject: [Mono-list] mono in a marvell plug server In-Reply-To: <1238988580.25361.20.camel@daniel-laptop> References: <1238988580.25361.20.camel@daniel-laptop> Message-ID: > > Summarizing, it's a very small Linux server. With a size of a simple > cell phone charger, it have an ARM CPU at 1.2 Ghz, 512 Mb RAM and 512 Mb > of flash disk, USB ports, ethernet port, a Linux distribution (I don't > know which distribution) with kernel 2.6, and other features. > > My question is... could be possible installing Mono 2.4 ?on this device? > It would be fantastic if it is possible running asp.net applications on > it. > Hello, there is some info on installing Mono on ARM devices... http://www.mono-project.com/Mono:ARM I have no idea how up-to-date it is, though. From kumpera at gmail.com Mon Apr 6 09:19:35 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Mon, 6 Apr 2009 10:19:35 -0300 Subject: [Mono-list] Q: MONO on Linux - MONO_THREADS_PER_CPU In-Reply-To: <22892502.post@talk.nabble.com> References: <22892502.post@talk.nabble.com> Message-ID: <8cca42d80904060619r75e0fde4rcc06b5a585f95c62@mail.gmail.com> Hi Ralf, MONO_THREADS_PER_CPU remains supported and the current default value is 10. The way to tune it is to make sure that you increase it to the point that it doesn't cause thrashing. Yeah, not helpful, but this is a very per workload setting. Anyway, if you're seen scalability issues with opensim under mono 2.4, please run it under the logging profiler and send us the results so we can see if anything can be improved. On Sun, Apr 5, 2009 at 8:34 AM, Ralf Haifisch wrote: > > Dear all, > > i would need some clarification on MONO on Linux - MONO_THREADS_PER_CPU . > > I am involved with http://opensimulator.org , and we have a regularly > reorcuring discussion about the MONO_THREADS_PER_CPU . > > I did read http://www.mono-project.com/ThreadPool_DeadLocks and it reads, > like this is an very old issue. > > since 3D world can have a big span of resource usage (count of prim, > textures, scripts, avatars in a instance) and opensim itself is in steady > development, it is sometimes not easy to track down the limiting issues for > scaling. > > the opensim user use MONO 1.2 , 2.0.1 (mostly, i would say), 2.2 and 2.4. > It is sugeestet to use 2.x . > > We see a little bit more stable operations and higher capacity on .Net 3.x > . > > --> is MONO_THREADS_PER_CPU still an issue in 2.0.1 /2.2 / 2.4 ? > --> is this likely to be fixed in a next version ? > --> is there any guidance to calculate the actual numer to set, based on > hardware and target capacity ? > > > any help and further information may be helpfull, as opensim attracts more > and more user - so higher loads get?s more likely. Many user are close to > opensource and prefer Linux. > > So - information from MONO archcitects and dev?s maybe helpfull, as well as > from linux admins who have expirience with that topic. > > > cheers, > Ralf > > ----- > --- > opensouce 3D magazine - http://www.maxping.org > > german opensim howto - > http://www.ralf-haifisch.biz/Opensim%20HowTo.shtml > > Linked in - http://www.linkedin.com/in/ralfhuelsmann > > osgrid location - Sharkland Tropical 1 > -- > View this message in context: > http://www.nabble.com/Q%3A--MONO-on-Linux----MONO_THREADS_PER_CPU-tp22892502p22892502.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090406/27291dc8/attachment-0001.html From joe_audette at yahoo.com Mon Apr 6 13:28:42 2009 From: joe_audette at yahoo.com (Joe Audette) Date: Mon, 6 Apr 2009 13:28:42 -0400 Subject: [Mono-list] TimeZoneInfo.FromSerializedString Message-ID: <27d75530904061028v68753176of196d7d27c2666db@mail.gmail.com> Hi All, Could anyone advise on when/if this method might be implemented? TimeZoneInfo.FromSerializedString(string source) http://msdn.microsoft.com/en-us/library/system.timezoneinfo.fromserializedstring.aspx I would like to use this to implement better support for TimeZones in mojoPortal, it will allow automatically adjusting time offsets according to changes during Daylight savings. I serialized all the installed TimeZones on my machine and made them into constants like this: public const string EasternStandardTime = "Eastern Standard Time;-300;(GMT-05:00) Eastern Time (US & Canada);Eastern Standard Time;Eastern Daylight Time;[01:01:0001;12:31:2006;60;[0;02:00:00;4;1;0;];[0;02:00:00;10;5;0;];][01:01:2007;12:31:9999;60;[0;02:00:00;3;2;0;];[0;02:00:00;11;1;0;];];"; and I'm building a list of them like this: List timeZones = new List(); timeZones.Add(TimeZoneInfo.FromSerializedString(AfghanistanStandardTime)); timeZones.Add(TimeZoneInfo.FromSerializedString(AlaskanStandardTime)); ... It works nice on Windows but on Mono it throws NotImplementedException. Any advice or information much appreciated. Thanks, Joe -- Joe Audette Software Solutions Architect Source Tree Solutions, LLC PO Box 621861 Charlotte, NC 28262 704.323.8225 joe.audette at gmail.com http://www.sourcetreesolutions.com http://www.mojoportal.com From jeffry.molanus at gmail.com Mon Apr 6 13:56:40 2009 From: jeffry.molanus at gmail.com (Jeffry) Date: Mon, 6 Apr 2009 10:56:40 -0700 (PDT) Subject: [Mono-list] ironpython with mono.fuse In-Reply-To: <1238894258.12261.14.camel@lina> References: <22877224.post@talk.nabble.com> <1238894258.12261.14.camel@lina> Message-ID: <22913981.post@talk.nabble.com> I have compiled the sources etc. Later on I figured out that I needed to do this: import clr import sys path.os.import( path here) from System.Reflection import Assembly clr.AddReference( Assembly.LoadFrom('/usr/local/lib/mono-fuse') Thats all I did though. I figured I might as well use the python bindings directly. regards, jeffry -- View this message in context: http://www.nabble.com/ironpython-with-mono.fuse-tp22877224p22913981.html Sent from the Mono - General mailing list archive at Nabble.com. From donbonifacio at gmail.com Mon Apr 6 16:22:55 2009 From: donbonifacio at gmail.com (Pedro Santos) Date: Mon, 6 Apr 2009 21:22:55 +0100 Subject: [Mono-list] Error compiling mono 2.4 on amd64 Message-ID: Hello, I'm trying to build mono 2.4 on slicehost(amd64) by following these rules: http://www.bscheiman.org/2009/03/18/compiling-mono-22-on-slicehost/ I'm able to build/run mono 2.2, but mono 2.4 fails with the error at the end of the e-mail. I created a fresh slice (vps), installed all the dependencies and called ./configure with: ./configure --prefix=/usr/local/mono-2.4 --with-large-heap=yes --with-xen_opt=yes Then I got: ... Assembly mscorlib.dll signed. AOT [net_1_1] mscorlib.dll make[8]: *** [../../class/lib/net_1_1/mscorlib.dll] Error 134 make[8]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs/class/corlib' make[7]: *** [do-all] Error 2 make[7]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs/class/corlib' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs/class' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs' make[4]: *** [profile-do--net_1_1--all] Error 2 make[4]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/mcs' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/opt/mono/mono-2.4/mono-2.4/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/mono/mono-2.4/mono-2.4' make: *** [all] Error 2 Any ideas? -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu From g_muppet at hotmail.com Sat Apr 4 23:30:07 2009 From: g_muppet at hotmail.com (tr00don) Date: Sat, 4 Apr 2009 20:30:07 -0700 (PDT) Subject: [Mono-list] Does AOT work on Windows? In-Reply-To: References: <21457111.post@talk.nabble.com> Message-ID: <1238902207591-2587450.post@n2.nabble.com> You need to install mingw and add the mingw bin folder to your system path, then you can aot with mono. But the fact remains that you cannot create a statically linked native binary using mono on Windows; you still need the original assembly (CIL) to run your program. -- View this message in context: http://n2.nabble.com/Does-AOT-work-on-Windows--tp2168953p2587450.html Sent from the Mono - General mailing list archive at Nabble.com. From thkerkmann at t-online.de Mon Apr 6 14:32:41 2009 From: thkerkmann at t-online.de (thkerkmann) Date: Mon, 6 Apr 2009 11:32:41 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages Message-ID: <22914109.post@talk.nabble.com> Hi all, I just tried to make mono-2.4 from the sources. Before I installed libgdiplus successfully. Can anybody give me some hints - I'm not a linux geek. I'm running on fedora 2.6.26.8-57.fc8 #1 SMP Thu Dec 18 18:59:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux configure output seems to be ok: ... config.status: executing default commands mcs source: $(top_srcdir)/mcs olive source: GC: included TLS: __thread SIGALTSTACK: yes Engine: Building and using the JIT 2.0 Beta: yes 2.1 Alpha: yes JNI support: IKVM Native libgdiplus: assumed to be installed zlib: system zlib oprofile: no BigArrays: no DTrace: no but a lot of errors occur when make-ing. .... marshal.c:12352: Warnung: kein vorheriger Prototyp f?r ?mono_marshal_free_ccw? marshal.c:12406: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_get_managed_wrapper_adjusted? marshal.c:12406: Warnung: kein vorheriger Prototyp f?r ?cominterop_get_managed_wrapper_adjusted? marshal.c:12530: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_mono_string_to_guid? marshal.c:12530: Warnung: kein vorheriger Prototyp f?r ?cominterop_mono_string_to_guid? marshal.c:12541: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_class_guid_equal? marshal.c:12541: Warnung: kein vorheriger Prototyp f?r ?cominterop_class_guid_equal? marshal.c:12550: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_addref? marshal.c:12550: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_addref? marshal.c:12569: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_release? marshal.c:12569: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_release? marshal.c:12621: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_queryinterface? marshal.c:12621: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_queryinterface? marshal.c:12688: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_get_type_info_count? marshal.c:12688: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_get_type_info_count? marshal.c:12694: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_get_type_info? marshal.c:12694: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_get_type_info? marshal.c:12702: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_get_ids_of_names? marshal.c:12702: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_get_ids_of_names? marshal.c:12712: Fehler: ung?ltige Speicherklasse f?r Funktion ?cominterop_ccw_invoke? marshal.c:12712: Warnung: kein vorheriger Prototyp f?r ?cominterop_ccw_invoke? marshal.c:12728: Warnung: kein vorheriger Prototyp f?r ?mono_marshal_find_nonzero_bit_offset? marshal.c:12749: Warnung: kein vorheriger Prototyp f?r ?mono_marshal_get_thunk_invoke_wrapper? marshal.c:12899: Warnung: kein vorheriger Prototyp f?r ?mono_marshal_free_dynamic_wrappers? marshal.c:12910: Fehler: expected declaration or statement at end of input make[3]: *** [marshal.lo] Fehler 1 make[3]: Leaving directory `/home/exchange/Mono/mono-2.4/mono/metadata' make[2]: *** [all-recursive] Fehler 1 make[2]: Leaving directory `/home/exchange/Mono/mono-2.4/mono' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/exchange/Mono/mono-2.4' make: *** [all] Fehler 2 -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22914109.html Sent from the Mono - General mailing list archive at Nabble.com. From zarevucky.jiri at gmail.com Mon Apr 6 17:57:49 2009 From: zarevucky.jiri at gmail.com (=?UTF-8?Q?Ji=C5=99=C3=AD_Z=C3=A1rev=C3=BAcky?=) Date: Mon, 6 Apr 2009 14:57:49 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22914109.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> Message-ID: <22918279.post@talk.nabble.com> I believe there are many people, who speak german, but I believe many people here don't belong to that group. Please send english outputs on international forums. :) You can do that by forcing default locale. Prepend the command with "LANG=C", for example: "LANG=C make". Thanks :) -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22918279.html Sent from the Mono - General mailing list archive at Nabble.com. From miguel at novell.com Mon Apr 6 18:23:13 2009 From: miguel at novell.com (Miguel de Icaza) Date: Mon, 06 Apr 2009 18:23:13 -0400 Subject: [Mono-list] Telerik announces ASP.NET RadControls support for Mono 2.4 Message-ID: <1239056593.4381.140.camel@erandi.site> Hello folks, I wanted to share with everyone on the lists a very important announcement from Telerik, the creators of RadControls for ASP.NET. As of today Telerik is making RadControls for ASP.NET available and supported for Linux users using Mono 2.4 on their systems. Third-party controls is one of the most requested features that we hear from our community and Telerik is the first major vendor to offer their tools for Mono users. You do need Mono 2.4 as it contains many bug fixes and new APIs that Telerik consumes that are required to run RadControls with Mono. Telerik's announcement is here: http://www.telerik.com/company/press-center/company-news/telerik-announces-support-for-mono.aspx My blog on the subject is here: http://bit.ly/1RRK2x And some live demos are here: http://mono.telerik.com Miguel, From niniendowarrior at gmail.com Mon Apr 6 19:00:24 2009 From: niniendowarrior at gmail.com (anton123) Date: Mon, 6 Apr 2009 16:00:24 -0700 (PDT) Subject: [Mono-list] Question on Code Generation Message-ID: <22919191.post@talk.nabble.com> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or if Mono does support CodeSmith). I'm hoping it might since I'm anticipating a lot of code-generation heavy work. Can anyone shed some light? Thank you so much! -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html Sent from the Mono - General mailing list archive at Nabble.com. From niniendowarrior at gmail.com Mon Apr 6 19:33:05 2009 From: niniendowarrior at gmail.com (anton123) Date: Mon, 6 Apr 2009 16:33:05 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22914109.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> Message-ID: <22919533.post@talk.nabble.com> Not sure but I think maybe you're missing something on your C compiler? thkerkmann wrote: > > Hi all, > > I just tried to make mono-2.4 from the sources. Before I installed > libgdiplus successfully. > > Can anybody give me some hints - I'm not a linux geek. > > I'm running on fedora 2.6.26.8-57.fc8 #1 SMP Thu Dec 18 18:59:49 EST 2008 > x86_64 x86_64 x86_64 GNU/Linux > > configure output seems to be ok: > ... > config.status: executing default commands > > mcs source: $(top_srcdir)/mcs > olive source: > > GC: included > TLS: __thread > SIGALTSTACK: yes > Engine: Building and using the JIT > 2.0 Beta: yes > 2.1 Alpha: yes > JNI support: IKVM Native > libgdiplus: assumed to be installed > zlib: system zlib > oprofile: no > BigArrays: no > DTrace: no > > but a lot of errors occur when make-ing. > .... > marshal.c:12352: Warnung: kein vorheriger Prototyp f?r > ?mono_marshal_free_ccw? > marshal.c:12406: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_get_managed_wrapper_adjusted? > marshal.c:12406: Warnung: kein vorheriger Prototyp f?r > ?cominterop_get_managed_wrapper_adjusted? > marshal.c:12530: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_mono_string_to_guid? > marshal.c:12530: Warnung: kein vorheriger Prototyp f?r > ?cominterop_mono_string_to_guid? > marshal.c:12541: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_class_guid_equal? > marshal.c:12541: Warnung: kein vorheriger Prototyp f?r > ?cominterop_class_guid_equal? > marshal.c:12550: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_addref? > marshal.c:12550: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_addref? > marshal.c:12569: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_release? > marshal.c:12569: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_release? > marshal.c:12621: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_queryinterface? > marshal.c:12621: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_queryinterface? > marshal.c:12688: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_get_type_info_count? > marshal.c:12688: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_get_type_info_count? > marshal.c:12694: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_get_type_info? > marshal.c:12694: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_get_type_info? > marshal.c:12702: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_get_ids_of_names? > marshal.c:12702: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_get_ids_of_names? > marshal.c:12712: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_ccw_invoke? > marshal.c:12712: Warnung: kein vorheriger Prototyp f?r > ?cominterop_ccw_invoke? > marshal.c:12728: Warnung: kein vorheriger Prototyp f?r > ?mono_marshal_find_nonzero_bit_offset? > marshal.c:12749: Warnung: kein vorheriger Prototyp f?r > ?mono_marshal_get_thunk_invoke_wrapper? > marshal.c:12899: Warnung: kein vorheriger Prototyp f?r > ?mono_marshal_free_dynamic_wrappers? > marshal.c:12910: Fehler: expected declaration or statement at end of input > make[3]: *** [marshal.lo] Fehler 1 > make[3]: Leaving directory `/home/exchange/Mono/mono-2.4/mono/metadata' > make[2]: *** [all-recursive] Fehler 1 > make[2]: Leaving directory `/home/exchange/Mono/mono-2.4/mono' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory `/home/exchange/Mono/mono-2.4' > make: *** [all] Fehler 2 > > -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22919533.html Sent from the Mono - General mailing list archive at Nabble.com. From monotrober at gmail.com Mon Apr 6 20:15:31 2009 From: monotrober at gmail.com (Mono Trober) Date: Mon, 6 Apr 2009 19:15:31 -0500 Subject: [Mono-list] Question on Code Generation References: <22919191.post@talk.nabble.com> Message-ID: <6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> > Can anyone shed some light? there's not that much to CodeSmith, why bother vs. building a quick parser/template/generator? you're better off getting a simple grammar(s) together with an easy-to-use parser, and just fill in the templates yourself you'll own the generators when done, and they don't take up that much extra effort vs. what they save > I'm anticipating a lot of code-generation heavy work. shed some light on what you're trying to build. Anything that's ORM, service framework (aspx, asmx, WCF, etc.), and even UI parts should be auto-gen'd :-) ----- Original Message ----- From: "anton123" To: Sent: Monday, April 06, 2009 6:00 PM Subject: [Mono-list] Question on Code Generation > > I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or if > Mono does support CodeSmith). I'm hoping it might since I'm anticipating > a > lot of code-generation heavy work. Can anyone shed some light? > > Thank you so much! > -- > View this message in context: > http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From niniendowarrior at gmail.com Mon Apr 6 20:24:35 2009 From: niniendowarrior at gmail.com (anton123) Date: Mon, 6 Apr 2009 17:24:35 -0700 (PDT) Subject: [Mono-list] Question on Code Generation In-Reply-To: <6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> References: <22919191.post@talk.nabble.com> <6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> Message-ID: <22920025.post@talk.nabble.com> Well, sounds like I'll have to roll up some sleeves and start hacking. :-) Actually, that's what one of the other teams is using (of which I have very little information other than the tools they use, e.g. Visual Studio and CodeSmith). Me and my co-workers are expecting that we may have to adopt that to dive right in and work with their code. As of now, the word is that CodeSmith will be able to cut down the clutter on many things. I presume if I see what CodeSmith actually generates, it may be relatively straightforward to produce a template generator. If anyone has ideas and opinions, I'll really appreciate it because it's still some time away from when I'll be doing some heavy .Net work and would be nice to be prepared. Thanks! Trober wrote: > >> Can anyone shed some light? > there's not that much to CodeSmith, why bother vs. building a quick > parser/template/generator? > you're better off getting a simple grammar(s) together with an easy-to-use > parser, and just fill in the templates yourself > you'll own the generators when done, and they don't take up that much > extra > effort vs. what they save > >> I'm anticipating a lot of code-generation heavy work. > shed some light on what you're trying to build. > Anything that's ORM, service framework (aspx, asmx, WCF, etc.), and even > UI > parts should be auto-gen'd :-) > > > > ----- Original Message ----- > From: "anton123" > To: > Sent: Monday, April 06, 2009 6:00 PM > Subject: [Mono-list] Question on Code Generation > > >> >> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >> if >> Mono does support CodeSmith). I'm hoping it might since I'm anticipating >> a >> lot of code-generation heavy work. Can anyone shed some light? >> >> Thank you so much! >> -- >> View this message in context: >> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22920025.html Sent from the Mono - General mailing list archive at Nabble.com. From pedro.alvesjr at gmail.com Mon Apr 6 20:36:42 2009 From: pedro.alvesjr at gmail.com (Pedro Alves) Date: Mon, 6 Apr 2009 21:36:42 -0300 Subject: [Mono-list] Telerik announces ASP.NET RadControls support for Mono 2.4 In-Reply-To: <1239056593.4381.140.camel@erandi.site> References: <1239056593.4381.140.camel@erandi.site> Message-ID: Excellent!!! A long time waiting for that! The compatible version of RadControls for ASP.NET AJAX is now available for download? []s Pedro. 2009/4/6 Miguel de Icaza > Hello folks, > > I wanted to share with everyone on the lists a very important > announcement from Telerik, the creators of RadControls for ASP.NET. > > As of today Telerik is making RadControls for ASP.NET available and > supported for Linux users using Mono 2.4 on their systems. Third-party > controls is one of the most requested features that we hear from our > community and Telerik is the first major vendor to offer their tools for > Mono users. > > You do need Mono 2.4 as it contains many bug fixes and new APIs that > Telerik consumes that are required to run RadControls with Mono. > > Telerik's announcement is here: > > > http://www.telerik.com/company/press-center/company-news/telerik-announces-support-for-mono.aspx > > My blog on the subject is here: > > http://bit.ly/1RRK2x > > And some live demos are here: > > http://mono.telerik.com > > Miguel, > > _______________________________________________ > 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/20090406/0b861c24/attachment.html From niniendowarrior at gmail.com Mon Apr 6 20:42:20 2009 From: niniendowarrior at gmail.com (anton123) Date: Mon, 6 Apr 2009 17:42:20 -0700 (PDT) Subject: [Mono-list] Question on Code Generation In-Reply-To: <6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> References: <22919191.post@talk.nabble.com> <6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> Message-ID: <22920204.post@talk.nabble.com> Oh, and I think most of that the code generation is going to be database backend and UI stuff. :-) Trober wrote: > >> Can anyone shed some light? > there's not that much to CodeSmith, why bother vs. building a quick > parser/template/generator? > you're better off getting a simple grammar(s) together with an easy-to-use > parser, and just fill in the templates yourself > you'll own the generators when done, and they don't take up that much > extra > effort vs. what they save > >> I'm anticipating a lot of code-generation heavy work. > shed some light on what you're trying to build. > Anything that's ORM, service framework (aspx, asmx, WCF, etc.), and even > UI > parts should be auto-gen'd :-) > > > > ----- Original Message ----- > From: "anton123" > To: > Sent: Monday, April 06, 2009 6:00 PM > Subject: [Mono-list] Question on Code Generation > > >> >> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >> if >> Mono does support CodeSmith). I'm hoping it might since I'm anticipating >> a >> lot of code-generation heavy work. Can anyone shed some light? >> >> Thank you so much! >> -- >> View this message in context: >> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22920204.html Sent from the Mono - General mailing list archive at Nabble.com. From monotrober at gmail.com Mon Apr 6 22:02:43 2009 From: monotrober at gmail.com (Mono Trober) Date: Mon, 6 Apr 2009 21:02:43 -0500 Subject: [Mono-list] Question on Code Generation References: <22919191.post@talk.nabble.com><6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> <22920025.post@talk.nabble.com> Message-ID: > I see what CodeSmith actually generates, it may be relatively > straightforward to produce a template generator I did an eval and tossed it. You can duplicate enough of what it does in very little time. > cut down the clutter ??? You can clutter things with the templates you build, or not. ----- Original Message ----- From: "anton123" To: Sent: Monday, April 06, 2009 7:24 PM Subject: Re: [Mono-list] Question on Code Generation > > Well, sounds like I'll have to roll up some sleeves and start hacking. :-) > Actually, that's what one of the other teams is using (of which I have > very > little information other than the tools they use, e.g. Visual Studio and > CodeSmith). Me and my co-workers are expecting that we may have to adopt > that to dive right in and work with their code. As of now, the word is > that > CodeSmith will be able to cut down the clutter on many things. I presume > if > I see what CodeSmith actually generates, it may be relatively > straightforward to produce a template generator. > > If anyone has ideas and opinions, I'll really appreciate it because it's > still some time away from when I'll be doing some heavy .Net work and > would > be nice to be prepared. > > Thanks! > > > Trober wrote: >> >>> Can anyone shed some light? >> there's not that much to CodeSmith, why bother vs. building a quick >> parser/template/generator? >> you're better off getting a simple grammar(s) together with an >> easy-to-use >> parser, and just fill in the templates yourself >> you'll own the generators when done, and they don't take up that much >> extra >> effort vs. what they save >> >>> I'm anticipating a lot of code-generation heavy work. >> shed some light on what you're trying to build. >> Anything that's ORM, service framework (aspx, asmx, WCF, etc.), and even >> UI >> parts should be auto-gen'd :-) >> >> >> >> ----- Original Message ----- >> From: "anton123" >> To: >> Sent: Monday, April 06, 2009 6:00 PM >> Subject: [Mono-list] Question on Code Generation >> >> >>> >>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >>> if >>> Mono does support CodeSmith). I'm hoping it might since I'm >>> anticipating >>> a >>> lot of code-generation heavy work. Can anyone shed some light? >>> >>> Thank you so much! >>> -- >>> View this message in context: >>> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html >>> Sent from the Mono - General mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > > -- > View this message in context: > http://www.nabble.com/Question-on-Code-Generation-tp22919191p22920025.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From niniendowarrior at gmail.com Mon Apr 6 22:12:16 2009 From: niniendowarrior at gmail.com (anton123) Date: Mon, 6 Apr 2009 19:12:16 -0700 (PDT) Subject: [Mono-list] Question on Code Generation In-Reply-To: References: <22919191.post@talk.nabble.com> <6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> <22920025.post@talk.nabble.com> Message-ID: <22920950.post@talk.nabble.com> Interesting to hear that. Can you spare some more details? I'd be most interested to hear what you found in it. Thank you for sharing your thoughts. :-) Trober wrote: > >> I see what CodeSmith actually generates, it may be relatively >> straightforward to produce a template generator > I did an eval and tossed it. > You can duplicate enough of what it does in very little time. > >> cut down the clutter > ??? You can clutter things with the templates you build, or not. > > > > ----- Original Message ----- > From: "anton123" > To: > Sent: Monday, April 06, 2009 7:24 PM > Subject: Re: [Mono-list] Question on Code Generation > > >> >> Well, sounds like I'll have to roll up some sleeves and start hacking. >> :-) >> Actually, that's what one of the other teams is using (of which I have >> very >> little information other than the tools they use, e.g. Visual Studio and >> CodeSmith). Me and my co-workers are expecting that we may have to adopt >> that to dive right in and work with their code. As of now, the word is >> that >> CodeSmith will be able to cut down the clutter on many things. I presume >> if >> I see what CodeSmith actually generates, it may be relatively >> straightforward to produce a template generator. >> >> If anyone has ideas and opinions, I'll really appreciate it because it's >> still some time away from when I'll be doing some heavy .Net work and >> would >> be nice to be prepared. >> >> Thanks! >> >> >> Trober wrote: >>> >>>> Can anyone shed some light? >>> there's not that much to CodeSmith, why bother vs. building a quick >>> parser/template/generator? >>> you're better off getting a simple grammar(s) together with an >>> easy-to-use >>> parser, and just fill in the templates yourself >>> you'll own the generators when done, and they don't take up that much >>> extra >>> effort vs. what they save >>> >>>> I'm anticipating a lot of code-generation heavy work. >>> shed some light on what you're trying to build. >>> Anything that's ORM, service framework (aspx, asmx, WCF, etc.), and even >>> UI >>> parts should be auto-gen'd :-) >>> >>> >>> >>> ----- Original Message ----- >>> From: "anton123" >>> To: >>> Sent: Monday, April 06, 2009 6:00 PM >>> Subject: [Mono-list] Question on Code Generation >>> >>> >>>> >>>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >>>> if >>>> Mono does support CodeSmith). I'm hoping it might since I'm >>>> anticipating >>>> a >>>> lot of code-generation heavy work. Can anyone shed some light? >>>> >>>> Thank you so much! >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html >>>> Sent from the Mono - General mailing list archive at Nabble.com. >>>> >>>> _______________________________________________ >>>> Mono-list maillist - Mono-list at lists.ximian.com >>>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22920025.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22920950.html Sent from the Mono - General mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Mon Apr 6 22:28:14 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Mon, 6 Apr 2009 22:28:14 -0400 Subject: [Mono-list] Question on Code Generation In-Reply-To: <22919191.post@talk.nabble.com> References: <22919191.post@talk.nabble.com> Message-ID: On Mon, Apr 6, 2009 at 7:00 PM, anton123 wrote: > > I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or if > Mono does support CodeSmith). ?I'm hoping it might since I'm anticipating a > lot of code-generation heavy work. ?Can anyone shed some light? I don't know whether CodeSmith runs on Mono, though it must be able to generate code that will run on Mono, so if you're writing code on Windows, then it might be a good choice. If you're in Linux/Mac, or you need more flexibility to customise and ship the generator, then check out Mono's implementation of Visual Studio's T4 (Text Template Transformation Toolkit) system: http://tirania.org/blog/archive/2009/Mar-10.html -- Michael Hutchinson http://mjhutchinson.com From niniendowarrior at gmail.com Mon Apr 6 23:47:51 2009 From: niniendowarrior at gmail.com (anton123) Date: Mon, 6 Apr 2009 20:47:51 -0700 (PDT) Subject: [Mono-list] Question on Code Generation In-Reply-To: References: <22919191.post@talk.nabble.com> Message-ID: <22921684.post@talk.nabble.com> Hi Michael! Thanks for the information. As a short exercise, I tried to run the freeware version of CodeSmith (2.6) on Mono and it didn't work. At least I tried. I was also thinking that CodeSmith should generate code that Mono can use as well. I'm writing on Linux mostly and I'm trying to really make this work since I don't want to own a Windows box for this. I'm scouring for everything that I can about this. Thank you for the link on T4. I'll be sure to read up on it. Michael Hutchinson wrote: > > On Mon, Apr 6, 2009 at 7:00 PM, anton123 > wrote: >> >> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >> if >> Mono does support CodeSmith). ?I'm hoping it might since I'm anticipating >> a >> lot of code-generation heavy work. ?Can anyone shed some light? > > I don't know whether CodeSmith runs on Mono, though it must be able to > generate code that will run on Mono, so if you're writing code on > Windows, then it might be a good choice. > > If you're in Linux/Mac, or you need more flexibility to customise and > ship the generator, then check out Mono's implementation of Visual > Studio's T4 (Text Template Transformation Toolkit) system: > http://tirania.org/blog/archive/2009/Mar-10.html > > -- > Michael Hutchinson > http://mjhutchinson.com > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22921684.html Sent from the Mono - General mailing list archive at Nabble.com. From thkerkmann at t-online.de Tue Apr 7 03:29:14 2009 From: thkerkmann at t-online.de (thkerkmann) Date: Tue, 7 Apr 2009 00:29:14 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22919533.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> <22919533.post@talk.nabble.com> Message-ID: <22922686.post@talk.nabble.com> My system has all current updates anton123 wrote: > > > Not sure but I think maybe you're missing something on your C compiler? > > And what could that be ? gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Regards Thomas -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22922686.html Sent from the Mono - General mailing list archive at Nabble.com. From thkerkmann at t-online.de Tue Apr 7 03:31:10 2009 From: thkerkmann at t-online.de (thkerkmann) Date: Tue, 7 Apr 2009 00:31:10 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22918279.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> <22918279.post@talk.nabble.com> Message-ID: <22922688.post@talk.nabble.com> Ji?? Z?rev?cky wrote: > > ... > You can do that by forcing default locale. Prepend the command with > "LANG=C", for example: "LANG=C make". Thanks :) > Hey cool, I didn't know that - so here is the output again as much as I could catch: marshal.c:5309: error: invalid storage class for function 'mono_mb_emit_auto_layout_exception' marshal.c:5309: warning: no previous prototype for 'mono_mb_emit_auto_layout_exception' marshal.c:5327: warning: no previous prototype for 'mono_marshal_get_ldfld_remote_wrapper' marshal.c:5398: warning: no previous prototype for 'mono_marshal_get_ldfld_wrapper' marshal.c:5547: warning: no previous prototype for 'mono_marshal_get_ldflda_wrapper' marshal.c:5669: warning: no previous prototype for 'mono_marshal_get_stfld_remote_wrapper' marshal.c:5743: warning: no previous prototype for 'mono_marshal_get_stfld_wrapper' marshal.c:5867: warning: no previous prototype for 'mono_marshal_get_icall_wrapper' marshal.c:5953: error: invalid storage class for function 'emit_marshal_custom' marshal.c:5953: warning: no previous prototype for 'emit_marshal_custom' marshal.c:6252: error: invalid storage class for function 'emit_marshal_asany' marshal.c:6252: warning: no previous prototype for 'emit_marshal_asany' marshal.c:6298: error: invalid storage class for function 'emit_marshal_vtype' marshal.c:6298: warning: no previous prototype for 'emit_marshal_vtype' marshal.c:6521: error: invalid storage class for function 'emit_marshal_string' marshal.c:6521: warning: no previous prototype for 'emit_marshal_string' marshal.c:6658: error: invalid storage class for function 'emit_marshal_safehandle' marshal.c:6658: warning: no previous prototype for 'emit_marshal_safehandle' marshal.c:6817: error: invalid storage class for function 'emit_marshal_handleref' marshal.c:6817: warning: no previous prototype for 'emit_marshal_handleref' marshal.c:6879: error: invalid storage class for function 'emit_marshal_object' marshal.c:6879: warning: no previous prototype for 'emit_marshal_object' marshal.c:7330: error: invalid storage class for function 'emit_marshal_com_interface' marshal.c:7330: warning: no previous prototype for 'emit_marshal_com_interface' marshal.c:7647: error: invalid storage class for function 'emit_marshal_variant' marshal.c:7647: warning: no previous prototype for 'emit_marshal_variant' marshal.c:7762: error: invalid storage class for function 'emit_marshal_array' marshal.c:7762: warning: no previous prototype for 'emit_marshal_array' marshal.c:8433: error: invalid storage class for function 'emit_marshal_boolean' marshal.c:8433: warning: no previous prototype for 'emit_marshal_boolean' marshal.c:8582: error: invalid storage class for function 'emit_marshal_ptr' marshal.c:8582: warning: no previous prototype for 'emit_marshal_ptr' marshal.c:8613: error: invalid storage class for function 'emit_marshal_char' marshal.c:8613: warning: no previous prototype for 'emit_marshal_char' marshal.c:8640: error: invalid storage class for function 'emit_marshal_scalar' marshal.c:8640: warning: no previous prototype for 'emit_marshal_scalar' marshal.c:8664: error: invalid storage class for function 'emit_marshal' marshal.c:8664: warning: no previous prototype for 'emit_marshal' marshal.c:8746: error: invalid storage class for function 'mono_marshal_emit_native_wrapper' marshal.c:8746: warning: no previous prototype for 'mono_marshal_emit_native_wrapper' marshal.c:8948: warning: no previous prototype for 'mono_marshal_get_native_wrapper' marshal.c:9126: warning: no previous prototype for 'mono_marshal_get_native_func_wrapper' marshal.c:9158: error: invalid storage class for function 'mono_marshal_emit_managed_wrapper' marshal.c:9158: warning: no previous prototype for 'mono_marshal_emit_managed_wrapper' marshal.c:9321: error: invalid storage class for function 'mono_marshal_set_callconv_from_modopt' marshal.c:9321: warning: no previous prototype for 'mono_marshal_set_callconv_from_modopt' marshal.c:9360: warning: no previous prototype for 'mono_marshal_get_managed_wrapper' marshal.c:9463: warning: no previous prototype for 'mono_marshal_get_vtfixup_ftnptr' marshal.c:9537: error: invalid storage class for function 'type_from_handle' marshal.c:9537: warning: no previous prototype for 'type_from_handle' marshal.c:9558: warning: no previous prototype for 'mono_marshal_get_isinst' marshal.c:9640: warning: no previous prototype for 'mono_marshal_get_castclass' marshal.c:9703: warning: no previous prototype for 'mono_marshal_get_proxy_cancast' marshal.c:9779: warning: no previous prototype for 'mono_upgrade_remote_class_wrapper' marshal.c:9794: warning: no previous prototype for 'mono_marshal_get_struct_to_ptr' marshal.c:9859: warning: no previous prototype for 'mono_marshal_get_ptr_to_struct' marshal.c:9927: warning: no previous prototype for 'mono_marshal_get_synchronized_wrapper' marshal.c:10066: warning: no previous prototype for 'mono_marshal_get_unbox_wrapper' marshal.c:10100: warning: function declaration isn't a prototype marshal.c:10262: warning: no previous prototype for 'mono_marshal_get_array_address' marshal.c:10407: warning: no previous prototype for 'mono_marshal_alloc' marshal.c:10422: warning: no previous prototype for 'mono_marshal_free' marshal.c:10432: warning: no previous prototype for 'mono_marshal_free_array' marshal.c:10445: warning: no previous prototype for 'mono_marshal_string_to_utf16' marshal.c:10451: error: invalid storage class for function 'mono_marshal_string_to_utf16_copy' marshal.c:10451: warning: no previous prototype for 'mono_marshal_string_to_utf16_copy' marshal.c:10470: warning: no previous prototype for 'mono_marshal_set_last_error' marshal.c:10480: error: invalid storage class for function 'mono_marshal_set_last_error_windows' marshal.c:10480: warning: no previous prototype for 'mono_marshal_set_last_error_windows' marshal.c:10489: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged' marshal.c:10518: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged' marshal.c:10562: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr' marshal.c:10572: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReadByte' marshal.c:10582: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReadInt16' marshal.c:10592: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReadInt32' marshal.c:10602: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReadInt64' marshal.c:10612: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_WriteByte' marshal.c:10622: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_WriteIntPtr' marshal.c:10632: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_WriteInt16' marshal.c:10642: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_WriteInt32' marshal.c:10652: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_WriteInt64' marshal.c:10662: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi' marshal.c:10673: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len' marshal.c:10687: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni' marshal.c:10705: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni_len' marshal.c:10721: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringBSTR' marshal.c:10729: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_StringToBSTR' marshal.c:10744: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_FreeBSTR' marshal.c:10752: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_AddRefInternal' marshal.c:10759: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_QueryInterfaceInternal' marshal.c:10766: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReleaseInternal' marshal.c:10778: error: invalid storage class for function 'cominterop_can_support_dispatch' marshal.c:10778: warning: no previous prototype for 'cominterop_can_support_dispatch' marshal.c:10790: error: invalid storage class for function 'cominterop_get_idispatch_for_object' marshal.c:10790: warning: no previous prototype for 'cominterop_get_idispatch_for_object' marshal.c:10810: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetIUnknownForObjectInternal' marshal.c:10857: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetObjectForCCW' marshal.c:10875: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetIDispatchForObjectInternal' marshal.c:10887: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetCCW' marshal.c:10906: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_IsComObject' marshal.c:10916: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal' marshal.c:10941: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetComSlotForMethodInfoInternal' marshal.c:10953: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetLastWin32Error' marshal.c:10961: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_SizeOf' marshal.c:10990: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_StructureToPtr' marshal.c:11010: error: invalid storage class for function 'ptr_to_structure' marshal.c:11010: warning: no previous prototype for 'ptr_to_structure' marshal.c:11024: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure' marshal.c:11051: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type' marshal.c:11069: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf' marshal.c:11123: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi' marshal.c:11144: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni' marshal.c:11164: error: invalid storage class for function 'mono_struct_delete_old' marshal.c:11164: warning: no previous prototype for 'mono_struct_delete_old' marshal.c:11215: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure' marshal.c:11230: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_AllocHGlobal' marshal.c:11252: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReAllocHGlobal' marshal.c:11273: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_FreeHGlobal' marshal.c:11285: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_AllocCoTaskMem' marshal.c:11297: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_FreeCoTaskMem' marshal.c:11309: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_ReAllocCoTaskMem' marshal.c:11321: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_UnsafeAddrOfPinnedArrayElement' marshal.c:11327: warning: no previous prototype for 'ves_icall_System_Runtime_InteropServices_Marshal_GetDelegateForFunctionPointerInternal' marshal.c:11334: warning: no previous prototype for 'ves_icall_System_ComObject_CreateRCW' marshal.c:11356: error: invalid storage class for function 'cominterop_rcw_interface_finalizer' marshal.c:11356: warning: no previous prototype for 'cominterop_rcw_interface_finalizer' marshal.c:11363: warning: no previous prototype for 'ves_icall_System_ComObject_ReleaseInterfaces' marshal.c:11386: error: invalid storage class for function 'cominterop_rcw_finalizer' marshal.c:11386: warning: no previous prototype for 'cominterop_rcw_finalizer' marshal.c:11411: warning: function declaration isn't a prototype marshal.c:11428: warning: no previous prototype for 'ves_icall_System_ComObject_GetInterfaceInternal' marshal.c:11438: warning: no previous prototype for 'ves_icall_Mono_Interop_ComInteropProxy_AddProxy' marshal.c:11459: warning: no previous prototype for 'ves_icall_Mono_Interop_ComInteropProxy_FindProxy' marshal.c:11490: error: invalid storage class for function 'mono_marshal_is_loading_type_info' marshal.c:11490: warning: no previous prototype for 'mono_marshal_is_loading_type_info' marshal.c:11507: warning: no previous prototype for 'mono_marshal_load_type_info' marshal.c:11654: warning: no previous prototype for 'mono_class_native_size' marshal.c:11685: warning: no previous prototype for 'mono_type_native_stack_size' marshal.c:11763: warning: no previous prototype for 'mono_marshal_type_size' marshal.c:11856: warning: no previous prototype for 'mono_marshal_asany' marshal.c:11932: warning: no previous prototype for 'mono_marshal_free_asany' marshal.c:11984: warning: no previous prototype for 'mono_marshal_get_generic_array_helper' marshal.c:12027: warning: no previous prototype for 'mono_win32_compat_CopyMemory' marshal.c:12036: warning: no previous prototype for 'mono_win32_compat_FillMemory' marshal.c:12042: warning: no previous prototype for 'mono_win32_compat_MoveMemory' marshal.c:12051: warning: no previous prototype for 'mono_win32_compat_ZeroMemory' marshal.c:12068: error: invalid storage class for function 'cominterop_get_ccw_object' marshal.c:12068: warning: no previous prototype for 'cominterop_get_ccw_object' marshal.c:12090: error: invalid storage class for function 'cominterop_setup_marshal_context' marshal.c:12090: warning: no previous prototype for 'cominterop_setup_marshal_context' marshal.c:12124: error: invalid storage class for function 'cominterop_get_ccw' marshal.c:12124: warning: no previous prototype for 'cominterop_get_ccw' marshal.c:12338: error: invalid storage class for function 'mono_marshal_free_ccw_entry' marshal.c:12338: warning: no previous prototype for 'mono_marshal_free_ccw_entry' marshal.c:12352: warning: no previous prototype for 'mono_marshal_free_ccw' marshal.c:12406: error: invalid storage class for function 'cominterop_get_managed_wrapper_adjusted' marshal.c:12406: warning: no previous prototype for 'cominterop_get_managed_wrapper_adjusted' marshal.c:12530: error: invalid storage class for function 'cominterop_mono_string_to_guid' marshal.c:12530: warning: no previous prototype for 'cominterop_mono_string_to_guid' marshal.c:12541: error: invalid storage class for function 'cominterop_class_guid_equal' marshal.c:12541: warning: no previous prototype for 'cominterop_class_guid_equal' marshal.c:12550: error: invalid storage class for function 'cominterop_ccw_addref' marshal.c:12550: warning: no previous prototype for 'cominterop_ccw_addref' marshal.c:12569: error: invalid storage class for function 'cominterop_ccw_release' marshal.c:12569: warning: no previous prototype for 'cominterop_ccw_release' marshal.c:12621: error: invalid storage class for function 'cominterop_ccw_queryinterface' marshal.c:12621: warning: no previous prototype for 'cominterop_ccw_queryinterface' marshal.c:12688: error: invalid storage class for function 'cominterop_ccw_get_type_info_count' marshal.c:12688: warning: no previous prototype for 'cominterop_ccw_get_type_info_count' marshal.c:12694: error: invalid storage class for function 'cominterop_ccw_get_type_info' marshal.c:12694: warning: no previous prototype for 'cominterop_ccw_get_type_info' marshal.c:12702: error: invalid storage class for function 'cominterop_ccw_get_ids_of_names' marshal.c:12702: warning: no previous prototype for 'cominterop_ccw_get_ids_of_names' marshal.c:12712: error: invalid storage class for function 'cominterop_ccw_invoke' marshal.c:12712: warning: no previous prototype for 'cominterop_ccw_invoke' marshal.c:12728: warning: no previous prototype for 'mono_marshal_find_nonzero_bit_offset' marshal.c:12749: warning: no previous prototype for 'mono_marshal_get_thunk_invoke_wrapper' marshal.c:12899: warning: no previous prototype for 'mono_marshal_free_dynamic_wrappers' marshal.c:12910: error: expected declaration or statement at end of input make[3]: *** [marshal.lo] Error 1 make[3]: Leaving directory `/home/exchange/Mono/mono-2.4/mono/metadata' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/exchange/Mono/mono-2.4/mono' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/exchange/Mono/mono-2.4' make: *** [all] Error 2 [root at klotti-51 mono-2.4]# -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22922688.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Tue Apr 7 04:57:37 2009 From: robertj at gmx.net (Robert Jordan) Date: Tue, 07 Apr 2009 10:57:37 +0200 Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22914109.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> Message-ID: thkerkmann wrote: > Hi all, > > I just tried to make mono-2.4 from the sources. Before I installed > libgdiplus successfully. > > Can anybody give me some hints - I'm not a linux geek. ... > but a lot of errors occur when make-ing. > .... > marshal.c:12352: Warnung: kein vorheriger Prototyp f?r > ?mono_marshal_free_ccw? > marshal.c:12406: Fehler: ung?ltige Speicherklasse f?r Funktion > ?cominterop_get_managed_wrapper_adjusted? What's the output of printenv CC printenv CFLAGS printenv CPPFLAGS executed from the same shell you're trying to build mono? Robert From thkerkmann at t-online.de Tue Apr 7 06:52:21 2009 From: thkerkmann at t-online.de (thkerkmann) Date: Tue, 7 Apr 2009 03:52:21 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: References: <22914109.post@talk.nabble.com> Message-ID: <22926602.post@talk.nabble.com> Robert Jordan wrote: > > > What's the output of > > printenv CC > printenv CFLAGS > printenv CPPFLAGS > > executed from the same shell you're trying to build mono? > > ... > After ./configure ... config.status: executing default commands mcs source: $(top_srcdir)/mcs olive source: GC: included TLS: __thread SIGALTSTACK: yes Engine: Building and using the JIT 2.0 Beta: yes 2.1 Alpha: yes JNI support: IKVM Native libgdiplus: assumed to be installed zlib: system zlib oprofile: no BigArrays: no DTrace: no [root at klotti-51 mono-2.4]# printenv CC [root at klotti-51 mono-2.4]# printenv CFLAGS [root at klotti-51 mono-2.4]# printenv CPPFLAGS [root at klotti-51 mono-2.4]# nothing ??? hm.... After make ... make[3]: *** [marshal.lo] Error 1 make[3]: Leaving directory `/home/exchange/Mono/mono-2.4/mono/metadata' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/exchange/Mono/mono-2.4/mono' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/exchange/Mono/mono-2.4' make: *** [all] Error 2 [root at klotti-51 mono-2.4]# printenv CC [root at klotti-51 mono-2.4]# printenv CFLAGS [root at klotti-51 mono-2.4]# printenv CPPFLAGS [root at klotti-51 mono-2.4]# still nothing ??? -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22926602.html Sent from the Mono - General mailing list archive at Nabble.com. From thkerkmann at t-online.de Tue Apr 7 06:56:17 2009 From: thkerkmann at t-online.de (thkerkmann) Date: Tue, 7 Apr 2009 03:56:17 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22923434.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> <22918279.post@talk.nabble.com> <22922688.post@talk.nabble.com> <22923434.post@talk.nabble.com> Message-ID: <22926642.post@talk.nabble.com> j23tom wrote: > > I don't see here what's wrong but usually compilation errors come from > lack of some library or system could have mono installed already (so that > there are conflicts) > 1. See carefully ./configure and make's output > 2. Be sure to uninstall all mono related stuff from your system. > > If you have mono installed and don't want to uninstall it you can follow: > http://www.mono-project.com/Parallel_Mono_Environments > > > Ya there was mono before: version 1.9.1 and I wantet to go for the new 2.4 version. Got also problems to uninstall, so I'm thinking of throwing away my Fedora-8 installation and startover with Open Suse which already includes mono-2.4. But I'm afraid of it, because I have some stuff on my machine, that I don't want to loose. Too many experiments at the same time :-( -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22926642.html Sent from the Mono - General mailing list archive at Nabble.com. From tomasz.kubacki at gmail.com Tue Apr 7 07:42:11 2009 From: tomasz.kubacki at gmail.com (j23tom) Date: Tue, 7 Apr 2009 04:42:11 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22922688.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> <22918279.post@talk.nabble.com> <22922688.post@talk.nabble.com> Message-ID: <22923434.post@talk.nabble.com> I don't see here what's wrong but usually compilation errors come from lack of some library or system could have mono installed already (so that there are conflicts) 1. See carefully ./configure and make's output 2. Be sure to uninstall all mono related stuff from your system. If you have mono installed and don't want to uninstall it you can follow: http://www.mono-project.com/Parallel_Mono_Environments -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22923434.html Sent from the Mono - General mailing list archive at Nabble.com. From tomasz.kubacki at gmail.com Tue Apr 7 07:47:49 2009 From: tomasz.kubacki at gmail.com (j23tom) Date: Tue, 7 Apr 2009 04:47:49 -0700 (PDT) Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22926642.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> <22918279.post@talk.nabble.com> <22922688.post@talk.nabble.com> <22923434.post@talk.nabble.com> <22926642.post@talk.nabble.com> Message-ID: <22927390.post@talk.nabble.com> thkerkmann wrote: > > But I'm afraid of it, because I have some stuff on my machine, that I > don't want to loose. > Too many experiments at the same time :-( > Well maybe the best approach will be to start with mono's vmware ? image http://ftp.novell.com/pub/mono/vmware/Mono-2.4_openSUSE-11.1.zip -- View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22927390.html Sent from the Mono - General mailing list archive at Nabble.com. From surfzoid at gmail.com Tue Apr 7 07:58:11 2009 From: surfzoid at gmail.com (Petit Eric) Date: Tue, 7 Apr 2009 13:58:11 +0200 Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <22927390.post@talk.nabble.com> References: <22914109.post@talk.nabble.com> <22918279.post@talk.nabble.com> <22922688.post@talk.nabble.com> <22923434.post@talk.nabble.com> <22926642.post@talk.nabble.com> <22927390.post@talk.nabble.com> Message-ID: <84776a970904070458u4de5cc22tca3c1414e1ac6668@mail.gmail.com> 2009/4/7 j23tom : > > > thkerkmann wrote: >> >> But I'm afraid of it, because I have some stuff on my machine, that I >> don't want to loose. >> Too many experiments at the same time :-( ?!!? : http://mono-project.com/Parallel_Mono_Environments >> > > Well maybe the best approach will be to start with mono's vmware ? > image http://ftp.novell.com/pub/mono/vmware/Mono-2.4_openSUSE-11.1.zip > > -- > View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22927390.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From surfzoid at gmail.com Tue Apr 7 11:49:36 2009 From: surfzoid at gmail.com (Petit Eric) Date: Tue, 7 Apr 2009 17:49:36 +0200 Subject: [Mono-list] make of mono-2.4 fails with lots of errormessages In-Reply-To: <84776a970904070458u4de5cc22tca3c1414e1ac6668@mail.gmail.com> References: <22914109.post@talk.nabble.com> <22918279.post@talk.nabble.com> <22922688.post@talk.nabble.com> <22923434.post@talk.nabble.com> <22926642.post@talk.nabble.com> <22927390.post@talk.nabble.com> <84776a970904070458u4de5cc22tca3c1414e1ac6668@mail.gmail.com> Message-ID: <84776a970904070849h428f188chd41559df3923f29e@mail.gmail.com> 2009/4/7 Petit Eric : > 2009/4/7 j23tom : >> >> >> thkerkmann wrote: >>> >>> But I'm afraid of it, because I have some stuff on my machine, that I >>> don't want to loose. >>> Too many experiments at the same time :-( > ?!!? : http://mono-project.com/Parallel_Mono_Environments I think you have the response at your problem in this right way to folow : http://mono-project.com/Parallel_Mono_Environments >>> >> >> Well maybe the best approach will be to start with mono's vmware ? >> image http://ftp.novell.com/pub/mono/vmware/Mono-2.4_openSUSE-11.1.zip >> >> -- >> View this message in context: http://www.nabble.com/make-of-mono-2.4-fails-with-lots-of-errormessages-tp22914109p22927390.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist ?- ?Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > > > -- > > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > If one day one reproaches you that your work is not a work of > professional, say you that: > Amateurs built the arch of Noah, and professionals the Titanic. > --------------------------------------------------------------------------- > > Few people are done for independence, it is the privilege of the powerful ones. > --------------------------------------------------------------------------- > > No key was wounded during the drafting of this message. > From jhill at arcfocus.com Tue Apr 7 12:04:35 2009 From: jhill at arcfocus.com (Joseph Hill) Date: Tue, 07 Apr 2009 12:04:35 -0400 Subject: [Mono-list] Question on Code Generation In-Reply-To: References: <22919191.post@talk.nabble.com><6CCE930E9A0D4386B5DDBD9F668DA5AA@homelaptop> <22920025.post@talk.nabble.com> Message-ID: <49DB7993.1040706@arcfocus.com> The value of CodeSmith is not the code generator. It's the additional tooling they provide for developing and consuming the templates, the extensive library of templates available, and the community of template developers... --Joseph >> I see what CodeSmith actually generates, it may be relatively >> straightforward to produce a template generator >> > I did an eval and tossed it. > You can duplicate enough of what it does in very little time. > > >> cut down the clutter >> > ??? You can clutter things with the templates you build, or not. > > > > ----- Original Message ----- > From: "anton123" > To: > Sent: Monday, April 06, 2009 7:24 PM > Subject: Re: [Mono-list] Question on Code Generation > > > >> Well, sounds like I'll have to roll up some sleeves and start hacking. :-) >> Actually, that's what one of the other teams is using (of which I have >> very >> little information other than the tools they use, e.g. Visual Studio and >> CodeSmith). Me and my co-workers are expecting that we may have to adopt >> that to dive right in and work with their code. As of now, the word is >> that >> CodeSmith will be able to cut down the clutter on many things. I presume >> if >> I see what CodeSmith actually generates, it may be relatively >> straightforward to produce a template generator. >> >> If anyone has ideas and opinions, I'll really appreciate it because it's >> still some time away from when I'll be doing some heavy .Net work and >> would >> be nice to be prepared. >> >> Thanks! >> >> >> Trober wrote: >> >>>> Can anyone shed some light? >>>> >>> there's not that much to CodeSmith, why bother vs. building a quick >>> parser/template/generator? >>> you're better off getting a simple grammar(s) together with an >>> easy-to-use >>> parser, and just fill in the templates yourself >>> you'll own the generators when done, and they don't take up that much >>> extra >>> effort vs. what they save >>> >>> >>>> I'm anticipating a lot of code-generation heavy work. >>>> >>> shed some light on what you're trying to build. >>> Anything that's ORM, service framework (aspx, asmx, WCF, etc.), and even >>> UI >>> parts should be auto-gen'd :-) >>> >>> >>> >>> ----- Original Message ----- >>> From: "anton123" >>> To: >>> Sent: Monday, April 06, 2009 6:00 PM >>> Subject: [Mono-list] Question on Code Generation >>> >>> >>> >>>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >>>> if >>>> Mono does support CodeSmith). I'm hoping it might since I'm >>>> anticipating >>>> a >>>> lot of code-generation heavy work. Can anyone shed some light? >>>> >>>> Thank you so much! >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22919191.html >>>> Sent from the Mono - General mailing list archive at Nabble.com. >>>> >>>> _______________________________________________ >>>> Mono-list maillist - Mono-list at lists.ximian.com >>>> http://lists.ximian.com/mailman/listinfo/mono-list >>>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >>> >> -- >> View this message in context: >> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22920025.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From jhill at arcfocus.com Tue Apr 7 12:06:57 2009 From: jhill at arcfocus.com (Joseph Hill) Date: Tue, 07 Apr 2009 12:06:57 -0400 Subject: [Mono-list] Question on Code Generation In-Reply-To: <22921684.post@talk.nabble.com> References: <22919191.post@talk.nabble.com> <22921684.post@talk.nabble.com> Message-ID: <49DB7A21.3050709@arcfocus.com> CodeSmith 2.6 is almost 5 years old. Sadly, it probably isn't that far off from working with Mono, but it has some p/invokes, and after this long, it doesn't seem like they have any incentive to do any maintenance on the freeware tool. If you want to generate code from CodeSmith tempates on Mono, then it may be worth seeing if they have plans to support Mono with a newer version of their tool. On the other hand, I would love to see the T4 community grow. It seems like a lot more projects are starting to use it (particularly MS projects)... --Joseph > Hi Michael! > > Thanks for the information. As a short exercise, I tried to run the > freeware version of CodeSmith (2.6) on Mono and it didn't work. At least I > tried. > > I was also thinking that CodeSmith should generate code that Mono can use as > well. > > I'm writing on Linux mostly and I'm trying to really make this work since I > don't want to own a Windows box for this. I'm scouring for everything that > I can about this. > > Thank you for the link on T4. I'll be sure to read up on it. > > > Michael Hutchinson wrote: > >> On Mon, Apr 6, 2009 at 7:00 PM, anton123 >> wrote: >> >>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >>> if >>> Mono does support CodeSmith). I'm hoping it might since I'm anticipating >>> a >>> lot of code-generation heavy work. Can anyone shed some light? >>> >> I don't know whether CodeSmith runs on Mono, though it must be able to >> generate code that will run on Mono, so if you're writing code on >> Windows, then it might be a good choice. >> >> If you're in Linux/Mac, or you need more flexibility to customise and >> ship the generator, then check out Mono's implementation of Visual >> Studio's T4 (Text Template Transformation Toolkit) system: >> http://tirania.org/blog/archive/2009/Mar-10.html >> >> -- >> Michael Hutchinson >> http://mjhutchinson.com >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> >> > > From funkyfredmale at hotmail.com Mon Apr 6 17:38:58 2009 From: funkyfredmale at hotmail.com (monobug) Date: Mon, 6 Apr 2009 14:38:58 -0700 (PDT) Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu Message-ID: <22917944.post@talk.nabble.com> Using 1.2.6+dfsg-6ubuntu3 of libmono-corlib-2.0-cil, it appears HashSet only has empty stub methods. Add() and Contains() can be called & compiled, but something as simple as: HashSet test = new HashSet() string testString = "Test"; test.add( testString ); Console.WriteLine( "Contains says: " + test.Contains( testString ) ) fails to work correctly, as the contains method returns false in this case. I've compiled the same code on Windows .Net, and it behaves as expected (returns true). Any ideas as to what is going on here? Mono also complains that HashSet does not contain a definition for GetEnumerator() when I try to use a foreach statement. Note that I cannot update this ubuntu box easily. Any idea how this happened, and fixes beyond "just update via apt" would be appreciated. -- View this message in context: http://www.nabble.com/HashSet-appears-present-but-uslessly-broken-on-Ubuntu-tp22917944p22917944.html Sent from the Mono - General mailing list archive at Nabble.com. From trampster at gmail.com Tue Apr 7 07:39:44 2009 From: trampster at gmail.com (trampster) Date: Tue, 7 Apr 2009 04:39:44 -0700 (PDT) Subject: [Mono-list] System.IO.SerialPort.BytesToRead closes program Message-ID: <22927258.post@talk.nabble.com> it appears that calling System.IO.SerialPort.BytesToRead closes my application when runing on windows using mono 2.4. The following code reproduces the problem. No error message or exception seems to be generated it just closes. using System.IO.Ports; using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { SerialPort serialPort = new SerialPort("Com4", 19200); serialPort.Open(); Console.WriteLine("before"); int bytesToRead = serialPort.BytesToRead; Console.WriteLine("after"); } } } My questions are as follows. 1. I'm I doing something wrong, (the code works when run on dot net) 2. Does this work on the linux build? I raised a bug https://bugzilla.novell.com/show_bug.cgi?id=490910 but it is not getting any activity. I am very interested in getting my coding running on mono, and was under the impression that all this .net 2.0 stuff was implemented and stable. Was I wrong? -- View this message in context: http://www.nabble.com/System.IO.SerialPort.BytesToRead-closes-program-tp22927258p22927258.html Sent from the Mono - General mailing list archive at Nabble.com. From mpickering at nflow.com Tue Apr 7 09:49:03 2009 From: mpickering at nflow.com (MP010101) Date: Tue, 7 Apr 2009 06:49:03 -0700 (PDT) Subject: [Mono-list] How to make/get a small footprint... Message-ID: <22929405.post@talk.nabble.com> ...no not the one left by my foot, but the one left by mono. I have tried 3 times to build mono on windows using cygwin following 3 different guides. 3 times i have failed. Anyway, the reason I need a small install is because of my target machine. Its a Windows XPE machine with 30mb of space free. (256mb Flash drive - wooo!) Reading the http://www.mono-project.com/Small_footprint Small_footprint article has led me to believe that I can get the mono framework onto my XPE box - as long as I omit stuff that I don't use. The .NET app I have is very limited, it just talks to hardware devices via bespoke API's - i'm not doing anything fruity with webservices etc so I know I dont need the whole framework. So, am I flogging a dead horse? Can Mono be put on a diet and squeezed onto a 30mb drive - I could possibly free up another 20mb but thats pushing it. If this can be done - has anyone done it? Can they host/post the installation they made? Many thanks in advance, Mark. -- View this message in context: http://www.nabble.com/How-to-make-get-a-small-footprint...-tp22929405p22929405.html Sent from the Mono - General mailing list archive at Nabble.com. From zarevucky.jiri at gmail.com Tue Apr 7 12:33:06 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Tue, 7 Apr 2009 18:33:06 +0200 Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: <22917944.post@talk.nabble.com> References: <22917944.post@talk.nabble.com> Message-ID: 2009/4/6 monobug : > > Any ideas as to what is going on here? > 1.2.6 is hopelessly old. Support for newer classes is not complete there I guess. > > Note that I cannot update this ubuntu box easily. Any idea how this > happened, and fixes beyond "just update via apt" would be appreciated. > You can try using a local copy of System.Core.dll from newer Mono. I have no experience in mixing different versions of libraries, though, so I have no idea whether it will work. From miguel at novell.com Tue Apr 7 13:04:39 2009 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 07 Apr 2009 13:04:39 -0400 Subject: [Mono-list] Telerik announces ASP.NET RadControls support for Mono 2.4 In-Reply-To: References: <1239056593.4381.140.camel@erandi.site> Message-ID: <1239123879.28037.23.camel@erandi.site> Hello, > Excellent!!! > > A long time waiting for that! > > The compatible version of RadControls for ASP.NET AJAX is now > available for download? Yes. Miguel. > > > []s > > > Pedro. > > > > > 2009/4/6 Miguel de Icaza > Hello folks, > > I wanted to share with everyone on the lists a very > important > announcement from Telerik, the creators of RadControls for > ASP.NET. > > As of today Telerik is making RadControls for ASP.NET > available and > supported for Linux users using Mono 2.4 on their systems. > Third-party > controls is one of the most requested features that we hear > from our > community and Telerik is the first major vendor to offer their > tools for > Mono users. > > You do need Mono 2.4 as it contains many bug fixes and new > APIs that > Telerik consumes that are required to run RadControls with > Mono. > > Telerik's announcement is here: > > http://www.telerik.com/company/press-center/company-news/telerik-announces-support-for-mono.aspx > > My blog on the subject is here: > > http://bit.ly/1RRK2x > > And some live demos are here: > > http://mono.telerik.com > > Miguel, > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From funkyfredmale at hotmail.com Tue Apr 7 13:13:43 2009 From: funkyfredmale at hotmail.com (monobug) Date: Tue, 7 Apr 2009 10:13:43 -0700 (PDT) Subject: [Mono-list] HashSet appears present but broken on older Ubuntu In-Reply-To: References: <22917944.post@talk.nabble.com> Message-ID: <22933899.post@talk.nabble.com> Ok. I sort of expected unimplemented methods to throw "NotImplemented" exceptions, so I was hoping this might be some misconfiguration on my part... >You can try using a local copy of System.Core.dll from newer Mono. I >have no experience in mixing different versions of libraries, though, >so I have no idea whether it will work. I'll mirror my apt-update server over the weekend and post back if that fixes it. Thanks. Ji?? Z?rev?cky wrote: > > 2009/4/6 monobug : >> >> Any ideas as to what is going on here? >> > > 1.2.6 is hopelessly old. Support for newer classes is not complete > there I guess. > >> >> Note that I cannot update this ubuntu box easily. Any idea how this >> happened, and fixes beyond "just update via apt" would be appreciated. >> > > You can try using a local copy of System.Core.dll from newer Mono. I > have no experience in mixing different versions of libraries, though, > so I have no idea whether it will work. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/HashSet-appears-present-but-uslessly-broken-on-Ubuntu-tp22917944p22933899.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Tue Apr 7 13:16:16 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Tue, 7 Apr 2009 18:16:16 +0100 Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: References: <22917944.post@talk.nabble.com> Message-ID: <117799f00904071016u237620fdkfb453292ad880f2b@mail.gmail.com> Hey, You can try using a local copy of System.Core.dll from newer Mono. I > have no experience in mixing different versions of libraries, though, > so I have no idea whether it will work. I'd highly recommend *against* doing that. Mixing class libraries between mono versions is good way to get breakages. What I would recommend is using something newer than 1.2.6, that'd be the best way of making it work. Alan. > > _______________________________________________ > 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/20090407/de943adc/attachment.html From randy at ultbingo.com Tue Apr 7 16:16:59 2009 From: randy at ultbingo.com (UndergroundChop) Date: Tue, 7 Apr 2009 13:16:59 -0700 (PDT) Subject: [Mono-list] New to mono hello world compile question. In-Reply-To: <22874237.post@talk.nabble.com> References: <22874237.post@talk.nabble.com> Message-ID: <22937387.post@talk.nabble.com> Have transferred using Binary mode this time and works perfectly thank you I should have known better -- View this message in context: http://www.nabble.com/New-to-mono-hello-world-compile-question.-tp22874237p22937387.html Sent from the Mono - General mailing list archive at Nabble.com. From niniendowarrior at gmail.com Tue Apr 7 19:08:56 2009 From: niniendowarrior at gmail.com (anton123) Date: Tue, 7 Apr 2009 16:08:56 -0700 (PDT) Subject: [Mono-list] Question on Code Generation In-Reply-To: <49DB7A21.3050709@arcfocus.com> References: <22919191.post@talk.nabble.com> <22921684.post@talk.nabble.com> <49DB7A21.3050709@arcfocus.com> Message-ID: <22940139.post@talk.nabble.com> I took a peek at T4 and it looks interesting. I'm still going through the tutorials on Mono development though so I'll take a deeper look on it once I get a better handle on Mono. I'll try everything I can to make Mono work for my project. I'm hell bent on it. That much can be said. :-) jhill wrote: > > CodeSmith 2.6 is almost 5 years old. Sadly, it probably isn't that far > off from working with Mono, but it has some p/invokes, and after this > long, it doesn't seem like they have any incentive to do any maintenance > on the freeware tool. If you want to generate code from CodeSmith > tempates on Mono, then it may be worth seeing if they have plans to > support Mono with a newer version of their tool. > > On the other hand, I would love to see the T4 community grow. It seems > like a lot more projects are starting to use it (particularly MS > projects)... > > --Joseph >> Hi Michael! >> >> Thanks for the information. As a short exercise, I tried to run the >> freeware version of CodeSmith (2.6) on Mono and it didn't work. At least >> I >> tried. >> >> I was also thinking that CodeSmith should generate code that Mono can use >> as >> well. >> >> I'm writing on Linux mostly and I'm trying to really make this work since >> I >> don't want to own a Windows box for this. I'm scouring for everything >> that >> I can about this. >> >> Thank you for the link on T4. I'll be sure to read up on it. >> >> >> Michael Hutchinson wrote: >> >>> On Mon, Apr 6, 2009 at 7:00 PM, anton123 >>> wrote: >>> >>>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith (or >>>> if >>>> Mono does support CodeSmith). I'm hoping it might since I'm >>>> anticipating >>>> a >>>> lot of code-generation heavy work. Can anyone shed some light? >>>> >>> I don't know whether CodeSmith runs on Mono, though it must be able to >>> generate code that will run on Mono, so if you're writing code on >>> Windows, then it might be a good choice. >>> >>> If you're in Linux/Mac, or you need more flexibility to customise and >>> ship the generator, then check out Mono's implementation of Visual >>> Studio's T4 (Text Template Transformation Toolkit) system: >>> http://tirania.org/blog/archive/2009/Mar-10.html >>> >>> -- >>> Michael Hutchinson >>> http://mjhutchinson.com >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >>> >> >> > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22940139.html Sent from the Mono - General mailing list archive at Nabble.com. From monotrober at gmail.com Wed Apr 8 02:04:53 2009 From: monotrober at gmail.com (Mono Trober) Date: Wed, 8 Apr 2009 01:04:53 -0500 Subject: [Mono-list] Question on Code Generation References: <22919191.post@talk.nabble.com><22921684.post@talk.nabble.com> <49DB7A21.3050709@arcfocus.com> <22940139.post@talk.nabble.com> Message-ID: <6E6AD7B61DB24ABC93192AEF138D8181@homelaptop> I'd like to hear about, you can email me directly if you don't mind. I'm working on Microsoft Oslo stuff for my own shop and asked via the Mono wiki if Mono work in-progress to support it. Due to Oslo currently being on a preview pre-release (CTP), Mono will wait. Understandable. But, I'd be interested in seeing to it Mono can support .Net 4.0 modeling the very day.Net 4.0 releases. ----- Original Message ----- From: "anton123" To: Sent: Tuesday, April 07, 2009 6:08 PM Subject: Re: [Mono-list] Question on Code Generation > > I took a peek at T4 and it looks interesting. I'm still going through the > tutorials on Mono development though so I'll take a deeper look on it once > I > get a better handle on Mono. > > I'll try everything I can to make Mono work for my project. I'm hell bent > on it. That much can be said. :-) > > > jhill wrote: >> >> CodeSmith 2.6 is almost 5 years old. Sadly, it probably isn't that far >> off from working with Mono, but it has some p/invokes, and after this >> long, it doesn't seem like they have any incentive to do any maintenance >> on the freeware tool. If you want to generate code from CodeSmith >> tempates on Mono, then it may be worth seeing if they have plans to >> support Mono with a newer version of their tool. >> >> On the other hand, I would love to see the T4 community grow. It seems >> like a lot more projects are starting to use it (particularly MS >> projects)... >> >> --Joseph >>> Hi Michael! >>> >>> Thanks for the information. As a short exercise, I tried to run the >>> freeware version of CodeSmith (2.6) on Mono and it didn't work. At >>> least >>> I >>> tried. >>> >>> I was also thinking that CodeSmith should generate code that Mono can >>> use >>> as >>> well. >>> >>> I'm writing on Linux mostly and I'm trying to really make this work >>> since >>> I >>> don't want to own a Windows box for this. I'm scouring for everything >>> that >>> I can about this. >>> >>> Thank you for the link on T4. I'll be sure to read up on it. >>> >>> >>> Michael Hutchinson wrote: >>> >>>> On Mon, Apr 6, 2009 at 7:00 PM, anton123 >>>> wrote: >>>> >>>>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith >>>>> (or >>>>> if >>>>> Mono does support CodeSmith). I'm hoping it might since I'm >>>>> anticipating >>>>> a >>>>> lot of code-generation heavy work. Can anyone shed some light? >>>>> >>>> I don't know whether CodeSmith runs on Mono, though it must be able to >>>> generate code that will run on Mono, so if you're writing code on >>>> Windows, then it might be a good choice. >>>> >>>> If you're in Linux/Mac, or you need more flexibility to customise and >>>> ship the generator, then check out Mono's implementation of Visual >>>> Studio's T4 (Text Template Transformation Toolkit) system: >>>> http://tirania.org/blog/archive/2009/Mar-10.html >>>> >>>> -- >>>> Michael Hutchinson >>>> http://mjhutchinson.com >>>> _______________________________________________ >>>> Mono-list maillist - Mono-list at lists.ximian.com >>>> http://lists.ximian.com/mailman/listinfo/mono-list >>>> >>>> >>>> >>> >>> >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > > -- > View this message in context: > http://www.nabble.com/Question-on-Code-Generation-tp22919191p22940139.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From kramieb at gmail.com Wed Apr 8 02:55:37 2009 From: kramieb at gmail.com (Mark de Bruijn) Date: Wed, 8 Apr 2009 08:55:37 +0200 Subject: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead closes program In-Reply-To: References: <22927258.post@talk.nabble.com> Message-ID: Compiled using gmcs on Ubuntu, getting an exception, no crash. Mono C# compiler version 2.0.1.0 Mono JIT compiler version 2.0.1 (tarball) Same results on: Mono C# compiler version 2.4.0.0 Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130414 za mrt 28 17:21:49 CET 2009) LANG=C mono --debug ./WindowsCrash.exe: Unhandled Exception: System.IO.IOException: No such file or directory at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00012] in /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:299 at System.IO.Ports.SerialPortStream..ctor (System.String portName, Int32 baudRate, Int32 dataBits, Parity parity, StopBits stopBits, Boolean dtrEnable, Boolean rtsEnable, Handshake handshake, Int32 readTimeout, Int32 writeTimeout, Int32 readBufferSize, Int32 writeBufferSize) [0x0001e] in /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:36 at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPortStream:.ctor (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int) at System.IO.Ports.SerialPort.Open () [0x00078] in /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPort.cs:563 at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:Open () at WindowsCrash.Program.Main (System.String[] args) [0x00000] On Tue, Apr 7, 2009 at 1:39 PM, trampster wrote: > > it appears that calling System.IO.SerialPort.BytesToRead closes my > application when runing on windows using mono 2.4. The following code > reproduces the problem. No error message or exception seems to be generated > it just closes. > > > using System.IO.Ports; > using System; > > namespace ConsoleApplication1 > { > class Program > { > static void Main(string[] args) > { > SerialPort serialPort = new SerialPort("Com4", 19200); > serialPort.Open(); > Console.WriteLine("before"); > int bytesToRead = serialPort.BytesToRead; > Console.WriteLine("after"); > } > } > } > > My questions are as follows. > 1. I'm I doing something wrong, (the code works when run on dot net) > 2. Does this work on the linux build? > > I raised a bug https://bugzilla.novell.com/show_bug.cgi?id=490910 > but it is not getting any activity. > I am very interested in getting my coding running on mono, and was under > the > impression that all this .net 2.0 stuff was implemented and stable. Was I > wrong? > -- > View this message in context: > http://www.nabble.com/System.IO.SerialPort.BytesToRead-closes-program-tp22927258p22927258.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090408/a8c375cb/attachment.html From niniendowarrior at gmail.com Wed Apr 8 04:11:30 2009 From: niniendowarrior at gmail.com (anton123) Date: Wed, 8 Apr 2009 01:11:30 -0700 (PDT) Subject: [Mono-list] Question on Code Generation In-Reply-To: <6E6AD7B61DB24ABC93192AEF138D8181@homelaptop> References: <22919191.post@talk.nabble.com> <22921684.post@talk.nabble.com> <49DB7A21.3050709@arcfocus.com> <22940139.post@talk.nabble.com> <6E6AD7B61DB24ABC93192AEF138D8181@homelaptop> Message-ID: <22945451.post@talk.nabble.com> I certainly have no problems touching base with you over how this one goes. :-) Trober wrote: > > I'd like to hear about, you can email me directly if you don't mind. > > I'm working on Microsoft Oslo stuff for my own shop and asked via the Mono > wiki if Mono work in-progress to support it. > Due to Oslo currently being on a preview pre-release (CTP), Mono will > wait. > Understandable. > But, I'd be interested in seeing to it Mono can support .Net 4.0 modeling > the very day.Net 4.0 releases. > > > > ----- Original Message ----- > From: "anton123" > To: > Sent: Tuesday, April 07, 2009 6:08 PM > Subject: Re: [Mono-list] Question on Code Generation > > >> >> I took a peek at T4 and it looks interesting. I'm still going through >> the >> tutorials on Mono development though so I'll take a deeper look on it >> once >> I >> get a better handle on Mono. >> >> I'll try everything I can to make Mono work for my project. I'm hell >> bent >> on it. That much can be said. :-) >> >> >> jhill wrote: >>> >>> CodeSmith 2.6 is almost 5 years old. Sadly, it probably isn't that far >>> off from working with Mono, but it has some p/invokes, and after this >>> long, it doesn't seem like they have any incentive to do any maintenance >>> on the freeware tool. If you want to generate code from CodeSmith >>> tempates on Mono, then it may be worth seeing if they have plans to >>> support Mono with a newer version of their tool. >>> >>> On the other hand, I would love to see the T4 community grow. It seems >>> like a lot more projects are starting to use it (particularly MS >>> projects)... >>> >>> --Joseph >>>> Hi Michael! >>>> >>>> Thanks for the information. As a short exercise, I tried to run the >>>> freeware version of CodeSmith (2.6) on Mono and it didn't work. At >>>> least >>>> I >>>> tried. >>>> >>>> I was also thinking that CodeSmith should generate code that Mono can >>>> use >>>> as >>>> well. >>>> >>>> I'm writing on Linux mostly and I'm trying to really make this work >>>> since >>>> I >>>> don't want to own a Windows box for this. I'm scouring for everything >>>> that >>>> I can about this. >>>> >>>> Thank you for the link on T4. I'll be sure to read up on it. >>>> >>>> >>>> Michael Hutchinson wrote: >>>> >>>>> On Mon, Apr 6, 2009 at 7:00 PM, anton123 >>>>> wrote: >>>>> >>>>>> I'm wondering if there's a Mono substitute/counterpart to CodeSmith >>>>>> (or >>>>>> if >>>>>> Mono does support CodeSmith). I'm hoping it might since I'm >>>>>> anticipating >>>>>> a >>>>>> lot of code-generation heavy work. Can anyone shed some light? >>>>>> >>>>> I don't know whether CodeSmith runs on Mono, though it must be able to >>>>> generate code that will run on Mono, so if you're writing code on >>>>> Windows, then it might be a good choice. >>>>> >>>>> If you're in Linux/Mac, or you need more flexibility to customise and >>>>> ship the generator, then check out Mono's implementation of Visual >>>>> Studio's T4 (Text Template Transformation Toolkit) system: >>>>> http://tirania.org/blog/archive/2009/Mar-10.html >>>>> >>>>> -- >>>>> Michael Hutchinson >>>>> http://mjhutchinson.com >>>>> _______________________________________________ >>>>> Mono-list maillist - Mono-list at lists.ximian.com >>>>> http://lists.ximian.com/mailman/listinfo/mono-list >>>>> >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Question-on-Code-Generation-tp22919191p22940139.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Question-on-Code-Generation-tp22919191p22945451.html Sent from the Mono - General mailing list archive at Nabble.com. From peter at wingsofdeath.nu Wed Apr 8 04:25:19 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Wed, 08 Apr 2009 10:25:19 +0200 Subject: [Mono-list] Mono 2.4 thread aborted Message-ID: <49DC5F6F.2070401@wingsofdeath.nu> Hi I upgraded Mono to 2.4 on my webserver, and everything seemed to work perfectly. I'm running a asp.net/mod-mono application. Sometimes I execute some shell command, and here were it goes wrong. I can't really figure out what the problem is. Normally I did a chmod on newly created directories with a Process. But since the update when executing the process, my Thread was aborted and I get an exception from the webserver. Now I changed this code to use the Mono.Unix assembly. This is the code I use: if (child.HasAttribute("mod")) { int num = Int32.Parse(child.GetAttribute("mod"), System.Globalization.NumberStyles.HexNumber); Mono.Unix.Native.Syscall.chmod(path, (Mono.Unix.Native.FilePermissions) num); } When I execute this, I get the following exception, and again my thread is being aborted: System.Threading.ThreadAbortException: Thread was being aborted at (wrapper managed-to-native) Mono.Unix.Native.Syscall:sys_chmod (string,uint) at Mono.Unix.Native.Syscall.chmod (System.String path, FilePermissions mode) [0x00000] at Willow.Cms.WebControls.WillowFormControl._ExecuteActionXmlNode (iWillowXmlElementControl element, Willow.Common.WillowXmlElement child, Willow.Cms.Common.ActionResult actionResult) [0x00000] at Willow.Cms.WebControls.WillowFormControl._ExecuteActionXML (iWillowXmlElementControl element, Willow.Common.WillowXmlElement xml, Willow.Cms.Common.ActionResult actionResult) [0x00000] I did try other 'shell executes' with the process object, and they seem to go without problems. It only happens on the Mono.Unix.Native.Syscall.chmod or using a shell command with chmod. So it looks like that mod-mono is monitoring the root of the website, and triggers a reload of the website on every change on that directory. But this can't be right. Normally it only triggers on bin and web.config. Any suggestions? Cheers Peter From trampster at gmail.com Wed Apr 8 04:44:33 2009 From: trampster at gmail.com (Daniel) Date: Wed, 08 Apr 2009 20:44:33 +1200 Subject: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead closes program Message-ID: <49DC63F1.2010205@gmail.com> -------------- next part -------------- An embedded message was scrubbed... From: Daniel Subject: Re: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead closes program Date: Wed, 08 Apr 2009 20:41:18 +1200 Size: 4413 Url: http://lists.ximian.com/pipermail/mono-list/attachments/20090408/9e81d683/attachment-0001.eml From stifu at free.fr Wed Apr 8 04:47:53 2009 From: stifu at free.fr (Stifu) Date: Wed, 8 Apr 2009 01:47:53 -0700 (PDT) Subject: [Mono-list] LockBits() on Mono 2.2? In-Reply-To: <117799f00903191802t5581e48fj559eb2e00f1105c0@mail.gmail.com> References: <22611389.post@talk.nabble.com> <22611486.post@talk.nabble.com> <22611603.post@talk.nabble.com> <117799f00903191802t5581e48fj559eb2e00f1105c0@mail.gmail.com> Message-ID: <22946015.post@talk.nabble.com> Hey, I finally got around to nail the bug down. Here's the report: https://bugzilla.novell.com/show_bug.cgi?id=493047 Alan McGovern-2 wrote: > > Hey, > > Well, if there's a bug then please try to reduce the testcase as much as > possible before submitting it. If you can't it's still worth filing a bug > and giving as much detail as you can. > > If its working on .NET but not Mono that's not a good sign. I was >> afraid of something like this. > > > If there is an issue with a specific method, there are generally other > ways > of accomplishing exactly the same task. Sometimes all you need to do is > use > a different overload of the same method. For example here are two > alternate > methods of copying a bitmap, both of which are probably higher performance > and both are definitely less bug prone: > > http://msdn.microsoft.com/en-us/library/aa457087.aspx > > So if you do encounter any issues, please file bug reports so they can be > dealt with for the next release. > > Alan. > >> >> >> >> Stifu wrote: >> > >> > I found a certain GDI+ bug recently, and I *think* it's related to >> > LockBits(). I'm not sure, and didn't report the bug as I couldn't make >> a >> > reduced test case yet. However, if you're interested, I can send you my >> > not-so-reduced test case so you can have a look. >> > >> > But to sum things up: I have a Bitmap, try to clone it, and the cloned >> > Bitmap is all black... while this works fine with .NET. >> > >> > >> > LKeene wrote: >> >> >> >> Hello all, I have a general question regarding the use of LockBits() >> (in >> >> GDI+) for reading/writing to a bitmap. I'm using Mono 2.2 and am >> >> targeting Windows, OSX and Linux. Any current issues concerning the >> use >> >> of LockBits()/UnlockBits() I should be aware of? Any nasty buggies I >> >> should be on the lookout for? I found a few posts pertaining to this >> but >> >> they're not very current. >> >> >> >> Thanks eveyone. >> >> >> >> -L >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/LockBits%28%29-on-Mono-2.2--tp22611389p22611603.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/LockBits%28%29-on-Mono-2.2--tp22611389p22946015.html Sent from the Mono - General mailing list archive at Nabble.com. From kramieb at gmail.com Wed Apr 8 04:46:53 2009 From: kramieb at gmail.com (Mark de Bruijn) Date: Wed, 8 Apr 2009 10:46:53 +0200 Subject: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead closes program In-Reply-To: <49DC63F1.2010205@gmail.com> References: <49DC63F1.2010205@gmail.com> Message-ID: Would be good if you supply a example which does work anywhere, it's hard to test for me, because I don't have the knowledge to get Open() to work. On Wed, Apr 8, 2009 at 10:44 AM, Daniel wrote: > > > > ---------- Forwarded message ---------- > From: Daniel > To: Mark de Bruijn > Date: Wed, 08 Apr 2009 20:41:18 +1200 > Subject: Re: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead closes > program > Thanks for trying but your code threw the exception on Open() not on > accessing BytesToRead. Most likely because you don't have a "Com4". > > I do have a "Com4" and Open works it's calling BytesToRead that causes my > program to close. > > Any more ideas? > > Cheers, > Daniel > > > Mark de Bruijn wrote: > >> Compiled using gmcs on Ubuntu, getting an exception, no crash. >> Mono C# compiler version 2.0.1.0 >> Mono JIT compiler version 2.0.1 (tarball) >> Same results on: >> Mono C# compiler version 2.4.0.0 >> Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130414 za mrt 28 >> 17:21:49 CET 2009) >> >> LANG=C mono --debug ./WindowsCrash.exe: >> >> Unhandled Exception: System.IO.IOException: No such file or directory >> at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00012] in >> /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:299 >> >> at System.IO.Ports.SerialPortStream..ctor (System.String portName, Int32 >> baudRate, Int32 dataBits, Parity parity, StopBits stopBits, Boolean >> dtrEnable, Boolean rtsEnable, Handshake handshake, Int32 readTimeout, Int32 >> writeTimeout, Int32 readBufferSize, Int32 writeBufferSize) [0x0001e] in >> /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:36 >> >> at (wrapper remoting-invoke-with-check) >> System.IO.Ports.SerialPortStream:.ctor >> (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int) >> at System.IO.Ports.SerialPort.Open () [0x00078] in >> /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPort.cs:563 >> at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:Open >> () >> at WindowsCrash.Program.Main (System.String[] args) [0x00000] >> >> >> On Tue, Apr 7, 2009 at 1:39 PM, trampster > trampster at gmail.com>> wrote: >> >> >> it appears that calling System.IO.SerialPort.BytesToRead closes my >> application when runing on windows using mono 2.4. The following code >> reproduces the problem. No error message or exception seems to be >> generated >> it just closes. >> >> >> using System.IO.Ports; >> using System; >> >> namespace ConsoleApplication1 >> { >> class Program >> { >> static void Main(string[] args) >> { >> SerialPort serialPort = new SerialPort("Com4", 19200); >> serialPort.Open(); >> Console.WriteLine("before"); >> int bytesToRead = serialPort.BytesToRead; >> Console.WriteLine("after"); >> } >> } >> } >> >> My questions are as follows. >> 1. I'm I doing something wrong, (the code works when run on dot net) >> 2. Does this work on the linux build? >> >> I raised a bug https://bugzilla.novell.com/show_bug.cgi?id=490910 >> but it is not getting any activity. >> I am very interested in getting my coding running on mono, and was >> under the >> impression that all this .net 2.0 stuff was implemented and >> stable. Was I >> wrong? >> -- >> View this message in context: >> >> http://www.nabble.com/System.IO.SerialPort.BytesToRead-closes-program-tp22927258p22927258.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> >> >> -- >> Mark >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 > > -- Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090408/28a0c113/attachment.html From trampster at gmail.com Wed Apr 8 04:53:27 2009 From: trampster at gmail.com (Daniel) Date: Wed, 08 Apr 2009 20:53:27 +1200 Subject: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead closes program In-Reply-To: References: <49DC63F1.2010205@gmail.com> Message-ID: <49DC6607.7000108@gmail.com> You can use. System.IO.Ports.SerialPort.GetPortNames() to find what ports are available on your PC, just pick one Cheers, Daniel Mark de Bruijn wrote: > Would be good if you supply a example which does work anywhere, it's > hard to test for me, because I don't have the knowledge to get Open() > to work. > > On Wed, Apr 8, 2009 at 10:44 AM, Daniel > wrote: > > > > > ---------- Forwarded message ---------- > From: Daniel > > To: Mark de Bruijn > > Date: Wed, 08 Apr 2009 20:41:18 +1200 > Subject: Re: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead > closes program > Thanks for trying but your code threw the exception on Open() not > on accessing BytesToRead. Most likely because you don't have a "Com4". > > I do have a "Com4" and Open works it's calling BytesToRead that > causes my program to close. > > Any more ideas? > > Cheers, > Daniel > > > Mark de Bruijn wrote: > > Compiled using gmcs on Ubuntu, getting an exception, no crash. > Mono C# compiler version 2.0.1.0 > Mono JIT compiler version 2.0.1 (tarball) > Same results on: > Mono C# compiler version 2.4.0.0 > Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130414 > za mrt 28 17:21:49 CET 2009) > > LANG=C mono --debug ./WindowsCrash.exe: > > Unhandled Exception: System.IO.IOException: No such file or > directory > at System.IO.Ports.SerialPortStream.ThrowIOException () > [0x00012] in > /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:299 > > at System.IO.Ports.SerialPortStream..ctor (System.String > portName, Int32 baudRate, Int32 dataBits, Parity parity, > StopBits stopBits, Boolean dtrEnable, Boolean rtsEnable, > Handshake handshake, Int32 readTimeout, Int32 writeTimeout, > Int32 readBufferSize, Int32 writeBufferSize) [0x0001e] in > /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:36 > > at (wrapper remoting-invoke-with-check) > System.IO.Ports.SerialPortStream:.ctor > (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int) > at System.IO.Ports.SerialPort.Open () [0x00078] in > /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPort.cs:563 > > at (wrapper remoting-invoke-with-check) > System.IO.Ports.SerialPort:Open () > at WindowsCrash.Program.Main (System.String[] args) [0x00000] > > > On Tue, Apr 7, 2009 at 1:39 PM, trampster >> wrote: > > > it appears that calling System.IO.SerialPort.BytesToRead > closes my > application when runing on windows using mono 2.4. The > following code > reproduces the problem. No error message or exception seems > to be > generated > it just closes. > > > using System.IO.Ports; > using System; > > namespace ConsoleApplication1 > { > class Program > { > static void Main(string[] args) > { > SerialPort serialPort = new SerialPort("Com4", 19200); > serialPort.Open(); > Console.WriteLine("before"); > int bytesToRead = serialPort.BytesToRead; > Console.WriteLine("after"); > } > } > } > > My questions are as follows. > 1. I'm I doing something wrong, (the code works when run on > dot net) > 2. Does this work on the linux build? > > I raised a bug > https://bugzilla.novell.com/show_bug.cgi?id=490910 > but it is not getting any activity. > I am very interested in getting my coding running on mono, > and was > under the > impression that all this .net 2.0 stuff was implemented and > stable. Was I > wrong? > -- > View this message in context: > > http://www.nabble.com/System.IO.SerialPort.BytesToRead-closes-program-tp22927258p22927258.html > Sent from the Mono - General mailing list archive at > Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > -- > Mark > ------------------------------------------------------------------------ > > _______________________________________________ > 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 > > > > > -- > Mark From kramieb at gmail.com Wed Apr 8 05:09:24 2009 From: kramieb at gmail.com (Mark de Bruijn) Date: Wed, 8 Apr 2009 11:09:24 +0200 Subject: [Mono-list] Fwd: Fwd: System.IO.SerialPort.BytesToRead closes program In-Reply-To: References: <49DC63F1.2010205@gmail.com> <49DC6607.7000108@gmail.com> Message-ID: It runs fine now, no error. So yeah, windows side bug. On Wed, Apr 8, 2009 at 10:53 AM, Daniel wrote: > You can use. > System.IO.Ports.SerialPort.GetPortNames() > to find what ports are available on your PC, just pick one > > Cheers, > Daniel > > Mark de Bruijn wrote: > >> Would be good if you supply a example which does work anywhere, it's hard >> to test for me, because I don't have the knowledge to get Open() to work. >> >> On Wed, Apr 8, 2009 at 10:44 AM, Daniel > trampster at gmail.com>> wrote: >> >> >> >> >> ---------- Forwarded message ---------- >> From: Daniel > >> To: Mark de Bruijn > >> Date: Wed, 08 Apr 2009 20:41:18 +1200 >> Subject: Re: [Mono-list] Fwd: System.IO.SerialPort.BytesToRead >> closes program >> Thanks for trying but your code threw the exception on Open() not >> on accessing BytesToRead. Most likely because you don't have a "Com4". >> >> I do have a "Com4" and Open works it's calling BytesToRead that >> causes my program to close. >> >> Any more ideas? >> >> Cheers, >> Daniel >> >> >> Mark de Bruijn wrote: >> >> Compiled using gmcs on Ubuntu, getting an exception, no crash. >> Mono C# compiler version 2.0.1.0 >> Mono JIT compiler version 2.0.1 (tarball) >> Same results on: >> Mono C# compiler version 2.4.0.0 >> Mono JIT compiler version 2.4 (/branches/mono-2-4/mono r130414 >> za mrt 28 17:21:49 CET 2009) >> >> LANG=C mono --debug ./WindowsCrash.exe: >> >> Unhandled Exception: System.IO.IOException: No such file or >> directory >> at System.IO.Ports.SerialPortStream.ThrowIOException () >> [0x00012] in >> >> /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:299 >> >> at System.IO.Ports.SerialPortStream..ctor (System.String >> portName, Int32 baudRate, Int32 dataBits, Parity parity, >> StopBits stopBits, Boolean dtrEnable, Boolean rtsEnable, >> Handshake handshake, Int32 readTimeout, Int32 writeTimeout, >> Int32 readBufferSize, Int32 writeBufferSize) [0x0001e] in >> >> /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPortStream.cs:36 >> >> at (wrapper remoting-invoke-with-check) >> System.IO.Ports.SerialPortStream:.ctor >> >> (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int) >> at System.IO.Ports.SerialPort.Open () [0x00078] in >> >> /build/buildd/mono-2.0.1/mcs/class/System/System.IO.Ports/SerialPort.cs:563 >> >> at (wrapper remoting-invoke-with-check) >> System.IO.Ports.SerialPort:Open () >> at WindowsCrash.Program.Main (System.String[] args) [0x00000] >> >> >> On Tue, Apr 7, 2009 at 1:39 PM, trampster > > >> >> wrote: >> >> >> it appears that calling System.IO.SerialPort.BytesToRead >> closes my >> application when runing on windows using mono 2.4. The >> following code >> reproduces the problem. No error message or exception seems >> to be >> generated >> it just closes. >> >> >> using System.IO.Ports; >> using System; >> >> namespace ConsoleApplication1 >> { >> class Program >> { >> static void Main(string[] args) >> { >> SerialPort serialPort = new SerialPort("Com4", 19200); >> serialPort.Open(); >> Console.WriteLine("before"); >> int bytesToRead = serialPort.BytesToRead; >> Console.WriteLine("after"); >> } >> } >> } >> >> My questions are as follows. >> 1. I'm I doing something wrong, (the code works when run on >> dot net) >> 2. Does this work on the linux build? >> >> I raised a bug >> https://bugzilla.novell.com/show_bug.cgi?id=490910 >> but it is not getting any activity. >> I am very interested in getting my coding running on mono, >> and was >> under the >> impression that all this .net 2.0 stuff was implemented and >> stable. Was I >> wrong? >> -- >> View this message in context: >> >> http://www.nabble.com/System.IO.SerialPort.BytesToRead-closes-program-tp22927258p22927258.html >> Sent from the Mono - General mailing list archive at >> Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> >> > > >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> >> >> -- Mark >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 >> >> >> >> >> -- >> Mark >> > -- Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090408/e95462a9/attachment-0001.html From nabble at jupe.nl Wed Apr 8 10:54:25 2009 From: nabble at jupe.nl (Jupe) Date: Wed, 8 Apr 2009 07:54:25 -0700 (PDT) Subject: [Mono-list] Cairo In-Reply-To: <1235219496.9502.9.camel@djmia-hp-peter> References: <1235219496.9502.9.camel@djmia-hp-peter> Message-ID: <22952296.post@talk.nabble.com> Same problem here. Files should not be necessary. With System.Drawing (gdi+) I used the Image object, but I want to get rid of gdi+. Is it possible to use the Data property and convert the data to png? -- View this message in context: http://www.nabble.com/Cairo-tp22135584p22952296.html Sent from the Mono - General mailing list archive at Nabble.com. From gonzalo.mono at gmail.com Thu Apr 9 02:36:13 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Thu, 09 Apr 2009 02:36:13 -0400 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <49DC5F6F.2070401@wingsofdeath.nu> References: <49DC5F6F.2070401@wingsofdeath.nu> Message-ID: <1239258973.1045.4.camel@lalo-laptop> On Wed, 2009-04-08 at 10:25 +0200, Peter Hagen wrote: [...] > So it looks like that mod-mono is monitoring the root of the website, > and triggers a reload of the website on every change on that directory. > But this can't be right. Normally it only triggers on bin and web.config. That is exactly what happens. There was a bug the inotify-based FileSystemWathcer that was fixed after 2.4 was released. As a workaround, may be setting MONO_MANAGED_WATCHER=1 should work for you while you wait for 2.4.1 -Gonzalo From peter at wingsofdeath.nu Thu Apr 9 05:18:55 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Thu, 09 Apr 2009 11:18:55 +0200 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <1239258973.1045.4.camel@lalo-laptop> References: <49DC5F6F.2070401@wingsofdeath.nu> <1239258973.1045.4.camel@lalo-laptop> Message-ID: <49DDBD7F.5090709@wingsofdeath.nu> Thanx Gonzalo that seems to work. I do have the feeling the website is slower now, but that could just the connection. Is it also possible to completely turn of the file watching? Cheers Peter Gonzalo Paniagua Javier wrote: > On Wed, 2009-04-08 at 10:25 +0200, Peter Hagen wrote: > [...] >> So it looks like that mod-mono is monitoring the root of the website, >> and triggers a reload of the website on every change on that directory. >> But this can't be right. Normally it only triggers on bin and web.config. > > That is exactly what happens. There was a bug the inotify-based > FileSystemWathcer that was fixed after 2.4 was released. > > As a workaround, may be setting MONO_MANAGED_WATCHER=1 should work for > you while you wait for 2.4.1 > > -Gonzalo > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From rborowik at hsz-t.ch Wed Apr 8 15:00:28 2009 From: rborowik at hsz-t.ch (RobertHSZ) Date: Wed, 8 Apr 2009 12:00:28 -0700 (PDT) Subject: [Mono-list] Trying to run DonNetNuke on MONO Message-ID: <22957343.post@talk.nabble.com> Hello there I also posted a similar thread on the DotNetNuke Forum. I'm trying to run DotNetNuke on MONO. It would be something like that, instead of using: Windows -> would be for example Suse Linux 11.0 (Mono already as package included) IIS -> would be Apache with ASP.Net modules OR XSP (a standalone ASP.Net Web-Service) SQL-Server -> would be MySql (with the MySql Connector) .Net ability -> would be of course the MONO-Project itself What do you think about it? Is there at all any interest for such a project? However I made some progress in it. I tried many things to run DNN on Mono, but I don't think that it really would work so easily. One of the attempt went like this: -------------------------------------------------------------------------------------------------------------------- DNN begining from zero and build it up step by step. I modyfield the default.aspx.vb that much that no methods would be called, just to see if DNN and MONO gets all dependencies from the Default.aspx. so in my www folder on Linux there were absolut the basics: Default.aspx Default.aspx.vb (mpdyfied to a minimum, no methods are called) web.config (modyfied to a minimum, no appSetting, no connection Strings...) bin (empty folder) 1. So I startet xps2(a standalone webservice to run ASP.Net 2.0 on Mono). on the Linux Maschine and startet the brower on the localhost. 2. xsp2 started to compile 3. Parser Error Message: Assembly DotNetNuke not found -> So I copied the DotNetnuke.dll into the bin folder 4. xps2 restarted 5. xps2 next thing was missing or could load or assembly DotNetNuke.Services.Syndication, -> DotNetNuke.Services.Syndication.dll copyed into bin folder 6.Could not load file or assembly 'CountryListBox -> CountryListBox.dll copyed into bin folder 7.Could not load file or assembly 'DotNetNuke.WebControls -> DotNetNuke.WebControls.dll copyed into bin folder 8. Could not load file or assembly DotNetNuke.WebUtility -> DotNetNuke.WebUtility.dll copyed into bin folder 9. after that I got this error Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: /tmp/root-temp-aspnet-0/2f1c3fc8/App_Web_1580aaa0_1.vb(12,18) : warning VBNC99998: Option Strict Off will probably fail. /tmp/root-temp-aspnet-0/2f1c3fc8/App_Web_1580aaa0_1.vb(193,1) : error VBNC30037: Symbol is not valid. /tmp/root-temp-aspnet-0/2f1c3fc8/App_Web_1580aaa0_1.vb(201,1) : error VBNC30037: Symbol is not valid. Source Error: Line 10: Line 11: Option Explicit On Line 12: Option Strict Off Line 13: Line 14: So I stuck here again... what I found out about this problem is on the mono site, that the support for late-binding, Option Strict Off / Option Explicit Off is very limited (this is much more work and will come gradually) http://www.mono-project.com/Visual_Basic Versions are: -------------------------------------------------------------------------------------- Linux Mono/XSP2 Mono Version: 2.0.50727.42 ASP.Net Version: 2.0.50727.42 -------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- Windows / .Net Framework Microsoft .Net Framework Version:2.0.50727.3074 ASP.Net Version:2.0.50727.3074 -------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------- before this attempt I tried some diffrent attempt like to copy the hole inetpub (standard DNN folder after created a project with the Web-Developer), but there is of course some other problems like the Database (data-provider) but the xsp2 compilation got never so far to try to connect the Database for the Database I know there is a solution like from the devart.com they implement a MySQL Connector for 4.7 but so it would be one point solved to port DNN on Mono -------------------------------------------------------------------------------------------------------------------- I think running DNN on Mono is theoretical possible, but running it real there are still some difficulties. this is just an information for you, but if you know something about it, would be glad to hear it. regards Robert -- View this message in context: http://www.nabble.com/Trying-to-run-DonNetNuke-on-MONO-tp22957343p22957343.html Sent from the Mono - General mailing list archive at Nabble.com. From fedemi1977 at yahoo.com Thu Apr 9 05:35:27 2009 From: fedemi1977 at yahoo.com (fedemi1977) Date: Thu, 9 Apr 2009 02:35:27 -0700 (PDT) Subject: [Mono-list] Mono Migration Analizer 2.4 - Lot of warnings Message-ID: <22967489.post@talk.nabble.com> hello Everybody, I delveloped an Application Using MS Visual Basic Express Edition and I'd like to run my application in a Linux Environment soon. So, everytime a new Mono version is released, I run Mono Migration Analizer to check for incompatible code between environments. Until 2.2. version warnings were very few (such as System.Security.WindowsIdentity class, marked as 'Not implemented jet'). When I run 2.4 version of migration tool analizer I found 438 methods still missing in Mono such as Split, Ubound and Trim string functions. Strings.Split (string, string, int, CompareMethod) int Information.UBound (Array, int) string Strings.Trim (string) I've never seen so many warnings before 2.4 version was released. So, what is the problem.. Was a lot of function dropped in 2.4 version or Mono Migration Analizer has some bugs that reports false positives? I Can't still run my application on Linux because I've to correct some P/Invokes , so at the moment I can only use Mono Migration Analizer for my tests. Regards Federico M. -- View this message in context: http://www.nabble.com/Mono-Migration-Analizer-2.4---Lot-of-warnings-tp22967489p22967489.html Sent from the Mono - General mailing list archive at Nabble.com. From cougarman at gmail.com Thu Apr 9 08:40:13 2009 From: cougarman at gmail.com (oneworld99) Date: Thu, 9 Apr 2009 05:40:13 -0700 (PDT) Subject: [Mono-list] Using VS 2008 to develop Mono app Message-ID: <22970100.post@talk.nabble.com> Hi. Can we use Visual Studio 2008 to do Mono development for a Solaris system? Can you point me to some resources on this? Thanks. -- View this message in context: http://www.nabble.com/Using-VS-2008-to-develop-Mono-app-tp22970100p22970100.html Sent from the Mono - General mailing list archive at Nabble.com. From monkey at jpobst.com Thu Apr 9 10:18:10 2009 From: monkey at jpobst.com (Jonathan Pobst) Date: Thu, 09 Apr 2009 09:18:10 -0500 Subject: [Mono-list] Mono Migration Analizer 2.4 - Lot of warnings In-Reply-To: <22967489.post@talk.nabble.com> References: <22967489.post@talk.nabble.com> Message-ID: <49DE03A2.90308@jpobst.com> What happens is I generate the MoMA info for each release from one of the early previews (because we don't add/remove methods once we begin the preview process). The early preview I used this time had a bug where Microsoft.VisualBasic was not being included in Mono. Therefore, MoMA is going to report everything in Microsoft.VisualBasic as being missing. I will try to get updated definition files posted today. You should be able just use "Check for updated definitions" in MoMA, and it will download and use them. Thank you for finding and reporting this, and I apologize for the inconvenience! Jonathan fedemi1977 wrote: > hello Everybody, > > I delveloped an Application Using MS Visual Basic Express Edition and I'd > like to run my application in a Linux Environment soon. > So, everytime a new Mono version is released, I run Mono Migration Analizer > to check for incompatible code between environments. > Until 2.2. version warnings were very few (such as > System.Security.WindowsIdentity class, marked as 'Not implemented jet'). > > When I run 2.4 version of migration tool analizer I found 438 methods still > missing in Mono such as > Split, Ubound and Trim string functions. > > Strings.Split (string, string, int, CompareMethod) > int Information.UBound (Array, int) > string Strings.Trim (string) > > I've never seen so many warnings before 2.4 version was released. So, what > is the problem.. > > Was a lot of function dropped in 2.4 version or Mono Migration Analizer has > some bugs that reports false positives? > > I Can't still run my application on Linux because I've to correct some > P/Invokes , so at the moment I can only use Mono Migration Analizer for my > tests. > > Regards > Federico M. From monkey at jpobst.com Thu Apr 9 13:14:47 2009 From: monkey at jpobst.com (Jonathan Pobst) Date: Thu, 09 Apr 2009 12:14:47 -0500 Subject: [Mono-list] Mono Migration Analizer 2.4 - Lot of warnings In-Reply-To: <49DE03A2.90308@jpobst.com> References: <22967489.post@talk.nabble.com> <49DE03A2.90308@jpobst.com> Message-ID: <49DE2D07.6060808@jpobst.com> The new definitions should now be available from "Check for newer version". Jonathan Jonathan Pobst wrote: > What happens is I generate the MoMA info for each release from one of > the early previews (because we don't add/remove methods once we begin > the preview process). > > The early preview I used this time had a bug where Microsoft.VisualBasic > was not being included in Mono. Therefore, MoMA is going to report > everything in Microsoft.VisualBasic as being missing. > > I will try to get updated definition files posted today. You should be > able just use "Check for updated definitions" in MoMA, and it will > download and use them. > > Thank you for finding and reporting this, and I apologize for the > inconvenience! > > Jonathan > > > fedemi1977 wrote: >> hello Everybody, >> >> I delveloped an Application Using MS Visual Basic Express Edition and I'd >> like to run my application in a Linux Environment soon. >> So, everytime a new Mono version is released, I run Mono Migration Analizer >> to check for incompatible code between environments. >> Until 2.2. version warnings were very few (such as >> System.Security.WindowsIdentity class, marked as 'Not implemented jet'). >> >> When I run 2.4 version of migration tool analizer I found 438 methods still >> missing in Mono such as >> Split, Ubound and Trim string functions. >> >> Strings.Split (string, string, int, CompareMethod) >> int Information.UBound (Array, int) >> string Strings.Trim (string) >> >> I've never seen so many warnings before 2.4 version was released. So, what >> is the problem.. >> >> Was a lot of function dropped in 2.4 version or Mono Migration Analizer has >> some bugs that reports false positives? >> >> I Can't still run my application on Linux because I've to correct some >> P/Invokes , so at the moment I can only use Mono Migration Analizer for my >> tests. >> >> Regards >> Federico M. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From cdhowie at gmail.com Thu Apr 9 20:55:19 2009 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 9 Apr 2009 20:55:19 -0400 Subject: [Mono-list] OnDeserialization problem In-Reply-To: <22663867.post@talk.nabble.com> References: <22234369.post@talk.nabble.com> <22663867.post@talk.nabble.com> Message-ID: <3d2f29dc0904091755r6871369cycaedd54e1abe1508@mail.gmail.com> On Mon, Mar 23, 2009 at 12:35 PM, Dave Null wrote: > BTW... What is the preferred way to achieve this kind of stuff ? > > 1) using IDeserializationCallback interface and implementing > OnDeserialization() method, as i've done above > 2) or, simply using [OnDeserializated] attribute as in: I prefer the first method since using the attribute requires (IIRC) a public method, which is unsightly and can "poison" your API with superfluous methods. If you use the interface you can implement the method explicitly (you do so implicitly, so it still show up public). This does not prevent other developers from using that method, but it does require them to first cast to the interface type. If you want to allow this method to be overridden (you seem to based on the virtual keyword) then you can do something like this: class Foo : IDeserializationCallback { void IDeserializationCallback.OnDeserialization(object sender) { OnDeserialization(sender); } protected virtual void OnDeserialization(object sender) { } } This gets all of the deserialization-related methods out of the public API, while still allowing derived classes to override the deserialization hook. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From robertj at gmx.net Fri Apr 10 05:49:25 2009 From: robertj at gmx.net (Robert Jordan) Date: Fri, 10 Apr 2009 11:49:25 +0200 Subject: [Mono-list] OnDeserialization problem In-Reply-To: <3d2f29dc0904091755r6871369cycaedd54e1abe1508@mail.gmail.com> References: <22234369.post@talk.nabble.com> <22663867.post@talk.nabble.com> <3d2f29dc0904091755r6871369cycaedd54e1abe1508@mail.gmail.com> Message-ID: Chris Howie wrote: > On Mon, Mar 23, 2009 at 12:35 PM, Dave Null wrote: >> BTW... What is the preferred way to achieve this kind of stuff ? >> >> 1) using IDeserializationCallback interface and implementing >> OnDeserialization() method, as i've done above >> 2) or, simply using [OnDeserializated] attribute as in: > > I prefer the first method since using the attribute requires (IIRC) a > public method, which is unsightly and can "poison" your API with > superfluous methods. They are not required to be public. Limiting those attributes to public would be against the purpose of serialization attributes. Robert From walt at waltdestler.com Thu Apr 9 18:23:09 2009 From: walt at waltdestler.com (holyfuzz) Date: Thu, 9 Apr 2009 15:23:09 -0700 (PDT) Subject: [Mono-list] Re gular expression inconsistency between Mono 2.4 and .Net Message-ID: <22980228.post@talk.nabble.com> I am having a problem where my regular expression is not properly matching a string in Mono 2.4 but *is* properly matching the string in .Net. Interestingly, this particular case worked fine in Mono 2.2, but not 2.0 or 2.4. Here is my regular expression: Regex re = new Regex(@"^\s*&?\s*([a-zA-Z0-9_-_]+|/|\^|~|\.|\.\.|\<(.*)\>|#)?\s*(/\s*([a-zA-Z0-9_-_]+|\^|\.\.|#)\s*)*/?\s*$"); And the string I am trying to match is: ../../Col1 To determine whether the string matches, I use the following code: Match m = re.Match(path); if(m.Success){do stuff} Since my regular expression is pretty complicated, I'll try to explain it in English: 1) The string may optionally start with an ampersand: & 2) There is then a series of one or more forward-slash-separated sequences... 3) Any sequence may be one of the following: 3a) A word containing letters, digits, or underscores. 3b) An up caret: ^ 3c) Two dots: .. 3d) A pound symbol: # 4) The very first sequence may in addition be the following: 4a) A forward-slash: / 4b) A tilde: ~ 4c) A single dot: . 4d) Any string of characters enclosed by <> brackets. 5) The string may optionally end with a forward-slash: / Thus my RE should, in theory, match my string ../../Col1 but on Mono 2.0 and 2.4 it does not, while on 2.2 and .Net it works fine. Is this a bug in Mono, or is there something wrong with my RE? In either case, is there a way I can fix my RE so that it works? Thanks! -- View this message in context: http://www.nabble.com/Regular-expression-inconsistency-between-Mono-2.4-and-.Net-tp22980228p22980228.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Fri Apr 10 12:52:34 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 10 Apr 2009 12:52:34 -0400 Subject: [Mono-list] Mono GUI designer issues.. In-Reply-To: <22738293.post@talk.nabble.com> References: <22738293.post@talk.nabble.com> Message-ID: <3d2f29dc0904100952j1e22b085td5e3a2f29062fab0@mail.gmail.com> On Sat, Mar 28, 2009 at 2:13 AM, digitalsoftware wrote: > I am new to mono. I was trying to write an software project in C#, but my > project is GUI based, so I have to rely on mono's gui designer. Well you see > the problem is, the grid container control, which I add to my form does not > allow me to precisely align my controls to the grid. I don't know what im > doing wrong, but it's quite annoying. I'm basically looking for a grid > system comparable to Visual Studio's. > > Also, when I resize my forms in the GUI Designer, and run the compiled > result. Guess what? The dimensions of what are set in the gui designer, DO > NOT match the actual compiled result. Leaving me in complete fusturation. > > Please help me, I am new to mono, and trying to follow the Linux route for > my software development. Are you adding a Fixed/Grid container to the window? If so, please not that for most applications *this is wrong*. GTK+ uses container-based layout, which means that instead of saying something like "here are three controls, align their tops and put their X coordinates at 10, 50, and 90" you say something like "divide the space in the window into three vertical regions, put a menu bar in the top and a status bar in the bottom, then divide the middle region into three horizontal regions..." etc. This approach is much better because it allows the layout engine to automatically position widgets on your window, even if it is resized. Plus if your users change their font size or something your layout doesn't go to hell -- the minimum widget sizes will increase with the font size and your layout will be retained. Look in particular at the VBox and HBox widgets. Just about /any/ visual layout can be achieved with those alone, and what can't usually can be with a Table too. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From kumpera at gmail.com Fri Apr 10 17:23:36 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 10 Apr 2009 18:23:36 -0300 Subject: [Mono-list] Re gular expression inconsistency between Mono 2.4 and .Net In-Reply-To: <22980228.post@talk.nabble.com> References: <22980228.post@talk.nabble.com> Message-ID: <8cca42d80904101423w454623b3g92a473b4cb2febad@mail.gmail.com> Please file a bug report on this. On Thu, Apr 9, 2009 at 7:23 PM, holyfuzz wrote: > > I am having a problem where my regular expression is not properly matching > a > string in Mono 2.4 but *is* properly matching the string in .Net. > Interestingly, this particular case worked fine in Mono 2.2, but not 2.0 or > 2.4. > > Here is my regular expression: > Regex re = new > > Regex(@"^\s*&?\s*([a-zA-Z0-9_-_]+|/|\^|~|\.|\.\.|\<(.*)\>|#)?\s*(/\s*([a-zA-Z0-9_-_]+|\^|\.\.|#)\s*)*/?\s*$"); > > And the string I am trying to match is: > ../../Col1 > > To determine whether the string matches, I use the following code: > Match m = re.Match(path); > if(m.Success){do stuff} > > Since my regular expression is pretty complicated, I'll try to explain it > in > English: > > 1) The string may optionally start with an ampersand: & > 2) There is then a series of one or more forward-slash-separated > sequences... > 3) Any sequence may be one of the following: > 3a) A word containing letters, digits, or underscores. > 3b) An up caret: ^ > 3c) Two dots: .. > 3d) A pound symbol: # > 4) The very first sequence may in addition be the following: > 4a) A forward-slash: / > 4b) A tilde: ~ > 4c) A single dot: . > 4d) Any string of characters enclosed by <> brackets. > 5) The string may optionally end with a forward-slash: / > > Thus my RE should, in theory, match my string > ../../Col1 > but on Mono 2.0 and 2.4 it does not, while on 2.2 and .Net it works fine. > > Is this a bug in Mono, or is there something wrong with my RE? In either > case, is there a way I can fix my RE so that it works? > > Thanks! > -- > View this message in context: > http://www.nabble.com/Regular-expression-inconsistency-between-Mono-2.4-and-.Net-tp22980228p22980228.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090410/31ad60ba/attachment.html From gonzalo.mono at gmail.com Sat Apr 11 01:37:54 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Sat, 11 Apr 2009 01:37:54 -0400 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <49DDBD7F.5090709@wingsofdeath.nu> References: <49DC5F6F.2070401@wingsofdeath.nu> <1239258973.1045.4.camel@lalo-laptop> <49DDBD7F.5090709@wingsofdeath.nu> Message-ID: <1239428274.31083.18.camel@lalo-laptop> On Thu, 2009-04-09 at 11:18 +0200, Peter Hagen wrote: > Thanx Gonzalo > > that seems to work. I do have the feeling the website is slower now, but > that could just the connection. Is it also possible to completely turn > of the file watching? It's not possible to turn of file watching. If you're not afraid of compiling from sources, I would just checkout the sources/branches/mono-2-4/ branch from svn and get the new System.dll with the fix. You can just replace the one in the gac with the new one. -Gonzalo From peter at wingsofdeath.nu Sat Apr 11 13:37:16 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Sat, 11 Apr 2009 19:37:16 +0200 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <1239428274.31083.18.camel@lalo-laptop> References: <49DC5F6F.2070401@wingsofdeath.nu> <1239258973.1045.4.camel@lalo-laptop> <49DDBD7F.5090709@wingsofdeath.nu> <1239428274.31083.18.camel@lalo-laptop> Message-ID: <1847EDFE-14BD-4FE6-AA36-29D95FDBD39C@wingsofdeath.nu> Hi Gonzalo thanx. I allready build Mono from source, so thats no problem. I did however check out mono from svn like you said: svn co svn://anonsvn.mono-project.com/source/branches/mono-2-4 and added system.dll to the gac: gacutil -i ./mono-2-4/mcs/class/lib/net_1_1/System.dll but its still aborts the threads. Is this branche the right one? or is this by accident the office branch of 2.4, and not the newer one? Cheers Peter On Apr 11, 2009, at 7:37 AM, Gonzalo Paniagua Javier wrote: > On Thu, 2009-04-09 at 11:18 +0200, Peter Hagen wrote: >> Thanx Gonzalo >> >> that seems to work. I do have the feeling the website is slower >> now, but >> that could just the connection. Is it also possible to completely >> turn >> of the file watching? > > It's not possible to turn of file watching. > > If you're not afraid of compiling from sources, I would just checkout > the sources/branches/mono-2-4/ branch from svn and get the new > System.dll with the fix. You can just replace the one in the gac with > the new one. > > -Gonzalo > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From gonzalo.mono at gmail.com Sat Apr 11 13:57:58 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Sat, 11 Apr 2009 13:57:58 -0400 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <1847EDFE-14BD-4FE6-AA36-29D95FDBD39C@wingsofdeath.nu> References: <49DC5F6F.2070401@wingsofdeath.nu> <1239258973.1045.4.camel@lalo-laptop> <49DDBD7F.5090709@wingsofdeath.nu> <1239428274.31083.18.camel@lalo-laptop> <1847EDFE-14BD-4FE6-AA36-29D95FDBD39C@wingsofdeath.nu> Message-ID: <1239472678.4588.12.camel@lalo-laptop> On Sat, 2009-04-11 at 19:37 +0200, Peter Hagen wrote: > Hi Gonzalo > > thanx. I allready build Mono from source, so thats no problem. I did > however check out mono from svn like you said: > > svn co svn://anonsvn.mono-project.com/source/branches/mono-2-4 > > and added system.dll to the gac: > > gacutil -i ./mono-2-4/mcs/class/lib/net_1_1/System.dll > > but its still aborts the threads. Is this branche the right one? or is > this by accident the office branch of 2.4, and not the newer one? If you're using mod-mono-server2 / xsp2 , the assembly is the one in lib/net_2_0... -Gonzalo From peter at wingsofdeath.nu Sat Apr 11 14:00:00 2009 From: peter at wingsofdeath.nu (Peter Hagen) Date: Sat, 11 Apr 2009 20:00:00 +0200 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <1239472678.4588.12.camel@lalo-laptop> References: <49DC5F6F.2070401@wingsofdeath.nu> <1239258973.1045.4.camel@lalo-laptop> <49DDBD7F.5090709@wingsofdeath.nu> <1239428274.31083.18.camel@lalo-laptop> <1847EDFE-14BD-4FE6-AA36-29D95FDBD39C@wingsofdeath.nu> <1239472678.4588.12.camel@lalo-laptop> Message-ID: <31571A94-ED17-4B1F-B0B3-D22CC2D61CC3@wingsofdeath.nu> Hi no, i still use the 1.1. I hope to port my code to 2.0 within a few months :) Cheers Peter On Apr 11, 2009, at 7:57 PM, Gonzalo Paniagua Javier wrote: > On Sat, 2009-04-11 at 19:37 +0200, Peter Hagen wrote: >> Hi Gonzalo >> >> thanx. I allready build Mono from source, so thats no problem. I did >> however check out mono from svn like you said: >> >> svn co svn://anonsvn.mono-project.com/source/branches/mono-2-4 >> >> and added system.dll to the gac: >> >> gacutil -i ./mono-2-4/mcs/class/lib/net_1_1/System.dll >> >> but its still aborts the threads. Is this branche the right one? or >> is >> this by accident the office branch of 2.4, and not the newer one? > > If you're using mod-mono-server2 / xsp2 , the assembly is the one in > lib/net_2_0... > > -Gonzalo > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From chuck.esterbrook at gmail.com Sat Apr 11 21:32:43 2009 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Sat, 11 Apr 2009 18:32:43 -0700 Subject: [Mono-list] Running "mono" out of CGI Message-ID: <94cdd26f0904111832k76d7712ala9471fd6baac1f2d@mail.gmail.com> On a Linux server (CentOS) running Apache 2.2.3, I have a mono.cgi script: #!/bin/bash echo 'Content-Type: text/html' echo '' /usr/local/bin/mono It runs find from the command line, producing: Content-Type: text/html Usage is: mono [options] program [program-options] Development: --aot Compiles the assembly to native code ... However, accessing it from a web browser gives an error: [Sat Apr 11 21:22:41 2009] [error] GThread-ERROR **: file gthread-posix.c: line 135 (): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, &sched)' [Sat Apr 11 21:22:41 2009] [error] aborting... [Sat Apr 11 21:22:41 2009] [error] /home/cl/web/public/cg/mono.cgi: line 4: 8336 Aborted /usr/local/bin/mono I have a Python .cgi script in the same directory that works fine. The perms and file ownership on mono.cgi are correct. I'm using Mono 2.4 built and installed today from the source tar ball with: ./configure --prefix=/usr/local make make install Mono is working fine from the command line. Any ideas what the problem could be? -Chuck From chuck.esterbrook at gmail.com Sat Apr 11 21:34:38 2009 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Sat, 11 Apr 2009 18:34:38 -0700 Subject: [Mono-list] Running "mono" out of CGI In-Reply-To: <94cdd26f0904111832k76d7712ala9471fd6baac1f2d@mail.gmail.com> References: <94cdd26f0904111832k76d7712ala9471fd6baac1f2d@mail.gmail.com> Message-ID: <94cdd26f0904111834s6a75bdf1nf030f41909c7a104@mail.gmail.com> Here is the file output from "configure" if that matters: mcs source: $(top_srcdir)/mcs olive source: GC: included TLS: __thread SIGALTSTACK: yes Engine: Building and using the JIT 2.0 Beta: yes 2.1 Alpha: yes JNI support: IKVM Native libgdiplus: assumed to be installed zlib: system zlib oprofile: no BigArrays: no DTrace: no -Chuck From mike at trausch.us Sat Apr 11 01:06:22 2009 From: mike at trausch.us (Michael B. Trausch) Date: Sat, 11 Apr 2009 01:06:22 -0400 Subject: [Mono-list] Mono 2.4: "The assembly was not found in the Global Assembly Cache" Message-ID: <20090411010622.0b34bdfb@zest.trausch.us> Hello, I am attempting to setup Mono 2.4 on a server so that I can use ASP.NET applications on it. The instructions on the web page state that a standard "./configure && make && make install"-type process can be used, which makes sense, so this is what I have done. However, when I go to test the installation, I get: Saturday, 2009-Apr-11 at 00:59:54 - mbt at allspice - Linux v2.6.28.7 Debian Lenny:[0-43/1944-0]:mono-2.4> gacutil -l ** (/usr/local/lib/mono/2.0/gacutil.exe:32619): WARNING **: The following assembly referenced from /usr/local/lib/mono/2.0/gacutil.exe could not be loaded: Assembly: Mono.Security (assemblyref_index=1) Version: 2.0.0.0 Public Key: 0738eb9f132ed756 The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/usr/local/lib/mono/2.0/). ** (/usr/local/lib/mono/2.0/gacutil.exe:32619): WARNING **: Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. File name: 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' at Mono.Tools.Driver.LoadConfig (Boolean quiet) [0x00000] at Mono.Tools.Driver.Main (System.String[] args) [0x00000] When I check the GAC, the assembly is indeed present: Saturday, 2009-Apr-11 at 00:59:57 - mbt at allspice - Linux v2.6.28.7 Debian Lenny:[0-44/1945-1]:mono-2.4> find /usr/local -name 'Mono.Security.dll*' /usr/local/lib/mono/2.0/Mono.Security.dll /usr/local/lib/mono/1.0/Mono.Security.dll /usr/local/lib/mono/gac/Mono.Security/1.0.5000.0__0738eb9f132ed756/Mono.Security.dll /usr/local/lib/mono/gac/Mono.Security/1.0.5000.0__0738eb9f132ed756/Mono.Security.dll.mdb /usr/local/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll /usr/local/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll.mdb Any idea why Mono 2.4 isn't finding these assemblies? --- Mike From david_aiken at yahoo.com Sat Apr 11 17:06:03 2009 From: david_aiken at yahoo.com (fozzie) Date: Sat, 11 Apr 2009 14:06:03 -0700 (PDT) Subject: [Mono-list] teste.exe - mscorlib.dll not found Message-ID: <23005413.post@talk.nabble.com> hi all.. I got mono built on Windows using the MSVC 2005 environment, and the test_eglib seems to work (other than a few tests.. no big deal). The mono install worked fine (tested a small c# program with msc). Now i'm trying to get teste.exe to work. It complains: The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `C:\cygwin\download\mono\mono\msvc\Win32_De bug_eglib\lib\mono\1.0\mscorlib.dll' directory. The executable is in Win32_Debug_eglib. I suspect I'm not pointing the embedded mono code to the mono assemblies in a GAC properly. I notice that the code uses MONO_PATH when searching, but i don't believe this is the best way to fix the problem. I've also tried using "mkbundle <> <> --deps" to add the assemblies into the exe, but although it seems to work the problem is still there. Does someone know how to point embedded mono to its assemblies? Probably a FAQ :-((. thanks! -- View this message in context: http://www.nabble.com/teste.exe---mscorlib.dll-not-found-tp23005413p23005413.html Sent from the Mono - General mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Sat Apr 11 22:03:11 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 11 Apr 2009 22:03:11 -0400 Subject: [Mono-list] Mono 2.4: "The assembly was not found in the Global Assembly Cache" In-Reply-To: <20090411010622.0b34bdfb@zest.trausch.us> References: <20090411010622.0b34bdfb@zest.trausch.us> Message-ID: On Sat, Apr 11, 2009 at 1:06 AM, Michael B. Trausch wrote: > Hello, > > I am attempting to setup Mono 2.4 on a server so that I can use ASP.NET > applications on it. ?The instructions on the web page state that a > standard "./configure && make && make install"-type process can be > used, which makes sense, so this is what I have done. > > However, when I go to test the installation, I get: > > Saturday, 2009-Apr-11 at 00:59:54 - mbt at allspice - Linux v2.6.28.7 > Debian Lenny:[0-43/1944-0]:mono-2.4> gacutil -l > > ** (/usr/local/lib/mono/2.0/gacutil.exe:32619): WARNING **: The > following assembly referenced from /usr/local/lib/mono/2.0/gacutil.exe > could not be loaded: Assembly: ? Mono.Security ? ?(assemblyref_index=1) > Version: ? ?2.0.0.0 Public Key: 0738eb9f132ed756 > The assembly was not found in the Global Assembly Cache, a path listed > in the MONO_PATH environment variable, or in the location of the > executing assembly (/usr/local/lib/mono/2.0/). > > > ** (/usr/local/lib/mono/2.0/gacutil.exe:32619): WARNING **: Could not > load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=0738eb9f132ed756' or one of its dependencies. > > Unhandled Exception: System.IO.FileNotFoundException: Could not load > file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=0738eb9f132ed756' or one of its dependencies. File name: > 'Mono.Security, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=0738eb9f132ed756' at Mono.Tools.Driver.LoadConfig > (Boolean quiet) [0x00000] at Mono.Tools.Driver.Main (System.String[] > args) [0x00000] > > When I check the GAC, the assembly is indeed present: > > Saturday, 2009-Apr-11 at 00:59:57 - mbt at allspice - Linux v2.6.28.7 > Debian Lenny:[0-44/1945-1]:mono-2.4> find /usr/local -name > 'Mono.Security.dll*' > /usr/local/lib/mono/2.0/Mono.Security.dll > /usr/local/lib/mono/1.0/Mono.Security.dll > /usr/local/lib/mono/gac/Mono.Security/1.0.5000.0__0738eb9f132ed756/Mono.Security.dll > /usr/local/lib/mono/gac/Mono.Security/1.0.5000.0__0738eb9f132ed756/Mono.Security.dll.mdb > /usr/local/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll > /usr/local/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll.mdb > > Any idea why Mono 2.4 isn't finding these assemblies? Probably not the cause of your problem, but note that if you have a Mono from packages in /usr then installing Mono and related libraries from source to /usr/local is generally a bad idea. For a start, pkg-config has both /usr and /usr/local hardcoded as search paths, so compilations against either of the two Monos can pull in references from the other Mono, which don't then work at runtime. Please read http://www.mono-project.com/Parallel_Mono_Environments for more info. -- Michael Hutchinson http://mjhutchinson.com From david_aiken at yahoo.com Sun Apr 12 00:01:21 2009 From: david_aiken at yahoo.com (fozzie) Date: Sat, 11 Apr 2009 21:01:21 -0700 (PDT) Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: <23005413.post@talk.nabble.com> References: <23005413.post@talk.nabble.com> Message-ID: <23007974.post@talk.nabble.com> I managed to get past this problem by calling mono_set_dirs("C:\\Mono-2.4\\lib\\", "C:\\Mono-2.4\\etc"); in accordance with the "Embedding" instructions at http://mono-project.com/Embedding_Mono. I assume this is the correct way to do it in a production environment. Are there any instructions on including the Mono deliverables in a custom install so that they land in the right directories? -- View this message in context: http://www.nabble.com/teste.exe---mscorlib.dll-not-found-tp23005413p23007974.html Sent from the Mono - General mailing list archive at Nabble.com. From mike at trausch.us Sun Apr 12 00:01:58 2009 From: mike at trausch.us (Michael B. Trausch) Date: Sun, 12 Apr 2009 00:01:58 -0400 Subject: [Mono-list] [Solved] Mono 2.4: "The assembly was not found in the Global Assembly Cache" In-Reply-To: References: <20090411010622.0b34bdfb@zest.trausch.us> Message-ID: <20090412000158.72adfa46@zest.trausch.us> On Sat, 11 Apr 2009 22:03:11 -0400 Michael Hutchinson wrote: > Probably not the cause of your problem, but note that if you have a > Mono from packages in /usr then installing Mono and related libraries > from source to /usr/local is generally a bad idea. For a start, > pkg-config has both /usr and /usr/local hardcoded as search paths, so > compilations against either of the two Monos can pull in references > from the other Mono, which don't then work at runtime. Please read > http://www.mono-project.com/Parallel_Mono_Environments for more info. Hi, As it turns out, the problem was permissions. The whole of the Mono runtime environment was being installed with proper permissions, save for the GAC -- the GAC for some strange reason was being installed with proper owner permissions, but absolutely zero group and world permissions, resulting in Mono (when being run as a user) not finding the libraries in the GAC. This was a base Debian server install, without Debian's Mono installed (they are using _far_ too old a version for what I need). --- Mike -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090412/c1519343/attachment.bin From robertj at gmx.net Sun Apr 12 04:53:24 2009 From: robertj at gmx.net (Robert Jordan) Date: Sun, 12 Apr 2009 10:53:24 +0200 Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: <23007974.post@talk.nabble.com> References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> Message-ID: fozzie wrote: > I managed to get past this problem by calling > > mono_set_dirs("C:\\Mono-2.4\\lib\\", "C:\\Mono-2.4\\etc"); > > in accordance with the "Embedding" instructions at > http://mono-project.com/Embedding_Mono. I assume this is the correct way to > do it in a production environment. > > Are there any instructions on including the Mono deliverables in a custom > install so that they land in the right directories? If you provide the following minimal layout, mono_set_dirs () isn't necessary: bin\app-that-embeds-mono.exe bin\mono.dll bin\libgmodule-2.0-0.dll bin\libgthread-2.0-0.dll etc\mono\ <- copy of C:\Mono-2.4\etc\mono\ lib\mono\ <- copy of C:\Mono-2.4\lib\mono\ Robert From david_aiken at yahoo.com Sun Apr 12 13:12:56 2009 From: david_aiken at yahoo.com (fozzie) Date: Sun, 12 Apr 2009 10:12:56 -0700 (PDT) Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> Message-ID: <23012851.post@talk.nabble.com> I also want to support windows.. can you tell me what directories these correspond to there? -- View this message in context: http://www.nabble.com/teste.exe---mscorlib.dll-not-found-tp23005413p23012851.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Sun Apr 12 13:19:32 2009 From: robertj at gmx.net (Robert Jordan) Date: Sun, 12 Apr 2009 19:19:32 +0200 Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: <23012851.post@talk.nabble.com> References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> <23012851.post@talk.nabble.com> Message-ID: fozzie wrote: > I also want to support windows.. can you tell me what directories these > correspond to there? My advice was actually for Windows. From david_aiken at yahoo.com Sun Apr 12 15:39:18 2009 From: david_aiken at yahoo.com (fozzie) Date: Sun, 12 Apr 2009 12:39:18 -0700 (PDT) Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> <23012851.post@talk.nabble.com> Message-ID: <23014133.post@talk.nabble.com> I see.. so i create bin, lib, etc subdirs under my programs root directory, say. The only environment variable i have been using so far is MONO_DEPENDENCIES_PREFIX.. do i use this to point to my root or is there another way? -- View this message in context: http://www.nabble.com/teste.exe---mscorlib.dll-not-found-tp23005413p23014133.html Sent from the Mono - General mailing list archive at Nabble.com. From david_aiken at yahoo.com Sun Apr 12 17:22:08 2009 From: david_aiken at yahoo.com (fozzie) Date: Sun, 12 Apr 2009 14:22:08 -0700 (PDT) Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: <23014133.post@talk.nabble.com> References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> <23012851.post@talk.nabble.com> <23014133.post@talk.nabble.com> Message-ID: <23014865.post@talk.nabble.com> fozzie wrote: > > I see.. so i create bin, lib, etc subdirs under my programs root > directory, say. The only environment variable i have been using so far is > MONO_DEPENDENCIES_PREFIX.. do i use this to point to my root or is there > another way? > I would also like to reduce the size of the lib/mono folder (currently ~ 160Mb). Is there a minimal set of folders? I'm not sure if i need "boo" or "monodoc".. -- View this message in context: http://www.nabble.com/teste.exe---mscorlib.dll-not-found-tp23005413p23014865.html Sent from the Mono - General mailing list archive at Nabble.com. From gonzalo.mono at gmail.com Sun Apr 12 20:14:01 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Sun, 12 Apr 2009 20:14:01 -0400 Subject: [Mono-list] Mono 2.4 thread aborted In-Reply-To: <31571A94-ED17-4B1F-B0B3-D22CC2D61CC3@wingsofdeath.nu> References: <49DC5F6F.2070401@wingsofdeath.nu> <1239258973.1045.4.camel@lalo-laptop> <49DDBD7F.5090709@wingsofdeath.nu> <1239428274.31083.18.camel@lalo-laptop> <1847EDFE-14BD-4FE6-AA36-29D95FDBD39C@wingsofdeath.nu> <1239472678.4588.12.camel@lalo-laptop> <31571A94-ED17-4B1F-B0B3-D22CC2D61CC3@wingsofdeath.nu> Message-ID: <1239581641.31068.1.camel@lalo-laptop> On Sat, 2009-04-11 at 20:00 +0200, Peter Hagen wrote: > Hi > > no, i still use the 1.1. I hope to port my code to 2.0 within a few > months :) If this was caused by the problem I thought, the ChangeLog should have something from March 11th saying that the bug #484082 was fixed. If you're still getting the ThreadAbortedException, can you send the stack trace? -Gonzalo From david_aiken at yahoo.com Sun Apr 12 23:14:59 2009 From: david_aiken at yahoo.com (fozzie) Date: Sun, 12 Apr 2009 20:14:59 -0700 (PDT) Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: <23014865.post@talk.nabble.com> References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> <23012851.post@talk.nabble.com> <23014133.post@talk.nabble.com> <23014865.post@talk.nabble.com> Message-ID: <23017304.post@talk.nabble.com> It's ok.. for the teste project i kept the test.exe in the bin subdirectory then copied the lib and etc (large though they are) subdirectories into the same folder as bin. Then i set the debug working directory to the parent of all of these directories and added a Potentially Evil: mono_set_dirs("lib\\", "etc"); above: mono_config_parse (NULL); in teste.c - which looks like it's working.. thanks for your help! -- View this message in context: http://www.nabble.com/teste.exe---mscorlib.dll-not-found-tp23005413p23017304.html Sent from the Mono - General mailing list archive at Nabble.com. From jonpryor at vt.edu Mon Apr 13 10:35:39 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Mon, 13 Apr 2009 10:35:39 -0400 Subject: [Mono-list] teste.exe - mscorlib.dll not found In-Reply-To: <23014865.post@talk.nabble.com> References: <23005413.post@talk.nabble.com> <23007974.post@talk.nabble.com> <23012851.post@talk.nabble.com> <23014133.post@talk.nabble.com> <23014865.post@talk.nabble.com> Message-ID: <1239633339.8040.67.camel@lina> On Sun, 2009-04-12 at 14:22 -0700, fozzie wrote: > I would also like to reduce the size of the lib/mono folder (currently ~ > 160Mb). Is there a minimal set of folders? I'm not sure if i need "boo" or > "monodoc".. The minimal set of folders is: - lib/mono/PROFILE - PROFILE == 1.0, 2.0, etc., depending on what framework version you're targeting. - lib/mono/gac The other directories you see (lib/mono/monodoc/, etc.) are gacutil package directories. They can be removed...but at the cost of killing pkg-config .pc files (which usually use the package directory name instead of a full path into the GAC). Of course, if this is for an embedded environment, you won't care about pkg-config... However, the gacutil package directories are also small -- lib/mono/monodoc only contains a symlink, so removing it won't save you much space. The real users of space are lib/mono/PROFILE (12MB for 2.0, 6.1MB for 1.0) and lib/mono/gac (73MB for my ~fresh install), which contains the actual assemblies. Here is where you can really cut down on space -- for example, my install has *3* versions of System.dll: - lib/mono/gac/System/1.0.5000.0__b77a5c561934e089/System.dll - lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll - lib/mono/gac/System/2.0.5.0__7cec85d7bea7798e/System.dll These are for the 1.0, 2.0 and Silverlight profiles (respectively). Thus, if you're bundling your own Mono, and only need to support one profile...don't ship all three profiles, only ship the version you need. The same is true for most of the System.* assemblies within the GAC. Of course, the *easier* way to do this isn't to muck around within lib/mono/gac etc., it's to instead use the Mono Linker to get a minimal set of assemblies, and then just ship the linked version. http://www.mono-project.com/Linker http://www.go-mono.com/docs/index.aspx?tlink=11 at man%3amonolinker(1) - Jon From funkyfredmale at hotmail.com Mon Apr 13 13:40:21 2009 From: funkyfredmale at hotmail.com (monobug) Date: Mon, 13 Apr 2009 10:40:21 -0700 (PDT) Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: References: <22917944.post@talk.nabble.com> Message-ID: <23025852.post@talk.nabble.com> > 1.2.6 is hopelessly old. Support for newer classes is not complete > there I guess. Hmm.. there may have been some confusion in the version numbers. As I stated in the previous post, the version of the _ubuntu package_ I have is 1.2.6+dfsg-6ubuntu3. The mono version is 2.0. See more info here: http://packages.ubuntu.com/hardy/libmono-corlib2.0-cil I updated my apt-mirror over the weekend and confirmed this is the latest available version on Ubuntu Hardy Heron 8.04. Any idea if this is a genuine bug or a mis-configuration? Like I said, I'm hoping it's a mis-configuration... -stu Ji?? Z?rev?cky wrote: > > 2009/4/6 monobug : >> >> Any ideas as to what is going on here? >> > > 1.2.6 is hopelessly old. Support for newer classes is not complete > there I guess. > >> >> Note that I cannot update this ubuntu box easily. Any idea how this >> happened, and fixes beyond "just update via apt" would be appreciated. >> > > You can try using a local copy of System.Core.dll from newer Mono. I > have no experience in mixing different versions of libraries, though, > so I have no idea whether it will work. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/HashSet-appears-present-but-uslessly-broken-on-Ubuntu-tp22917944p23025852.html Sent from the Mono - General mailing list archive at Nabble.com. From alan.mcgovern at gmail.com Mon Apr 13 13:45:51 2009 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Mon, 13 Apr 2009 18:45:51 +0100 Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: <23025852.post@talk.nabble.com> References: <22917944.post@talk.nabble.com> <23025852.post@talk.nabble.com> Message-ID: <117799f00904131045pcfb5315o9c903734d785a8b3@mail.gmail.com> Hi, On Mon, Apr 13, 2009 at 6:40 PM, monobug wrote: > > > > 1.2.6 is hopelessly old. Support for newer classes is not complete > > there I guess. > > Hmm.. there may have been some confusion in the version numbers. As I > stated > in the previous post, the version of the _ubuntu package_ I have is > 1.2.6+dfsg-6ubuntu3. > The mono version is 2.0. Yes, and that version is quite old. You'll need something newer to utilise these new fancy features. Alan. > > > See more info here: > > http://packages.ubuntu.com/hardy/libmono-corlib2.0-cil > > I updated my apt-mirror over the weekend and confirmed this is the latest > available version on Ubuntu Hardy Heron 8.04. > > Any idea if this is a genuine bug or a mis-configuration? > > Like I said, I'm hoping it's a mis-configuration... > > -stu > > > Ji?? Z?rev?cky wrote: > > > > 2009/4/6 monobug : > >> > >> Any ideas as to what is going on here? > >> > > > > 1.2.6 is hopelessly old. Support for newer classes is not complete > > there I guess. > > > >> > >> Note that I cannot update this ubuntu box easily. Any idea how this > >> happened, and fixes beyond "just update via apt" would be appreciated. > >> > > > > You can try using a local copy of System.Core.dll from newer Mono. I > > have no experience in mixing different versions of libraries, though, > > so I have no idea whether it will work. > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/HashSet-appears-present-but-uslessly-broken-on-Ubuntu-tp22917944p23025852.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090413/18212d3a/attachment-0001.html From monkey at jpobst.com Mon Apr 13 14:04:10 2009 From: monkey at jpobst.com (Jonathan Pobst) Date: Mon, 13 Apr 2009 13:04:10 -0500 Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: <23025852.post@talk.nabble.com> References: <22917944.post@talk.nabble.com> <23025852.post@talk.nabble.com> Message-ID: <49E37E9A.2090406@jpobst.com> monobug wrote: > >> 1.2.6 is hopelessly old. Support for newer classes is not complete >> there I guess. > > Hmm.. there may have been some confusion in the version numbers. As I stated > in the previous post, the version of the _ubuntu package_ I have is > 1.2.6+dfsg-6ubuntu3. > The mono version is 2.0. It's kinda confusing, because mono uses version numbers that are similar to the .net framework it targets. In this case: - The 2.0 refers to the profile: the version of .Net that the assembly targets. This is the corlib that has the same features as .Net 2.0. - The 1.2.6 refers to the version of Mono. So there is a corlib 2.0 file in each mono version: 1.2.4, 1.2.5, 1.2.6, 1.9, 2.0, 2.2, 2.4, etc. Mono 1.2.6 was released on Dec 12, 2007, so it is quite old and probably does not have the features you want. Jonathan From zarevucky.jiri at gmail.com Mon Apr 13 13:59:48 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Mon, 13 Apr 2009 19:59:48 +0200 Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: <117799f00904131045pcfb5315o9c903734d785a8b3@mail.gmail.com> References: <22917944.post@talk.nabble.com> <23025852.post@talk.nabble.com> <117799f00904131045pcfb5315o9c903734d785a8b3@mail.gmail.com> Message-ID: 2009/4/13 Alan McGovern : > Hi, > > On Mon, Apr 13, 2009 at 6:40 PM, monobug wrote: >> >> >> > 1.2.6 is hopelessly old. Support for newer classes is not complete >> > there I guess. >> >> Hmm.. there may have been some confusion in the version numbers. As I >> stated >> in the previous post, the version of the _ubuntu package_ I have is >> 1.2.6+dfsg-6ubuntu3. >> The mono version is 2.0. > > > Yes, and that version is quite old. You'll need something newer to utilise > these new fancy features. > > Alan. > Not correct, actually. It's corlib 2.0, not mono 2.0. The package's version really is mono's version. If you don't believe me, check versions for all ubuntu releases here: http://packages.ubuntu.com/search?searchon=names&keywords=libmono-corlib From zarevucky.jiri at gmail.com Mon Apr 13 14:02:52 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Mon, 13 Apr 2009 20:02:52 +0200 Subject: [Mono-list] HashSet appears present but uslessly broken on Ubuntu In-Reply-To: References: <22917944.post@talk.nabble.com> <23025852.post@talk.nabble.com> <117799f00904131045pcfb5315o9c903734d785a8b3@mail.gmail.com> Message-ID: > > Not correct, actually. It's corlib 2.0, not mono 2.0. The package's > version really is mono's version. > > If you don't believe me, check versions for all ubuntu releases here: > http://packages.ubuntu.com/search?searchon=names&keywords=libmono-corlib > And just to be clear, the only release to include Mono 2.0 _will_ be Jaunty, which wasn't even released yet. From osorio.jean at hotmail.com Mon Apr 13 12:05:30 2009 From: osorio.jean at hotmail.com (JeanOsorio) Date: Mon, 13 Apr 2009 09:05:30 -0700 (PDT) Subject: [Mono-list] System.DirectoryServices Problem Message-ID: <23024427.post@talk.nabble.com> I have this code, to retrieve a user informacion --------------------------------------------------------------------------- string usuario = "josorio"; try{ DirectoryEntry de = new DirectoryEntry("LDAP://DOMAIN_DESCA", "user", "password", AuthenticationTypes.Secure); object obj = de.NativeObject; DirectorySearcher deSearch = new DirectorySearcher(); deSearch.SearchRoot = de; deSearch.Filter = "(samaccountname=" + usuario.Trim() + ")"; SearchResult results = deSearch.FindOne(); Console.WriteLine(de.Properties["department"].Value); Console.ReadLine(); } catch(Exception ex) { Console.WriteLine(ex); } -------------------------------------------------------------------------------------- But I get this exception: LdapException: (91) Connect Error System.Net.Sockets.SocketException: No such host is known at System.Net.Dns.GetHostByName (System.String hostName) [0x00038] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System/System.Net/Dns.cs:368 at System.Net.Sockets.TcpClient.Connect (System.String hostname, Int32 port) [0x00000] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System/System.Net.Sockets/TcpClient.cs:317 at System.Net.Sockets.TcpClient..ctor (System.String hostname, Int32 port) [0x00006] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System/System.Net.Sockets/TcpClient.cs:102 at Novell.Directory.Ldap.Connection.connect (System.String host, Int32 port, Int32 semaphoreId) [0x0018a] in /usr/src/packages/BUILD/mono-2.4/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap/Connection.cs:800 the same application works on microsoft framework, I'm working on opensuse, anybody can tell me if I have to do something to make this work??? -- View this message in context: http://www.nabble.com/System.DirectoryServices-Problem-tp23024427p23024427.html Sent from the Mono - General mailing list archive at Nabble.com. From yosi100 at gmail.com Mon Apr 13 12:11:06 2009 From: yosi100 at gmail.com (tooty) Date: Mon, 13 Apr 2009 09:11:06 -0700 (PDT) Subject: [Mono-list] get mac address using system.management Message-ID: <23024504.post@talk.nabble.com> hi all, i used to get mac address of Ethernet adapter under windows, using the following code: // Dim mc As System.Management.ManagementClass Dim mo As ManagementObject mc = New ManagementClass("Win32_NetworkAdapterConfiguration") Dim moc As ManagementObjectCollection = mc.GetInstances() For Each mo In moc If mo.Item("IPEnabled") = True Then ListBox1.Items.Add("MAC address " & mo.Item("MacAddress").ToString()) End If Next // now i have to do the same under Linux system. now, its obvious i wont find "Win32_NetworkAdapterConfiguration" under managementclass on Linux. so, can anyone tell me what is the wright method of managementclass that will let me get the network adapter properties? or any other way i should use for linux system? thnx in advance. -- View this message in context: http://www.nabble.com/get-mac-address-using-system.management-tp23024504p23024504.html Sent from the Mono - General mailing list archive at Nabble.com. From gonzalo.mono at gmail.com Mon Apr 13 17:17:11 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Mon, 13 Apr 2009 17:17:11 -0400 Subject: [Mono-list] get mac address using system.management In-Reply-To: <23024504.post@talk.nabble.com> References: <23024504.post@talk.nabble.com> Message-ID: <1239657431.7062.21.camel@lalo-laptop> On Mon, 2009-04-13 at 09:11 -0700, tooty wrote: > hi all, > i used to get mac address of Ethernet adapter under windows, using the > following code: > > // > Dim mc As System.Management.ManagementClass > Dim mo As ManagementObject > mc = New ManagementClass("Win32_NetworkAdapterConfiguration") > Dim moc As ManagementObjectCollection = mc.GetInstances() > For Each mo In moc > If mo.Item("IPEnabled") = True Then > ListBox1.Items.Add("MAC address " & > mo.Item("MacAddress").ToString()) > End If > Next > // > now i have to do the same under Linux system. > > now, its obvious i wont find "Win32_NetworkAdapterConfiguration" under > managementclass on Linux. > > so, can anyone tell me what is the wright method of managementclass that > will let me get the network adapter properties? It's better to send just one message to the two lists that separate messages. I already answered to the one in mono-devel saying: "You can use the classes in System.Net.NetworkInformation (see NetworkInterface.GetPhysicalAddress). This will work on MS.NET too." -Gonzalo From yosi100 at gmail.com Tue Apr 14 02:37:54 2009 From: yosi100 at gmail.com (tooty) Date: Mon, 13 Apr 2009 23:37:54 -0700 (PDT) Subject: [Mono-list] get mac address using system.management In-Reply-To: <1239657431.7062.21.camel@lalo-laptop> References: <23024504.post@talk.nabble.com> <1239657431.7062.21.camel@lalo-laptop> Message-ID: <23034001.post@talk.nabble.com> thank you gonzalo, the message didnt show up in this forum than i put it on the other one. :blush: Gonzalo Paniagua Javier-5 wrote: > > > It's better to send just one message to the two lists that separate > messages. I already answered to the one in mono-devel saying: > "You can use the classes in System.Net.NetworkInformation (see > NetworkInterface.GetPhysicalAddress). This will work on MS.NET too." > > -- View this message in context: http://www.nabble.com/get-mac-address-using-system.management-tp23024504p23034001.html Sent from the Mono - General mailing list archive at Nabble.com. From david_aiken at yahoo.com Tue Apr 14 14:10:24 2009 From: david_aiken at yahoo.com (fozzie) Date: Tue, 14 Apr 2009 11:10:24 -0700 (PDT) Subject: [Mono-list] GAC question Message-ID: <23044913.post@talk.nabble.com> hi all.. I'm getting a crash stack when i run the teste project with the test.cs sample: > mono.dll!mono_class_from_mono_type(_MonoType * type=0x00000013) Line 4711 + 0x3 bytes C mono.dll!ves_icall_get_parameter_info(_MonoMethod * method=0x01aee028, _MonoReflectionMethod * member=0x0012f864) Line 1644 + 0x18 bytes C 02203260() mono.dll!mono_get_lmf_addr() Line 2159 + 0xe bytes C 02203249() mono.dll!mono_thread_current() Line 1302 + 0xe bytes C mono.dll!mono_thread_interruption_checkpoint_request(int bypass_abort_protection=0) Line 3667 C 00000001() mono.dll!mono_thread_current() Line 1302 + 0xe bytes C The output is as follows: 'teste.exe': Loaded 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\teste.exe', Symbols loaded. 'teste.exe': Loaded 'C:\Windows\System32\ntdll.dll' 'teste.exe': Loaded 'C:\Windows\System32\kernel32.dll' 'teste.exe': Loaded 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\mono.dll', Symbols loaded. 'teste.exe': Loaded 'C:\Windows\System32\version.dll' 'teste.exe': Loaded 'C:\Windows\System32\msvcrt.dll' 'teste.exe': Loaded 'C:\Windows\System32\ws2_32.dll' 'teste.exe': Loaded 'C:\Windows\System32\advapi32.dll' 'teste.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' 'teste.exe': Loaded 'C:\Windows\System32\nsi.dll' 'teste.exe': Loaded 'C:\Windows\System32\psapi.dll' 'teste.exe': Loaded 'C:\Windows\System32\winmm.dll' 'teste.exe': Loaded 'C:\Windows\System32\user32.dll' 'teste.exe': Loaded 'C:\Windows\System32\gdi32.dll' 'teste.exe': Loaded 'C:\Windows\System32\ole32.dll' 'teste.exe': Loaded 'C:\Windows\System32\oleaut32.dll' 'teste.exe': Loaded 'C:\Windows\System32\oleacc.dll' 'teste.exe': Loaded 'C:\Windows\System32\shell32.dll' 'teste.exe': Loaded 'C:\Windows\System32\shlwapi.dll' 'teste.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded. 'teste.exe': Loaded 'C:\Windows\System32\imm32.dll' 'teste.exe': Loaded 'C:\Windows\System32\msctf.dll' 'teste.exe': Loaded 'C:\Windows\System32\lpk.dll' 'teste.exe': Loaded 'C:\Windows\System32\usp10.dll' 'teste.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll' 'teste.exe': Loaded 'ImageAtBase0x1d0000', No symbols loaded. 'teste.exe': Unloaded 'ImageAtBase0x1d0000' 'teste.exe': Loaded 'C:\Windows\System32\mscoree.dll' 'teste.exe': Loaded 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\test.exe', Binary was not built with debug information. 'teste.exe': Loaded 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\1.0\mscorlib.dll', Binary was not built with debug information. 'teste.exe': Loaded 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\gac\I18N\1.0.5000.0__0738eb9f132ed756\I18N.dll', Binary was not built with debug information. First-chance exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: Access violation reading location 0x00000017. Unhandled exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: Access violation reading location 0x00000017. The weird thing is that the program works when i rename the lib\mono\gac subdirectory to something else before running it. Can someone explain this behavior? An intermingling of windows and mono code, perhaps? thanks! -- View this message in context: http://www.nabble.com/GAC-question-tp23044913p23044913.html Sent from the Mono - General mailing list archive at Nabble.com. From gonzalo.mono at gmail.com Wed Apr 15 12:45:49 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Wed, 15 Apr 2009 12:45:49 -0400 Subject: [Mono-list] GO-MONO.COM is moving Message-ID: <1239813949.4549.24.camel@lalo-laptop> Folks, We are in the process of moving go-mono.com to a new machine. I've tried to make sure all the pages we host there work just fine and the transition is smooth. Anyway, if you see anything wrong with the server within the next few hours, join #mono at irc.gimpnet.org and let me know. Thanks. -Gonzalo From pedro.alvesjr at gmail.com Wed Apr 15 21:48:52 2009 From: pedro.alvesjr at gmail.com (Pedro Alves) Date: Wed, 15 Apr 2009 22:48:52 -0300 Subject: [Mono-list] Dock Panel Control (WinForms) for Mono Message-ID: Hi! Some time ago I saw something on the port the DockPanel Suite ( http://sourceforge.net/projects/dockpanelsuite) to Mono. Why say something about it? Is there a Dock component compatible with Mono WinForms? Thanks! Pedro, Brazil. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090415/ee747a98/attachment.html From ecanuto at gmail.com Wed Apr 15 21:56:44 2009 From: ecanuto at gmail.com (Everaldo Canuto) Date: Wed, 15 Apr 2009 22:56:44 -0300 Subject: [Mono-list] Dock Panel Control (WinForms) for Mono In-Reply-To: References: Message-ID: Hi Pedro, I worked on it, unfortunately some pinvokes used in DockPanel can't be emulated right now so the solution is to change DockPanel and replace all pinvoke calls by managed code. Everaldo. 2009/4/15 Pedro Alves : > Hi! > > > Some time ago I saw something on the port the DockPanel Suite > (http://sourceforge.net/projects/dockpanelsuite) to Mono. > Why say something about it? > > Is there a Dock component compatible with Mono WinForms? > > > Thanks! > > > > Pedro, > Brazil. > > > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > From dgortonii at gmail.com Wed Apr 15 22:22:56 2009 From: dgortonii at gmail.com (Danny) Date: Wed, 15 Apr 2009 22:22:56 -0400 Subject: [Mono-list] Dock Panel Control (WinForms) for Mono In-Reply-To: References: Message-ID: <49E69680.7090907@gmail.com> I would be very interested in a version of DockPanel with these changes made...to the point of helping out as needed. I very quickly looked at DockPanel on Mono and decided to use it in spite of the p/invokes, hoping they could be factored out. I have very little time in the short term, but if I can pitch in with some specific tasks or research don't hesitate to let me know. If this isn't done now, I'll eventually have to get to it myself. Though other (more pressing) things currently prevail, and will for some time, it would save me lots of time later to help out now. TIA, Danny Everaldo Canuto wrote: > Hi Pedro, > > I worked on it, unfortunately some pinvokes used in DockPanel can't be > emulated right now so the solution is to change DockPanel and replace > all pinvoke calls by managed code. > > Everaldo. > > 2009/4/15 Pedro Alves : >> Hi! >> >> >> Some time ago I saw something on the port the DockPanel Suite >> (http://sourceforge.net/projects/dockpanelsuite) to Mono. >> Why say something about it? >> >> Is there a Dock component compatible with Mono WinForms? >> >> >> Thanks! >> >> >> >> Pedro, >> Brazil. >> >> >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From stifu at free.fr Thu Apr 16 06:25:31 2009 From: stifu at free.fr (Stifu) Date: Thu, 16 Apr 2009 03:25:31 -0700 (PDT) Subject: [Mono-list] What the root password of the vmware image? In-Reply-To: <23074837.post@talk.nabble.com> References: <23074837.post@talk.nabble.com> Message-ID: <23075215.post@talk.nabble.com> It is "mono". This is from the VMware image FAQ (linked just below the download). http://mono-project.com/VMware_Image Yuriy Kolesnikov wrote: > > What the root password of the vmware image? > -- View this message in context: http://www.nabble.com/What-the-root-password-of-the-vmware-image--tp23074837p23075215.html Sent from the Mono - General mailing list archive at Nabble.com. From yurikoles at gmail.com Thu Apr 16 05:59:55 2009 From: yurikoles at gmail.com (Yuriy Kolesnikov) Date: Thu, 16 Apr 2009 02:59:55 -0700 (PDT) Subject: [Mono-list] What the root password of the vmware image? Message-ID: <23074837.post@talk.nabble.com> What the root password of the vmware image? -- View this message in context: http://www.nabble.com/What-the-root-password-of-the-vmware-image--tp23074837p23074837.html Sent from the Mono - General mailing list archive at Nabble.com. From yurikoles at gmail.com Thu Apr 16 06:34:15 2009 From: yurikoles at gmail.com (Yuriy Kolesnikov) Date: Thu, 16 Apr 2009 03:34:15 -0700 (PDT) Subject: [Mono-list] What the root password of the vmware image? In-Reply-To: <23075215.post@talk.nabble.com> References: <23074837.post@talk.nabble.com> <23075215.post@talk.nabble.com> Message-ID: <23075322.post@talk.nabble.com> thx -- View this message in context: http://www.nabble.com/What-the-root-password-of-the-vmware-image--tp23074837p23075322.html Sent from the Mono - General mailing list archive at Nabble.com. From bill at goldeneyedms.com Thu Apr 16 13:00:40 2009 From: bill at goldeneyedms.com (Bill2010) Date: Thu, 16 Apr 2009 10:00:40 -0700 (PDT) Subject: [Mono-list] New to Mono... is it compatable with .NET 3.51? Message-ID: <23082221.post@talk.nabble.com> I have a .NET 3.51 application where a portion of it will be deployed to an embedded appliance. The idea of using Linux/Mono and MySQL is attractive, if possible. I am curious about Mono compatability for this? -- View this message in context: http://www.nabble.com/New-to-Mono...-is-it-compatable-with-.NET-3.51--tp23082221p23082221.html Sent from the Mono - General mailing list archive at Nabble.com. From kumpera at gmail.com Thu Apr 16 17:09:30 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Thu, 16 Apr 2009 18:09:30 -0300 Subject: [Mono-list] New to Mono... is it compatable with .NET 3.51? In-Reply-To: <23082221.post@talk.nabble.com> References: <23082221.post@talk.nabble.com> Message-ID: <8cca42d80904161409s4dd26e5fk4ab514f7dff3272c@mail.gmail.com> Try using the moma tool to verify how compatible mono is to your application. On Thu, Apr 16, 2009 at 2:00 PM, Bill2010 wrote: > > I have a .NET 3.51 application where a portion of it will be deployed to an > embedded appliance. The idea of using Linux/Mono and MySQL is attractive, > if > possible. I am curious about Mono compatability for this? > -- > View this message in context: > http://www.nabble.com/New-to-Mono...-is-it-compatable-with-.NET-3.51--tp23082221p23082221.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090416/5c5dc748/attachment.html From zarevucky.jiri at gmail.com Thu Apr 16 19:18:42 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Fri, 17 Apr 2009 01:18:42 +0200 Subject: [Mono-list] Why are extension method dependent on .NET 3.5? Message-ID: Hello, I don't know whether there is some technological concept behind this, but I always found that fact very annoying. As far as I know, extension methods are purely a syntactic sugar, aren't they? As such, there should be no runtime dependence on the .NET 3.5, because everything I write using an extension method can be very simply written as a normal static call. Neither should it have (e.g. there is no reason for) compile-time dependence on System.Core.dll. Can someone explain to me, then, why is it dependent? From dan.shryock at gmail.com Thu Apr 16 19:42:07 2009 From: dan.shryock at gmail.com (Dan Shryock) Date: Thu, 16 Apr 2009 16:42:07 -0700 Subject: [Mono-list] Why are extension method dependent on .NET 3.5? In-Reply-To: References: Message-ID: <5fe9674f0904161642n6a506a47y51244cd852694cb3@mail.gmail.com> 2009/4/16 Ji?? Z?rev?ck? : > Hello, I don't know whether there is some technological concept behind > this, but I always found that fact very annoying. > As far as I know, extension methods are purely a syntactic sugar, > aren't they? As such, there should be no runtime dependence on the > .NET 3.5, because everything I write using an extension method can be > very simply written as a normal static call. Neither should it have > (e.g. there is no reason for) compile-time dependence on > System.Core.dll. Can someone explain to me, then, why is it dependent? The reason for requiring .NET 3.5 is because of the dependency on System.Core.dll The reason for the dependency on System.Core.dll is that the compile needs some way to mark a method as an extension method when you add the "this" keyword to the argument. Having the keyword in the source isn't enough because there are libraries which provide extension methods, so there needs to be some sort of metadata attached to that parameter for the compiler to know about the difference. The metadata that the compiler attaches is the attribute [System.Runtime.CompilerServices.ExtensionAttribute] which happens to reside in System.Core.dll thus causing the dependency on both that dll and the 3.5 runtime. Having said all of that, you can get arround the problem by providing your own implementation of System.Runtime.CompilerServices.ExtensionAttribute like this: using System; namespace System.Runtime.CompilerServices{ public class ExtensionAttribute:Attribute{} } By itself that isn't enough because it will conflict with System.Core.dll, so you have to remove that dependency. For gmcs, I have done that by adding the -noconfig parameter to the compiler, and then manually adding in all default assemblies that you use, including -reference:System.dll which is normally automatically referenced. Hope this explaination helps. Dan From zarevucky.jiri at gmail.com Thu Apr 16 21:18:15 2009 From: zarevucky.jiri at gmail.com (=?ISO-8859-2?B?Smn47SBa4XJldvpja/0=?=) Date: Fri, 17 Apr 2009 03:18:15 +0200 Subject: [Mono-list] Why are extension method dependent on .NET 3.5? In-Reply-To: <5fe9674f0904161642n6a506a47y51244cd852694cb3@mail.gmail.com> References: <5fe9674f0904161642n6a506a47y51244cd852694cb3@mail.gmail.com> Message-ID: 2009/4/17 Dan Shryock : > The reason for requiring .NET 3.5 is because of the dependency on > System.Core.dll > > ... > > Having said all of that, you can get arround the problem by providing > your own implementation of > System.Runtime.CompilerServices.ExtensionAttribute like this: > Thanks for explanation. The problem is that even though the project doesn't contain any extension methods (just calls them), it still needs System.Core.dll. I've tried your workaround but it didn't help. The compiler doesn't find the methods. Any further ideas? My ultimate goal is for my project using extension methods to be runnable under .NET 2.0, if that's even possible. From m.j.hutchinson at gmail.com Thu Apr 16 21:40:01 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Thu, 16 Apr 2009 21:40:01 -0400 Subject: [Mono-list] Why are extension method dependent on .NET 3.5? In-Reply-To: References: <5fe9674f0904161642n6a506a47y51244cd852694cb3@mail.gmail.com> Message-ID: 2009/4/16 Ji?? Z?rev?ck? : > > My ultimate goal is for my project using extension methods to be > runnable under .NET 2.0, if that's even possible. You could include Mono's System.Core.dll with your app... -- Michael Hutchinson http://mjhutchinson.com From atsushieno at veritas-vos-liberabit.com Thu Apr 16 22:37:32 2009 From: atsushieno at veritas-vos-liberabit.com (Atsushi Eno) Date: Fri, 17 Apr 2009 11:37:32 +0900 Subject: [Mono-list] Why are extension method dependent on .NET 3.5? In-Reply-To: References: <5fe9674f0904161642n6a506a47y51244cd852694cb3@mail.gmail.com> Message-ID: <49E7EB6C.3090602@veritas-vos-liberabit.com> You could try bundling *our* System.Core.dll in your app if you run it on Windows (this is Mono mailing list so I assume you are of course planning to distribute on non-windows too ;) I dunno the details but there was some guy in my local community who examined it, and filed some bugs in our lib. Atsushi Eno Ji?? Z?rev?ck? wrote: > 2009/4/17 Dan Shryock : >> The reason for requiring .NET 3.5 is because of the dependency on >> System.Core.dll >> >> ... >> >> Having said all of that, you can get arround the problem by providing >> your own implementation of >> System.Runtime.CompilerServices.ExtensionAttribute like this: >> > > Thanks for explanation. The problem is that even though the project > doesn't contain any extension methods (just calls them), it still > needs System.Core.dll. I've tried your workaround but it didn't help. > The compiler doesn't find the methods. Any further ideas? > > My ultimate goal is for my project using extension methods to be > runnable under .NET 2.0, if that's even possible. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > From bluehawk204 at hotmail.com Fri Apr 17 21:28:54 2009 From: bluehawk204 at hotmail.com (BlueHawk204) Date: Fri, 17 Apr 2009 18:28:54 -0700 (PDT) Subject: [Mono-list] My own language with mono? Message-ID: <23107244.post@talk.nabble.com> I been wanting to write my own language and i was thinking about having it compile with mono. I know boo uses mono. How would have my code compile with mono? someone suggest outputting the bytecode but i dont want to optimize (and i imagine mono is loads better at it then i am) so what can i do? I could output C# source (or C, or C++). I could also translate it to basic instructions like int a; a = 5; a+=6*2; into DECL INT a; A = 5; A += 6*2 (or REG = 6*2; A = A + REG;). What is the easiest way? Am i posting this in the right section? -- View this message in context: http://www.nabble.com/My-own-language-with-mono--tp23107244p23107244.html Sent from the Mono - General mailing list archive at Nabble.com. From mbt at zest.trausch.us Fri Apr 17 21:51:33 2009 From: mbt at zest.trausch.us (Michael B. Trausch) Date: Fri, 17 Apr 2009 21:51:33 -0400 Subject: [Mono-list] My own language with mono? In-Reply-To: <23107244.post@talk.nabble.com> References: <23107244.post@talk.nabble.com> Message-ID: <20090417215133.3e7fba55@zest.trausch.us> On Fri, 17 Apr 2009 18:28:54 -0700 (PDT) BlueHawk204 wrote: > I been wanting to write my own language and i was thinking about > having it compile with mono. I know boo uses mono. How would have my > code compile with mono? someone suggest outputting the bytecode but i > dont want to optimize (and i imagine mono is loads better at it then > i am) so what can i do? Well, if you want to write your own language, I would say that outputting bytecode is the best thing to do. You do not necessarily have to optimize it, just output it. Your other option would be to output machine language... :-) > I could output C# source (or C, or C++). I could also translate it to > basic instructions like int a; a = 5; a+=6*2; into DECL INT a; A = 5; > A += 6*2 (or REG = 6*2; A = A + REG;). What is the easiest way? > > Am i posting this in the right section? If you want to compile to another higher-level language, you can do that. There are plenty of languages that work that way, check out Vala for an example of one (Vala is a C# like non-managed language which compiles to C code). It doesn't much matter if you compile to a high-level language or to IL (which is, for all intents and purposes, high-level assembly language). Either way, you'll need to read the input program, parse the syntax, give the syntax meaning, and output generated code. If you're generating lower-level code (e.g., IL) then you're going to have more flexibility in what you can do in your language because you're building the result with smaller building blocks, if that makes sense. --- Mike -- The problem about Wikipedia is, that it just works in reality, not in theory. --- Stephen Colbert -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090417/0c3501e2/attachment.bin From monotrober at gmail.com Fri Apr 17 22:19:02 2009 From: monotrober at gmail.com (Mono Trober) Date: Fri, 17 Apr 2009 21:19:02 -0500 Subject: [Mono-list] My own language with mono? References: <23107244.post@talk.nabble.com> Message-ID: <64A84603BA7344FE87025DD11900CD95@homelaptop> > How would have my code compile with mono? this is a general-purpose language, or something like a (typically smaller, simpler) domain-specific language (DSL)? > I could output C# source (or C, or C++). I could also translate it to > basic > instructions like int a; a = 5; a+=6*2; into DECL INT a; A = 5; A += 6*2 > (or > REG = 6*2; A = A + REG;). What is the easiest way? this is why I asked if a DSL. Why would be you translating a general-purpose lang to yet-another-gen-purpose-lang? DSLs, many times, do that, though. And, the answer is almost always related to what it the target/purpose of the DSL? ----- Original Message ----- From: "BlueHawk204" To: Sent: Friday, April 17, 2009 8:28 PM Subject: [Mono-list] My own language with mono? > > I been wanting to write my own language and i was thinking about having it > compile with mono. I know boo uses mono. How would have my code compile > with > mono? someone suggest outputting the bytecode but i dont want to optimize > (and i imagine mono is loads better at it then i am) so what can i do? > > I could output C# source (or C, or C++). I could also translate it to > basic > instructions like int a; a = 5; a+=6*2; into DECL INT a; A = 5; A += 6*2 > (or > REG = 6*2; A = A + REG;). What is the easiest way? > > Am i posting this in the right section? > -- > View this message in context: > http://www.nabble.com/My-own-language-with-mono--tp23107244p23107244.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From cdhowie at gmail.com Sat Apr 18 00:57:56 2009 From: cdhowie at gmail.com (Chris Howie) Date: Sat, 18 Apr 2009 00:57:56 -0400 Subject: [Mono-list] My own language with mono? In-Reply-To: <23107244.post@talk.nabble.com> References: <23107244.post@talk.nabble.com> Message-ID: <3d2f29dc0904172157lf6bf7aawf36518475835ce71@mail.gmail.com> On Fri, Apr 17, 2009 at 9:28 PM, BlueHawk204 wrote: > I been wanting to write my own language and i was thinking about having it > compile with mono. I know boo uses mono. How would have my code compile with > mono? someone suggest outputting the bytecode but i dont want to optimize > (and i imagine mono is loads better at it then i am) so what can i do? > > I could output C# source (or C, or C++). I could also translate it to basic > instructions like int a; a = 5; a+=6*2; into DECL INT a; A = 5; A += 6*2 (or > REG = 6*2; A = A + REG;). What is the easiest way? I did something like this a while ago. It's a procedural/OO hybrid with a C-like syntax. The environment is defined by the embedding application, and it targets the DynamicMethod type of the 2.0 framework, which means that compiled methods can be garbage-collected normally. If this is what you need then maybe you can look at it. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From numerodix at gmail.com Sat Apr 18 12:34:03 2009 From: numerodix at gmail.com (Martin Matusiak) Date: Sat, 18 Apr 2009 18:34:03 +0200 Subject: [Mono-list] looking for an svg technology in c#, advice? Message-ID: <5717fc280904180934j908daa6j3974dca1ba26192a@mail.gmail.com> I'm looking to write a fairly simple gui component (windows forms) that would display a map. Except that it should be scalable, thus svg comes to mind. Naturally, I want something entirely dotnet to avoid native dependencies. Any advice on technology that works well? Martin From jon at ffconsultancy.com Sat Apr 18 13:03:13 2009 From: jon at ffconsultancy.com (Jon Harrop) Date: Sat, 18 Apr 2009 18:03:13 +0100 Subject: [Mono-list] looking for an svg technology in c#, advice? In-Reply-To: <5717fc280904180934j908daa6j3974dca1ba26192a@mail.gmail.com> References: <5717fc280904180934j908daa6j3974dca1ba26192a@mail.gmail.com> Message-ID: <200904181803.13820.jon@ffconsultancy.com> On Saturday 18 April 2009 17:34:03 Martin Matusiak wrote: > I'm looking to write a fairly simple gui component (windows forms) > that would display a map. Except that it should be scalable, thus svg > comes to mind. Naturally, I want something entirely dotnet to avoid > native dependencies. Any advice on technology that works well? Windows Presentation Foundation works extremely well but I'm not sure if it or anything like it can be run on Mono. One of the major advantages is robust hardware acceleration and that will be extremely difficult to reproduce. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e From david_aiken at yahoo.com Sat Apr 18 14:32:50 2009 From: david_aiken at yahoo.com (fozzie) Date: Sat, 18 Apr 2009 11:32:50 -0700 (PDT) Subject: [Mono-list] mono_jit_init and mono_jit_cleanup Message-ID: <23115883.post@talk.nabble.com> hi all.. I'm embedding mono in a Vista application which accesses multiple assemblies. For each assembly i call mono_jit_init, make the calls, then mono_jit_cleanup. The problem is that on the second call to mono_jit_init there is a crash in ...\mono\mini\mini-x86.c(611): if (!func) { ptr = mono_global_codeman_reserve (sizeof (cpuid_impl)); memcpy (ptr, cpuid_impl, sizeof (cpuid_impl)); func = (CpuidFunc)ptr; } >> func (id, p_eax, p_ebx, p_ecx, p_edx); The mono_global_codeman_reserve returns a bad pointer. I get the same behavior if i make the following modification to the teste.c embedded sample: ... mono_config_parse (NULL); for(i=0;i<10;i++) { domain = mono_jit_init (file); mono_add_internal_call ("MonoEmbed::gimme", gimme); main_function (domain, file, argc - 1, argv + 1); retval = mono_environment_exitcode_get (); mono_jit_cleanup (domain); } return retval; ... Here i get a crash the second time mono_jit_init is called. Am i doing something wrong? If not, is there a workaround that i can use? thanks! -- View this message in context: http://www.nabble.com/mono_jit_init-and-mono_jit_cleanup-tp23115883p23115883.html Sent from the Mono - General mailing list archive at Nabble.com. From netskay at gmail.com Fri Apr 17 14:12:54 2009 From: netskay at gmail.com (NetSkay) Date: Fri, 17 Apr 2009 11:12:54 -0700 (PDT) Subject: [Mono-list] C++ compiling question Message-ID: <23103045.post@talk.nabble.com> hi... im rather new to the mono project and .net in general... i know C++ is a low level language and there are other compilers, and the language is compiled to byte code... so my question really is, if i code C++ in mono, and i do NOT use the .net classes/modules, do i need to have mono installed on other machines/computers in order for the C++ compiled application to run and, what if i do use mono/.net modules, do i need to have mono/.net installed to run a compiled C++ application... thank you -- View this message in context: http://www.nabble.com/C%2B%2B-compiling-question-tp23103045p23103045.html Sent from the Mono - General mailing list archive at Nabble.com. From chow.chris at gmail.com Fri Apr 17 17:21:53 2009 From: chow.chris at gmail.com (mros) Date: Fri, 17 Apr 2009 14:21:53 -0700 (PDT) Subject: [Mono-list] user permission for mono Message-ID: <23106012.post@talk.nabble.com> Hi All, I believe I have some permission setting issue with user account other than root here is my situation: I am using mono 2.4 with suse 10.3 Login as root user run mono everything works like a charm. Login as other user run the same script with mono and everything same I got the following error: NUnit version 2.2.9 Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole. Copyright (C) 2000-2003 Philip Craig. All Rights Reserved. OS Version: Unix 2.6.22.5 Mono Version: 2.0.50727.1433 Unhandled Exception: System.ExecutionEngineException: Failed to create shadow copy (ensure directory exists). Server stack trace: at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool) at System.Reflection.Assembly.LoadFrom (System.String assemblyFile, System.Security.Policy.Evidence securityEvidence) [0x00000] at System.Activator.CreateInstanceFrom (System.String assemblyFile, System.String typeName, Boolean ignoreCase, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Security.Policy.Evidence securityInfo) [0x00000] at System.Activator.CreateInstanceFrom (System.String assemblyFile, System.String typeName, System.Object[] activationAttributes) [0x00000] at System.Activator.CreateInstanceFrom (System.String assemblyFile, System.String typeName) [0x00000] at System.AppDomain.CreateInstanceFrom (System.String assemblyFile, System.String typeName) [0x00000] at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceFrom (string,string) at System.AppDomain.CreateInstanceFromAndUnwrap (System.String assemblyName, System.String typeName) [0x00000] at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceFromAndUnwrap (string,string) at (wrapper xdomain-dispatch) System.AppDomain:CreateInstanceFromAndUnwrap (object,byte[]&,byte[]&,string,string) Exception rethrown at [0]: at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceFromAndUnwrap (string,string) at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceFromAndUnwrap (string,string) at NUnit.Util.TestDomain.MakeRemoteTestRunner (System.AppDomain runnerDomain) [0x00000] at NUnit.Util.TestDomain.Load (NUnit.Util.NUnitProject project, System.String testName) [0x00000] Then I tried to use sudo to run the script with mono and got error on cannot access certain dll (which my script using). I believe there is some permission setup for this non root user. Please help me identified what is wrong, I am pretty new to mono...forgive me if this is a simple problem -Chris -- View this message in context: http://www.nabble.com/user-permission-for-mono-tp23106012p23106012.html Sent from the Mono - General mailing list archive at Nabble.com. From kerrguelen at gmail.com Sat Apr 18 08:34:37 2009 From: kerrguelen at gmail.com (Cleenex) Date: Sat, 18 Apr 2009 05:34:37 -0700 (PDT) Subject: [Mono-list] App.Config in Mono Message-ID: <23112459.post@talk.nabble.com> I'm familiar with .NET on Windows and now I wish to try Mono on Linux. One problem I'm having is with the App.config file. It just doesn't seem to work(I'm using MonoDevelop)=>Object reference not set to an instance of an object I've already googled and 1 suggestion was to rename app.config to foo.config(for an foo.exe) and put it in the same directory. But I still get the same error=>Object reference not set to an instance of an object -- View this message in context: http://www.nabble.com/App.Config-in-Mono-tp23112459p23112459.html Sent from the Mono - General mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Sat Apr 18 15:33:04 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 18 Apr 2009 15:33:04 -0400 Subject: [Mono-list] App.Config in Mono In-Reply-To: <23112459.post@talk.nabble.com> References: <23112459.post@talk.nabble.com> Message-ID: On Sat, Apr 18, 2009 at 8:34 AM, Cleenex wrote: > I'm familiar with .NET on Windows and now I wish to try Mono on Linux. > One problem I'm having is with the App.config file. > > It just doesn't seem to work(I'm using MonoDevelop)=>Object reference not > set to an instance of an object > > I've already googled and 1 suggestion was to rename app.config to > foo.config(for an foo.exe) and put it in the same directory. > But I still get the same error=>Object reference not set to an instance of > an object What version of MonoDevelop are you using? Do you have more of an error message than that, i.e. a stack trace? -- Michael Hutchinson http://mjhutchinson.com From kumpera at gmail.com Sat Apr 18 15:33:54 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Sat, 18 Apr 2009 16:33:54 -0300 Subject: [Mono-list] mono_jit_init and mono_jit_cleanup In-Reply-To: <23115883.post@talk.nabble.com> References: <23115883.post@talk.nabble.com> Message-ID: <8cca42d80904181233g8806c6fy64d3f43a71d44e16@mail.gmail.com> You should init the runtime only once. On Sat, Apr 18, 2009 at 3:32 PM, fozzie wrote: > > hi all.. > > I'm embedding mono in a Vista application which accesses multiple > assemblies. For each assembly i call mono_jit_init, make the calls, then > mono_jit_cleanup. The problem is that on the second call to mono_jit_init > there is a crash in ...\mono\mini\mini-x86.c(611): > > if (!func) { > ptr = mono_global_codeman_reserve (sizeof > (cpuid_impl)); > memcpy (ptr, cpuid_impl, sizeof (cpuid_impl)); > func = (CpuidFunc)ptr; > } > >> func (id, p_eax, p_ebx, p_ecx, p_edx); > > The mono_global_codeman_reserve returns a bad pointer. > > I get the same behavior if i make the following modification to the teste.c > embedded sample: > > ... > mono_config_parse (NULL); > for(i=0;i<10;i++) > { > domain = mono_jit_init (file); > mono_add_internal_call ("MonoEmbed::gimme", gimme); > main_function (domain, file, argc - 1, argv + 1); > retval = mono_environment_exitcode_get (); > mono_jit_cleanup (domain); > } > return retval; > ... > > Here i get a crash the second time mono_jit_init is called. > > Am i doing something wrong? If not, is there a workaround that i can use? > > thanks! > -- > View this message in context: > http://www.nabble.com/mono_jit_init-and-mono_jit_cleanup-tp23115883p23115883.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090418/f4ec520b/attachment.html From david_aiken at yahoo.com Sat Apr 18 15:41:01 2009 From: david_aiken at yahoo.com (fozzie) Date: Sat, 18 Apr 2009 12:41:01 -0700 (PDT) Subject: [Mono-list] mono_jit_init and mono_jit_cleanup In-Reply-To: <8cca42d80904181233g8806c6fy64d3f43a71d44e16@mail.gmail.com> References: <23115883.post@talk.nabble.com> <8cca42d80904181233g8806c6fy64d3f43a71d44e16@mail.gmail.com> Message-ID: <23116550.post@talk.nabble.com> You should init the runtime only once. I see.. so this means i can only call mono_jit_init(file) once? Or is there another way to initialize the runtime then run multiple files? Suppose i want to run them in separate domains? If there is a reference you can point me to it would be appreciated so that i can read further and stop bugging you. -- View this message in context: http://www.nabble.com/mono_jit_init-and-mono_jit_cleanup-tp23115883p23116550.html Sent from the Mono - General mailing list archive at Nabble.com. From jb at nurv.fr Sat Apr 18 15:58:53 2009 From: jb at nurv.fr (Jb Evain) Date: Sat, 18 Apr 2009 21:58:53 +0200 Subject: [Mono-list] mono_jit_init and mono_jit_cleanup In-Reply-To: <23116550.post@talk.nabble.com> References: <23115883.post@talk.nabble.com> <8cca42d80904181233g8806c6fy64d3f43a71d44e16@mail.gmail.com> <23116550.post@talk.nabble.com> Message-ID: <69f7d8470904181258j4a0ce63cg17f34c7fd42343e6@mail.gmail.com> Hey, On 4/18/09, fozzie wrote: > I see.. so this means i can only call mono_jit_init(file) once? Or is there > another way to initialize the runtime then run multiple files? Suppose i > want to run them in separate domains? If there is a reference you can point > me to it would be appreciated so that i can read further and stop bugging > you. Heh, you're not bugging anyone. As Rodrigo say, you should only call mono_jit_init once, then it should only be a matter of running the appropriate entry point method of each assembly. I suggest you do as much as possible in the managed code, but if you absolutely need to do things in the unmanaged side, you can read how we do it in Moonlight here: http://anonsvn.mono-project.com/viewvc/trunk/moon/src/deployment.cpp?revision=HEAD&content-type=text%2Fplain Some functions are pretty new for creating domains in the unmanaged, you may need a recent Mono if you can't do it in the managed side. -- Jb Evain From david_aiken at yahoo.com Sat Apr 18 17:02:06 2009 From: david_aiken at yahoo.com (fozzie) Date: Sat, 18 Apr 2009 14:02:06 -0700 (PDT) Subject: [Mono-list] mono_jit_init and mono_jit_cleanup In-Reply-To: <69f7d8470904181258j4a0ce63cg17f34c7fd42343e6@mail.gmail.com> References: <23115883.post@talk.nabble.com> <8cca42d80904181233g8806c6fy64d3f43a71d44e16@mail.gmail.com> <23116550.post@talk.nabble.com> <69f7d8470904181258j4a0ce63cg17f34c7fd42343e6@mail.gmail.com> Message-ID: <23117284.post@talk.nabble.com> thanks! -- View this message in context: http://www.nabble.com/mono_jit_init-and-mono_jit_cleanup-tp23115883p23117284.html Sent from the Mono - General mailing list archive at Nabble.com. From charlie at nunit.com Sat Apr 18 17:05:59 2009 From: charlie at nunit.com (Charlie Poole) Date: Sat, 18 Apr 2009 14:05:59 -0700 Subject: [Mono-list] App.Config in Mono In-Reply-To: <23112459.post@talk.nabble.com> Message-ID: <003401c9c069$7a2f2960$6401a8c0@ferrari> Just as with Windows, Mono expects the config to have the name of the exe plus '.config' - for example, for the xxx.exe, the config is xxx.exe.config. Visual Studio uses a convention of renaming the App.config file correctly and copying it to the output directory. Depending on how you are creating your exe, you may need to do that yourself. Charlie > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Cleenex > Sent: Saturday, April 18, 2009 5:35 AM > To: mono-list at lists.ximian.com > Subject: [Mono-list] App.Config in Mono > > > I'm familiar with .NET on Windows and now I wish to try Mono on Linux. > One problem I'm having is with the App.config file. > > It just doesn't seem to work(I'm using MonoDevelop)=>Object > reference not set to an instance of an object > > I've already googled and 1 suggestion was to rename > app.config to foo.config(for an foo.exe) and put it in the > same directory. > But I still get the same error=>Object reference not set to > an instance of an object > -- > View this message in context: > http://www.nabble.com/App.Config-in-Mono-tp23112459p23112459.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From m.j.hutchinson at gmail.com Sat Apr 18 18:55:43 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 18 Apr 2009 18:55:43 -0400 Subject: [Mono-list] App.Config in Mono In-Reply-To: <003401c9c069$7a2f2960$6401a8c0@ferrari> References: <23112459.post@talk.nabble.com> <003401c9c069$7a2f2960$6401a8c0@ferrari> Message-ID: On Sat, Apr 18, 2009 at 5:05 PM, Charlie Poole wrote: > Just as with Windows, Mono expects the config to have the > name of the exe plus '.config' - for example, for the > xxx.exe, the config is xxx.exe.config. > > Visual Studio uses a convention of renaming the App.config > file correctly and copying it to the output directory. MonoDevelop does the rename too, as long as it's marked "Copy to output". I'm not sure if MD 1 does that. > Depending on how you are creating your exe, you may need > to do that yourself. -- Michael Hutchinson http://mjhutchinson.com From trampster at gmail.com Sat Apr 18 18:58:52 2009 From: trampster at gmail.com (Daniel) Date: Sun, 19 Apr 2009 10:58:52 +1200 Subject: [Mono-list] looking for an svg technology in c#, advice? In-Reply-To: <200904181803.13820.jon@ffconsultancy.com> References: <5717fc280904180934j908daa6j3974dca1ba26192a@mail.gmail.com> <200904181803.13820.jon@ffconsultancy.com> Message-ID: <49EA5B2C.6050603@gmail.com> Take a look at cario http://mono-project.com/Mono.Cairo, it is fairly low level but is completely scalable and cross platform. It can also use hardware acceleration where available. Gnome DO uses this technology to great effect. Especially in its docky interface. Cheers, Daniel Jon Harrop wrote: > On Saturday 18 April 2009 17:34:03 Martin Matusiak wrote: > >> I'm looking to write a fairly simple gui component (windows forms) >> that would display a map. Except that it should be scalable, thus svg >> comes to mind. Naturally, I want something entirely dotnet to avoid >> native dependencies. Any advice on technology that works well? >> > > Windows Presentation Foundation works extremely well but I'm not sure if it or > anything like it can be run on Mono. One of the major advantages is robust > hardware acceleration and that will be extremely difficult to reproduce. > > From jonpryor at vt.edu Sat Apr 18 21:58:21 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Sat, 18 Apr 2009 21:58:21 -0400 Subject: [Mono-list] C++ compiling question In-Reply-To: <23103045.post@talk.nabble.com> References: <23103045.post@talk.nabble.com> Message-ID: <1240106301.17777.20.camel@lina> On Fri, 2009-04-17 at 11:12 -0700, NetSkay wrote: > hi... im rather new to the mono project and .net in general... > i know C++ is a low level language and there are other compilers Yes. > , and the language is compiled to byte code... No. C++ is compiled to native machine code (at least that's what Microsoft CL.EXE, G++, and numerous other C++ compilers do). Are you thinking of C++/CLI (as produce by `cl /clr:safe ...`)? Or are you thinking C# and not C++? > so my question really is, if i code C++ > in mono, and i do NOT use the .net classes/modules, do i need to have mono > installed on other machines/computers in order for the C++ compiled > application to run > and, what if i do use mono/.net modules, do i need to have mono/.net > installed to run a compiled C++ application... Two answers, depending on what you mean... If you actually mean C++, you cannot currently compile C++ code to IL on Linux (assuming that's important), and whether or not Mono is required depends upon whether the C++ code is compiled to native code (e.g. by using gcc) or to IL (e.g. by using `cl /clr:safe`). If it's compiled to IL, then Mono will be required, even if no .NET classes are used. If you actually mean C#, then IL is always the output, so you will always need Mono, even if no .NET classes are used. You need mono for the JIT, GC, etc. services. However, requiring Mono is not the same as requiring that Mono be installed; specifically, you can bundle Mono with your application with mkbundle so that your app doesn't require an (external) Mono install: http://www.go-mono.com/docs/index.aspx?tlink=30 at man% 3amkbundle(1) Additionally, with mkbundle there are no restrictions on which assemblies you can use -- you can use any assembly, you just need to ensure that it's bundled with your app. - Jon From david_aiken at yahoo.com Sun Apr 19 16:15:14 2009 From: david_aiken at yahoo.com (fozzie) Date: Sun, 19 Apr 2009 13:15:14 -0700 (PDT) Subject: [Mono-list] GAC question In-Reply-To: <23044913.post@talk.nabble.com> References: <23044913.post@talk.nabble.com> Message-ID: <23126929.post@talk.nabble.com> bump.. I'm trying to use a 3rd party dll from within a mono VM embedded in a windows application. I restored the GAC directory name and used gacutil to register the dll using a strong name. But as soon as i run mono_jit_exec the crash occurs. It doesn't occur if the GAC directory is missing. The method variable in ves_icall_get_parameter_info() has its name field set to "get_PrimaryManager". Looking further into method: method.klass.image.name = "c:\AAA\git\1.5.8_bullet\mono\lib\mono\gac\I18N\2.0.0.0__0738eb9f132ed756\I18N.dll" method.klass.name = "Manager" method.klass.name_space = "I18N.Common" I'm using gmcs.bat to compile, but i'm just specifying the input and output files. Am i getting a version mismatch somewhere? fozzie wrote: > > hi all.. > > I'm getting a crash stack when i run the teste project with the test.cs > sample: > >> mono.dll!mono_class_from_mono_type(_MonoType * type=0x00000013) Line 4711 + 0x3 bytes C > mono.dll!ves_icall_get_parameter_info(_MonoMethod * method=0x01aee028, > _MonoReflectionMethod * member=0x0012f864) Line 1644 + 0x18 bytes C > 02203260() > mono.dll!mono_get_lmf_addr() Line 2159 + 0xe bytes C > 02203249() > mono.dll!mono_thread_current() Line 1302 + 0xe bytes C > mono.dll!mono_thread_interruption_checkpoint_request(int > bypass_abort_protection=0) Line 3667 C > 00000001() > mono.dll!mono_thread_current() Line 1302 + 0xe bytes C > > The output is as follows: > > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\teste.exe', > Symbols loaded. > 'teste.exe': Loaded 'C:\Windows\System32\ntdll.dll' > 'teste.exe': Loaded 'C:\Windows\System32\kernel32.dll' > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\mono.dll', Symbols > loaded. > 'teste.exe': Loaded 'C:\Windows\System32\version.dll' > 'teste.exe': Loaded 'C:\Windows\System32\msvcrt.dll' > 'teste.exe': Loaded 'C:\Windows\System32\ws2_32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\advapi32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' > 'teste.exe': Loaded 'C:\Windows\System32\nsi.dll' > 'teste.exe': Loaded 'C:\Windows\System32\psapi.dll' > 'teste.exe': Loaded 'C:\Windows\System32\winmm.dll' > 'teste.exe': Loaded 'C:\Windows\System32\user32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\gdi32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\ole32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\oleaut32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\oleacc.dll' > 'teste.exe': Loaded 'C:\Windows\System32\shell32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\shlwapi.dll' > 'teste.exe': Loaded > 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', > Symbols loaded. > 'teste.exe': Loaded 'C:\Windows\System32\imm32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\msctf.dll' > 'teste.exe': Loaded 'C:\Windows\System32\lpk.dll' > 'teste.exe': Loaded 'C:\Windows\System32\usp10.dll' > 'teste.exe': Loaded > 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll' > 'teste.exe': Loaded 'ImageAtBase0x1d0000', No symbols loaded. > 'teste.exe': Unloaded 'ImageAtBase0x1d0000' > 'teste.exe': Loaded 'C:\Windows\System32\mscoree.dll' > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\test.exe', Binary was > not built with debug information. > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\1.0\mscorlib.dll', > Binary was not built with debug information. > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\gac\I18N\1.0.5000.0__0738eb9f132ed756\I18N.dll', > Binary was not built with debug information. > First-chance exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: > Access violation reading location 0x00000017. > Unhandled exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: > Access violation reading location 0x00000017. > > > > The weird thing is that the program works when i rename the lib\mono\gac > subdirectory to something else before running it. Can someone explain this > behavior? An intermingling of windows and mono code, perhaps? > > thanks! > -- View this message in context: http://www.nabble.com/GAC-question-tp23044913p23126929.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Sun Apr 19 17:36:13 2009 From: robertj at gmx.net (Robert Jordan) Date: Sun, 19 Apr 2009 23:36:13 +0200 Subject: [Mono-list] GAC question In-Reply-To: <23126929.post@talk.nabble.com> References: <23044913.post@talk.nabble.com> <23126929.post@talk.nabble.com> Message-ID: Hi, the crash you've experienced can only happen if I18N.dll is corrupt Since this assembly is not vital, removing the GAC directory has no immediate influence on your app. That's why it seems to work when the GAC is missing. fozzie wrote: > bump.. I'm trying to use a 3rd party dll from within a mono VM embedded in a > windows application. I restored the GAC directory name and used gacutil to > register the dll using a strong name. But as soon as i run mono_jit_exec the > crash occurs. It doesn't occur if the GAC directory is missing. > > The method variable in ves_icall_get_parameter_info() has its name field set > to "get_PrimaryManager". Looking further into method: > method.klass.image.name = > "c:\AAA\git\1.5.8_bullet\mono\lib\mono\gac\I18N\2.0.0.0__0738eb9f132ed756\I18N.dll" > method.klass.name = "Manager" > method.klass.name_space = "I18N.Common" > > I'm using gmcs.bat to compile, but i'm just specifying the input and output > files. Am i getting a version mismatch somewhere? > > > > fozzie wrote: >> hi all.. >> >> I'm getting a crash stack when i run the teste project with the test.cs >> sample: >> >>> mono.dll!mono_class_from_mono_type(_MonoType * type=0x00000013) Line > 4711 + 0x3 bytes C >> mono.dll!ves_icall_get_parameter_info(_MonoMethod * method=0x01aee028, >> _MonoReflectionMethod * member=0x0012f864) Line 1644 + 0x18 bytes C >> 02203260() >> mono.dll!mono_get_lmf_addr() Line 2159 + 0xe bytes C >> 02203249() >> mono.dll!mono_thread_current() Line 1302 + 0xe bytes C >> mono.dll!mono_thread_interruption_checkpoint_request(int >> bypass_abort_protection=0) Line 3667 C >> 00000001() >> mono.dll!mono_thread_current() Line 1302 + 0xe bytes C >> >> The output is as follows: >> >> 'teste.exe': Loaded >> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\teste.exe', >> Symbols loaded. >> 'teste.exe': Loaded 'C:\Windows\System32\ntdll.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\kernel32.dll' >> 'teste.exe': Loaded >> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\mono.dll', Symbols >> loaded. >> 'teste.exe': Loaded 'C:\Windows\System32\version.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\msvcrt.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\ws2_32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\advapi32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\nsi.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\psapi.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\winmm.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\user32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\gdi32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\ole32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\oleaut32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\oleacc.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\shell32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\shlwapi.dll' >> 'teste.exe': Loaded >> 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', >> Symbols loaded. >> 'teste.exe': Loaded 'C:\Windows\System32\imm32.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\msctf.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\lpk.dll' >> 'teste.exe': Loaded 'C:\Windows\System32\usp10.dll' >> 'teste.exe': Loaded >> 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll' >> 'teste.exe': Loaded 'ImageAtBase0x1d0000', No symbols loaded. >> 'teste.exe': Unloaded 'ImageAtBase0x1d0000' >> 'teste.exe': Loaded 'C:\Windows\System32\mscoree.dll' >> 'teste.exe': Loaded >> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\test.exe', Binary was >> not built with debug information. >> 'teste.exe': Loaded >> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\1.0\mscorlib.dll', >> Binary was not built with debug information. >> 'teste.exe': Loaded >> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\gac\I18N\1.0.5000.0__0738eb9f132ed756\I18N.dll', >> Binary was not built with debug information. >> First-chance exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: >> Access violation reading location 0x00000017. >> Unhandled exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: >> Access violation reading location 0x00000017. >> >> >> >> The weird thing is that the program works when i rename the lib\mono\gac >> subdirectory to something else before running it. Can someone explain this >> behavior? An intermingling of windows and mono code, perhaps? >> >> thanks! >> > From wrinkledcheese at gmail.com Sun Apr 19 19:07:53 2009 From: wrinkledcheese at gmail.com (WrinkledCheese) Date: Sun, 19 Apr 2009 16:07:53 -0700 (PDT) Subject: [Mono-list] configure script mono 2.4 Message-ID: <23128363.post@talk.nabble.com> Hey everyone, This is probably in thw wrong spot but it's the best fit I could find for my specific issue. My distribution, Slackware 12.2, only has mono 1.9 available. There are features new to 2.4 that are required for me to even bother with it at this time. The errors I'm receiving boil down to '`' (~ key without shift) and parenthesis around commands. IE for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d o If I change this line to: for ac_var in $(set 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'); d o the configure script runs and gets just as far except if calls out another line with a similar syntax. Doing the same change causes the same error to be produced for that line. There are hundreds of these and I don't want to waste my time if this isn't going to work. From what I gather a command surrounded by `s and a command surrounded with $() has the same effect. If I do this to the entire file will I be able to at least move on to completing the configuration of the script? Is there some other way to get mono 2.4 to compile for Slackware 12.2? I'm going to give 1.9 a shot but I don't think it's going to be suitable for what I need. -- View this message in context: http://www.nabble.com/configure-script-mono-2.4-tp23128363p23128363.html Sent from the Mono - General mailing list archive at Nabble.com. From gonzalo.mono at gmail.com Sun Apr 19 23:35:59 2009 From: gonzalo.mono at gmail.com (Gonzalo Paniagua Javier) Date: Sun, 19 Apr 2009 23:35:59 -0400 Subject: [Mono-list] user permission for mono In-Reply-To: <23106012.post@talk.nabble.com> References: <23106012.post@talk.nabble.com> Message-ID: <1240198559.10455.2.camel@lalo-laptop> On Fri, 2009-04-17 at 14:21 -0700, mros wrote: > Hi All, > > I believe I have some permission setting issue with user account other than > root here is my situation: > > I am using mono 2.4 with suse 10.3 > > Login as root user run mono everything works like a charm. > > Login as other user run the same script with mono and everything same I got > the following error: > > NUnit version 2.2.9 > Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. > Vorontsov, Charlie Poole. > Copyright (C) 2000-2003 Philip Craig. > All Rights Reserved. > OS Version: Unix 2.6.22.5 Mono Version: 2.0.50727.1433 > Unhandled Exception: > System.ExecutionEngineException: Failed to create shadow copy (ensure > directory exists). Clean up your /tmp directory and run it again. -Gonzalo From david_aiken at yahoo.com Mon Apr 20 01:07:13 2009 From: david_aiken at yahoo.com (fozzie) Date: Sun, 19 Apr 2009 22:07:13 -0700 (PDT) Subject: [Mono-list] GAC question In-Reply-To: References: <23044913.post@talk.nabble.com> <23126929.post@talk.nabble.com> Message-ID: <23130444.post@talk.nabble.com> Well.. if i run the same assembly using the Mono 2.4 installed version it works using the same libraries so i suspect it's the source i'm building from. I'm using a snapshot of rev 131529 from SVN (it corresponded to the current snapshot) . This built ok, but i suspect may have subtle problems. I tried using the Mono 2.4 tarball at http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2 but it doesn't build cleanly using MSVC. It's missing the eglib files, and some of the projects. Does someone know how i can get around this? Perhaps i just need to checkout the 2.4 source from SVN corresponding to the Mono 2.4 install for windows.. if so, is the revision available somewhere? Robert Jordan wrote: > > Hi, > > the crash you've experienced can only happen if I18N.dll is corrupt > Since this assembly is not vital, removing the GAC directory has > no immediate influence on your app. That's why it seems to work when > the GAC is missing. > > > fozzie wrote: >> bump.. I'm trying to use a 3rd party dll from within a mono VM embedded >> in a >> windows application. I restored the GAC directory name and used gacutil >> to >> register the dll using a strong name. But as soon as i run mono_jit_exec >> the >> crash occurs. It doesn't occur if the GAC directory is missing. >> >> The method variable in ves_icall_get_parameter_info() has its name field >> set >> to "get_PrimaryManager". Looking further into method: >> method.klass.image.name = >> "c:\AAA\git\1.5.8_bullet\mono\lib\mono\gac\I18N\2.0.0.0__0738eb9f132ed756\I18N.dll" >> method.klass.name = "Manager" >> method.klass.name_space = "I18N.Common" >> >> I'm using gmcs.bat to compile, but i'm just specifying the input and >> output >> files. Am i getting a version mismatch somewhere? >> >> >> >> fozzie wrote: >>> hi all.. >>> >>> I'm getting a crash stack when i run the teste project with the test.cs >>> sample: >>> >>>> mono.dll!mono_class_from_mono_type(_MonoType * type=0x00000013) Line >> 4711 + 0x3 bytes C >>> mono.dll!ves_icall_get_parameter_info(_MonoMethod * method=0x01aee028, >>> _MonoReflectionMethod * member=0x0012f864) Line 1644 + 0x18 bytes C >>> 02203260() >>> mono.dll!mono_get_lmf_addr() Line 2159 + 0xe bytes C >>> 02203249() >>> mono.dll!mono_thread_current() Line 1302 + 0xe bytes C >>> mono.dll!mono_thread_interruption_checkpoint_request(int >>> bypass_abort_protection=0) Line 3667 C >>> 00000001() >>> mono.dll!mono_thread_current() Line 1302 + 0xe bytes C >>> >>> The output is as follows: >>> >>> 'teste.exe': Loaded >>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\teste.exe', >>> Symbols loaded. >>> 'teste.exe': Loaded 'C:\Windows\System32\ntdll.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\kernel32.dll' >>> 'teste.exe': Loaded >>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\mono.dll', >>> Symbols >>> loaded. >>> 'teste.exe': Loaded 'C:\Windows\System32\version.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\msvcrt.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\ws2_32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\advapi32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\nsi.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\psapi.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\winmm.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\user32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\gdi32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\ole32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\oleaut32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\oleacc.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\shell32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\shlwapi.dll' >>> 'teste.exe': Loaded >>> 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', >>> Symbols loaded. >>> 'teste.exe': Loaded 'C:\Windows\System32\imm32.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\msctf.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\lpk.dll' >>> 'teste.exe': Loaded 'C:\Windows\System32\usp10.dll' >>> 'teste.exe': Loaded >>> 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll' >>> 'teste.exe': Loaded 'ImageAtBase0x1d0000', No symbols loaded. >>> 'teste.exe': Unloaded 'ImageAtBase0x1d0000' >>> 'teste.exe': Loaded 'C:\Windows\System32\mscoree.dll' >>> 'teste.exe': Loaded >>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\test.exe', Binary >>> was >>> not built with debug information. >>> 'teste.exe': Loaded >>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\1.0\mscorlib.dll', >>> Binary was not built with debug information. >>> 'teste.exe': Loaded >>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\gac\I18N\1.0.5000.0__0738eb9f132ed756\I18N.dll', >>> Binary was not built with debug information. >>> First-chance exception at 0x1019dea9 (mono.dll) in teste.exe: >>> 0xC0000005: >>> Access violation reading location 0x00000017. >>> Unhandled exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: >>> Access violation reading location 0x00000017. >>> >>> >>> >>> The weird thing is that the program works when i rename the lib\mono\gac >>> subdirectory to something else before running it. Can someone explain >>> this >>> behavior? An intermingling of windows and mono code, perhaps? >>> >>> thanks! >>> >> > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/GAC-question-tp23044913p23130444.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Mon Apr 20 04:26:07 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 20 Apr 2009 04:26:07 -0400 Subject: [Mono-list] System.Media.SoundPlayer performing badly on Linux? Message-ID: <3d2f29dc0904200126v150f3191hd1cdbff1ef46714@mail.gmail.com> I've been experimenting with SoundPlayer as a possible cross-platform backend for notifications in Gazebo. Unfortunately it seems quite lacking on Linux. When playing a sound, no matter the source, it skips very badly, making the sound agonizing to listen to. I am using Mono 2.0.1, but since the file was last changed in 2007 in SVN I do not expect newer Mono versions to do better. Can anyone else confirm this behavior? -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From yacoob85 at gmail.com Mon Apr 20 05:06:10 2009 From: yacoob85 at gmail.com (yacoob) Date: Mon, 20 Apr 2009 02:06:10 -0700 (PDT) Subject: [Mono-list] Telerik announces ASP.NET RadControls support for Mono 2.4 Message-ID: <23132300.post@talk.nabble.com> Miguel de Icaza-2 wrote: > > Hello, > >> Excellent!!! >> >> A long time waiting for that! >> >> The compatible version of RadControls for ASP.NET AJAX is now >> available for download? > > Yes. > > Miguel. > > Hi, I have some doubts about this compatibility of version 2009.402. When I run very basic examples with RadGrid, RadAjax etc. under Mono 2.4 I get many exceptions, for example InvalidCastException, InvalidOperationException. I described it more precisely in this thread on telerik's forum: http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/mono-support.aspx#802242 . Sure, there is a working demo on http://mono.telerik.com, and there is an official support announcement, but has anyone actually managed to use Telerik ASP.NET with Mono on his own? I have much more success with DevExpress, they don't officially support Mono, yet their controls work quite well with it. Thanks for any help. Marcin -- View this message in context: http://www.nabble.com/Telerik-announces-ASP.NET-RadControls-support-for-Mono-2.4-tp22918726p23132300.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Mon Apr 20 06:10:17 2009 From: robertj at gmx.net (Robert Jordan) Date: Mon, 20 Apr 2009 12:10:17 +0200 Subject: [Mono-list] GAC question In-Reply-To: <23130444.post@talk.nabble.com> References: <23044913.post@talk.nabble.com> <23126929.post@talk.nabble.com> <23130444.post@talk.nabble.com> Message-ID: Get the official Windows binary distribution. It's ready for embedding up to mono.lib, but you should already have this file. Robert fozzie wrote: > Well.. if i run the same assembly using the Mono 2.4 installed version it > works using the same libraries so i suspect it's the source i'm building > from. I'm using a snapshot of rev 131529 from SVN (it corresponded to the > current snapshot) . This built ok, but i suspect may have subtle problems. > > I tried using the Mono 2.4 tarball at > http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2 but it doesn't > build cleanly using MSVC. It's missing the eglib files, and some of the > projects. Does someone know how i can get around this? Perhaps i just need > to checkout the 2.4 source from SVN corresponding to the Mono 2.4 install > for windows.. if so, is the revision available somewhere? > > > Robert Jordan wrote: >> Hi, >> >> the crash you've experienced can only happen if I18N.dll is corrupt >> Since this assembly is not vital, removing the GAC directory has >> no immediate influence on your app. That's why it seems to work when >> the GAC is missing. >> >> >> fozzie wrote: >>> bump.. I'm trying to use a 3rd party dll from within a mono VM embedded >>> in a >>> windows application. I restored the GAC directory name and used gacutil >>> to >>> register the dll using a strong name. But as soon as i run mono_jit_exec >>> the >>> crash occurs. It doesn't occur if the GAC directory is missing. >>> >>> The method variable in ves_icall_get_parameter_info() has its name field >>> set >>> to "get_PrimaryManager". Looking further into method: >>> method.klass.image.name = >>> "c:\AAA\git\1.5.8_bullet\mono\lib\mono\gac\I18N\2.0.0.0__0738eb9f132ed756\I18N.dll" >>> method.klass.name = "Manager" >>> method.klass.name_space = "I18N.Common" >>> >>> I'm using gmcs.bat to compile, but i'm just specifying the input and >>> output >>> files. Am i getting a version mismatch somewhere? >>> >>> >>> >>> fozzie wrote: >>>> hi all.. >>>> >>>> I'm getting a crash stack when i run the teste project with the test.cs >>>> sample: >>>> >>>>> mono.dll!mono_class_from_mono_type(_MonoType * type=0x00000013) Line >>> 4711 + 0x3 bytes C >>>> mono.dll!ves_icall_get_parameter_info(_MonoMethod * method=0x01aee028, >>>> _MonoReflectionMethod * member=0x0012f864) Line 1644 + 0x18 bytes C >>>> 02203260() >>>> mono.dll!mono_get_lmf_addr() Line 2159 + 0xe bytes C >>>> 02203249() >>>> mono.dll!mono_thread_current() Line 1302 + 0xe bytes C >>>> mono.dll!mono_thread_interruption_checkpoint_request(int >>>> bypass_abort_protection=0) Line 3667 C >>>> 00000001() >>>> mono.dll!mono_thread_current() Line 1302 + 0xe bytes C >>>> >>>> The output is as follows: >>>> >>>> 'teste.exe': Loaded >>>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\teste.exe', >>>> Symbols loaded. >>>> 'teste.exe': Loaded 'C:\Windows\System32\ntdll.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\kernel32.dll' >>>> 'teste.exe': Loaded >>>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\mono.dll', >>>> Symbols >>>> loaded. >>>> 'teste.exe': Loaded 'C:\Windows\System32\version.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\msvcrt.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\ws2_32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\advapi32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\nsi.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\psapi.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\winmm.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\user32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\gdi32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\ole32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\oleaut32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\oleacc.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\shell32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\shlwapi.dll' >>>> 'teste.exe': Loaded >>>> 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', >>>> Symbols loaded. >>>> 'teste.exe': Loaded 'C:\Windows\System32\imm32.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\msctf.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\lpk.dll' >>>> 'teste.exe': Loaded 'C:\Windows\System32\usp10.dll' >>>> 'teste.exe': Loaded >>>> 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll' >>>> 'teste.exe': Loaded 'ImageAtBase0x1d0000', No symbols loaded. >>>> 'teste.exe': Unloaded 'ImageAtBase0x1d0000' >>>> 'teste.exe': Loaded 'C:\Windows\System32\mscoree.dll' >>>> 'teste.exe': Loaded >>>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\test.exe', Binary >>>> was >>>> not built with debug information. >>>> 'teste.exe': Loaded >>>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\1.0\mscorlib.dll', >>>> Binary was not built with debug information. >>>> 'teste.exe': Loaded >>>> 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\gac\I18N\1.0.5000.0__0738eb9f132ed756\I18N.dll', >>>> Binary was not built with debug information. >>>> First-chance exception at 0x1019dea9 (mono.dll) in teste.exe: >>>> 0xC0000005: >>>> Access violation reading location 0x00000017. >>>> Unhandled exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: >>>> Access violation reading location 0x00000017. >>>> >>>> >>>> >>>> The weird thing is that the program works when i rename the lib\mono\gac >>>> subdirectory to something else before running it. Can someone explain >>>> this >>>> behavior? An intermingling of windows and mono code, perhaps? >>>> >>>> thanks! >>>> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > From kardosbalint at gmail.com Mon Apr 20 10:13:12 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Mon, 20 Apr 2009 16:13:12 +0200 Subject: [Mono-list] Porting desktop application to OSX/Iphone Message-ID: Hi, I have a desktop application with a local mysql / sqlite database, written in C#, and using WinForms on Windows platform. I'd like to port it to the OSX and the iPhone platform. 1) For the OSX part, I guess I need to do the following: a) complile with mono, and try to run it with mono's winforms implementation b) rewrite the winforms part to use gtk#, to have a native look c) drop the GUI, rebuild it the OSX way, and create a bridge with ObjC# to use the underlying, original C# classes. 2) I too would like to use it on the *official* iPhone platform, so I guess the best option would be variant c). a) I heard about the games using mono, to develop apps in the Unity way ( http://unity3d.com/unity/features/iphone-publishing). b) Is there any other method to include the ObjC# wrapper and mono to an iPhone project? Which way would be the most straightforward? thank you, Balint ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090420/274476bb/attachment.html From kobruleht2 at hot.ee Mon Apr 20 10:53:38 2009 From: kobruleht2 at hot.ee (Andrus) Date: Mon, 20 Apr 2009 17:53:38 +0300 Subject: [Mono-list] Exception and strange result from web service Message-ID: <3CF89257A2F54855931CBE7755502524@andrusnotebook> I tried to host my asmx web service in Apache 2 / FreeBsd with mod_mono/2.4 in ISP. One Web service call returns 500 error code with strange packet: 200005 /9j/4AAQSkZJ... 9DcIGX6j0PuKadhPU/HW88 soap:Server The requested feature is not implemented. Tag contains picture ( a lot of bytes which are not shown) and it is *not terminated*. After that *new* References: <23132300.post@talk.nabble.com> Message-ID: <49EC8D3B.8000903@twistedcode.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 yacoob wrote: > > Miguel de Icaza-2 wrote: >> Hello, >> >>> Excellent!!! >>> >>> A long time waiting for that! >>> >>> The compatible version of RadControls for ASP.NET AJAX is now >>> available for download? >> Yes. >> >> Miguel. >> >> > > Hi, > > I have some doubts about this compatibility of version 2009.402. When I run Mono was tested and bugs were fixed for the 2008.3.1314 Telerik controls release. Also, there were certain fixes committed to the Mono 2.4 branch after 2.4.0 had been released. Please try your application with those Mono and Telerik versions. If you can still reproduce the error, file a bug report with Mono and attach a small test case to the bug. > very basic examples with RadGrid, RadAjax etc. under Mono 2.4 I get many > exceptions, for example InvalidCastException, InvalidOperationException. I > described it more precisely in this thread on telerik's forum: > http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/mono-support.aspx#802242 There's not enough information there to tell what's wrong. > Sure, there is a working demo on http://mono.telerik.com, and there is an > official support announcement, but has anyone actually managed to use > Telerik ASP.NET with Mono on his own? I have much more success with The Telerik demos is a collection of over 800 tests - almost all of them (except for 4 or 5 at this moment) run on Mono just fine. If you have an example which doesn't work, please follow what I said at the top of this mail. regards, marek -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknsjTgACgkQq3909GIf5ure8QCfQNaGOeA0EgtOTbzlSpUqdrbk mDEAnjXR9L8KUJ0VejXm6l1sQ1tzIPsZ =OU1j -----END PGP SIGNATURE----- From chow.chris at gmail.com Mon Apr 20 11:35:06 2009 From: chow.chris at gmail.com (mros) Date: Mon, 20 Apr 2009 08:35:06 -0700 (PDT) Subject: [Mono-list] user permission for mono In-Reply-To: <1240198559.10455.2.camel@lalo-laptop> References: <23106012.post@talk.nabble.com> <1240198559.10455.2.camel@lalo-laptop> Message-ID: <23139089.post@talk.nabble.com> Hi Gonzalo, Thanks for your reply, but what am I aiming to clean up? or do you mean I have to clean up the entire /tmp? -Chris Gonzalo Paniagua Javier-5 wrote: > > On Fri, 2009-04-17 at 14:21 -0700, mros wrote: >> Hi All, >> >> I believe I have some permission setting issue with user account other >> than >> root here is my situation: >> >> I am using mono 2.4 with suse 10.3 >> >> Login as root user run mono everything works like a charm. >> >> Login as other user run the same script with mono and everything same I >> got >> the following error: >> >> NUnit version 2.2.9 >> Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. >> Vorontsov, Charlie Poole. >> Copyright (C) 2000-2003 Philip Craig. >> All Rights Reserved. >> OS Version: Unix 2.6.22.5 Mono Version: 2.0.50727.1433 >> Unhandled Exception: >> System.ExecutionEngineException: Failed to create shadow copy (ensure >> directory exists). > > Clean up your /tmp directory and run it again. > > -Gonzalo > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/user-permission-for-mono-tp23106012p23139089.html Sent from the Mono - General mailing list archive at Nabble.com. From surfzoid at gmail.com Mon Apr 20 11:57:33 2009 From: surfzoid at gmail.com (Petit Eric) Date: Mon, 20 Apr 2009 17:57:33 +0200 Subject: [Mono-list] user permission for mono In-Reply-To: <23139089.post@talk.nabble.com> References: <23106012.post@talk.nabble.com> <1240198559.10455.2.camel@lalo-laptop> <23139089.post@talk.nabble.com> Message-ID: <84776a970904200857r2aceed2ev1815bf4a9b87f79@mail.gmail.com> lets say you user name is chris and so your home is also /home/chris then as superuser in a shell: chown -R chris /home/chris 2009/4/20 mros : > > Hi Gonzalo, > > Thanks for your reply, but what am I aiming to clean up? or do you mean I > have to clean up the entire /tmp? > > -Chris > > > Gonzalo Paniagua Javier-5 wrote: >> >> On Fri, 2009-04-17 at 14:21 -0700, mros wrote: >>> Hi All, >>> >>> I believe I have some permission setting issue with user account other >>> than >>> root here is my situation: >>> >>> I am using mono 2.4 with suse 10.3 >>> >>> Login as root user run mono everything works like a charm. >>> >>> Login as other user run the same script with mono and everything same I >>> got >>> the following error: >>> >>> NUnit version 2.2.9 >>> Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. >>> Vorontsov, Charlie Poole. >>> Copyright (C) 2000-2003 Philip Craig. >>> All Rights Reserved. >>> OS Version: Unix 2.6.22.5 Mono Version: 2.0.50727.1433 >>> Unhandled Exception: >>> System.ExecutionEngineException: Failed to create shadow copy (ensure >>> directory exists). >> >> Clean up your /tmp directory and run it again. >> >> -Gonzalo >> >> >> _______________________________________________ >> Mono-list maillist ?- ?Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > > -- > View this message in context: http://www.nabble.com/user-permission-for-mono-tp23106012p23139089.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From david_aiken at yahoo.com Mon Apr 20 12:04:00 2009 From: david_aiken at yahoo.com (fozzie) Date: Mon, 20 Apr 2009 09:04:00 -0700 (PDT) Subject: [Mono-list] GAC question In-Reply-To: <23044913.post@talk.nabble.com> References: <23044913.post@talk.nabble.com> Message-ID: <23139650.post@talk.nabble.com> ok.. thanks for your help. In anticipation of an answer i built source retrieved via svn co svn://anonsvn.mono-project.com/source/branches/mono-2-4/mono which resolves the problem (or at least the symptom :>). fozzie wrote: > > hi all.. > > I'm getting a crash stack when i run the teste project with the test.cs > sample: > >> mono.dll!mono_class_from_mono_type(_MonoType * type=0x00000013) Line 4711 + 0x3 bytes C > mono.dll!ves_icall_get_parameter_info(_MonoMethod * method=0x01aee028, > _MonoReflectionMethod * member=0x0012f864) Line 1644 + 0x18 bytes C > 02203260() > mono.dll!mono_get_lmf_addr() Line 2159 + 0xe bytes C > 02203249() > mono.dll!mono_thread_current() Line 1302 + 0xe bytes C > mono.dll!mono_thread_interruption_checkpoint_request(int > bypass_abort_protection=0) Line 3667 C > 00000001() > mono.dll!mono_thread_current() Line 1302 + 0xe bytes C > > The output is as follows: > > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\teste.exe', > Symbols loaded. > 'teste.exe': Loaded 'C:\Windows\System32\ntdll.dll' > 'teste.exe': Loaded 'C:\Windows\System32\kernel32.dll' > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\bin\mono.dll', Symbols > loaded. > 'teste.exe': Loaded 'C:\Windows\System32\version.dll' > 'teste.exe': Loaded 'C:\Windows\System32\msvcrt.dll' > 'teste.exe': Loaded 'C:\Windows\System32\ws2_32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\advapi32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' > 'teste.exe': Loaded 'C:\Windows\System32\nsi.dll' > 'teste.exe': Loaded 'C:\Windows\System32\psapi.dll' > 'teste.exe': Loaded 'C:\Windows\System32\winmm.dll' > 'teste.exe': Loaded 'C:\Windows\System32\user32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\gdi32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\ole32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\oleaut32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\oleacc.dll' > 'teste.exe': Loaded 'C:\Windows\System32\shell32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\shlwapi.dll' > 'teste.exe': Loaded > 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', > Symbols loaded. > 'teste.exe': Loaded 'C:\Windows\System32\imm32.dll' > 'teste.exe': Loaded 'C:\Windows\System32\msctf.dll' > 'teste.exe': Loaded 'C:\Windows\System32\lpk.dll' > 'teste.exe': Loaded 'C:\Windows\System32\usp10.dll' > 'teste.exe': Loaded > 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll' > 'teste.exe': Loaded 'ImageAtBase0x1d0000', No symbols loaded. > 'teste.exe': Unloaded 'ImageAtBase0x1d0000' > 'teste.exe': Loaded 'C:\Windows\System32\mscoree.dll' > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\test.exe', Binary was > not built with debug information. > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\1.0\mscorlib.dll', > Binary was not built with debug information. > 'teste.exe': Loaded > 'C:\cygwin\usr\src\mono\mono\msvc\Win32_Debug_eglib\lib\mono\gac\I18N\1.0.5000.0__0738eb9f132ed756\I18N.dll', > Binary was not built with debug information. > First-chance exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: > Access violation reading location 0x00000017. > Unhandled exception at 0x1019dea9 (mono.dll) in teste.exe: 0xC0000005: > Access violation reading location 0x00000017. > > > > The weird thing is that the program works when i rename the lib\mono\gac > subdirectory to something else before running it. Can someone explain this > behavior? An intermingling of windows and mono code, perhaps? > > thanks! > -- View this message in context: http://www.nabble.com/GAC-question-tp23044913p23139650.html Sent from the Mono - General mailing list archive at Nabble.com. From heertsch at gmail.com Sun Apr 19 15:51:59 2009 From: heertsch at gmail.com (Heertsch) Date: Sun, 19 Apr 2009 12:51:59 -0700 (PDT) Subject: [Mono-list] How to get linux constants like PATH_MAX into mono Message-ID: <23126710.post@talk.nabble.com> Hi, is there a way to get the value auf PATH_MAX (linux constant for lenght of a pathname in bytes) into c# code? thanks! Andreas -- View this message in context: http://www.nabble.com/How-to-get-linux-constants-like-PATH_MAX-into-mono-tp23126710p23126710.html Sent from the Mono - General mailing list archive at Nabble.com. From Bernd-Riemke at t-online.de Sun Apr 19 22:28:39 2009 From: Bernd-Riemke at t-online.de (BerndR) Date: Sun, 19 Apr 2009 19:28:39 -0700 (PDT) Subject: [Mono-list] AALPHA 1200, 1,25GB Memory, 26GB Harddisk, Unix 4.0D Message-ID: <23129528.post@talk.nabble.com> Hi, have anyone run MONO on this Machine? ALPHA 800, 1GB Memory, 26GB Harddisk, Unix 4.0D / ALPHA 1200, 1,25GB Memory, 26GB Harddisk, Unix 4.0D Best Regards Bernd -- View this message in context: http://www.nabble.com/AALPHA-1200%2C-1%2C25GB-Memory%2C-26GB-Harddisk%2C-Unix-4.0D-tp23129528p23129528.html Sent from the Mono - General mailing list archive at Nabble.com. From jonpryor at vt.edu Mon Apr 20 14:32:24 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Mon, 20 Apr 2009 14:32:24 -0400 Subject: [Mono-list] How to get linux constants like PATH_MAX into mono In-Reply-To: <23126710.post@talk.nabble.com> References: <23126710.post@talk.nabble.com> Message-ID: <1240252344.17777.44.camel@lina> On Sun, 2009-04-19 at 12:51 -0700, Heertsch wrote: > is there a way to get the value auf PATH_MAX (linux constant for lenght of a > pathname in bytes) into c# code? I would suggest not using any such mechanism, if possible, as not all platforms have an actual filename limit (e.g. GNU HURD). Even for platforms with such a limit, the limit may be limited by the filesystem itself or application compatibility (e.g. ISO has a 180 character path limit [0] while ext3 has a 4096 character path limit, while Windows has a 260 character upper limit regardless of filesystem due to application compatibility restraints). Consequently, it's usually preferable to not hardcode such a limit. In the event that you must have a limit, under Linux you can use Syscall.pathconf() [0] with PathconfName._PC_PATH_MAX: long maxPathLen = Syscall.pathconf("/", PathconfName._PC_PATH_MAX); - Jon [0] http://www.go-mono.com/docs/index.aspx?link=M%3aMono.Unix.Native.Syscall.pathconf(System.String%2cMono.Unix.Native.PathconfName) From paul at all-the-johnsons.co.uk Mon Apr 20 16:38:36 2009 From: paul at all-the-johnsons.co.uk (Paul) Date: Mon, 20 Apr 2009 21:38:36 +0100 Subject: [Mono-list] System.Media.SoundPlayer performing badly on Linux? In-Reply-To: <3d2f29dc0904200126v150f3191hd1cdbff1ef46714@mail.gmail.com> References: <3d2f29dc0904200126v150f3191hd1cdbff1ef46714@mail.gmail.com> Message-ID: <1240259916.10234.12.camel@PB3.linux> Hi, > I've been experimenting with SoundPlayer as a possible cross-platform > backend for notifications in Gazebo. Unfortunately it seems quite > lacking on Linux. When playing a sound, no matter the source, it > skips very badly, making the sound agonizing to listen to. On mono-2.4 and using this code, it sounds like the audio file is being dragged through cold tar with a broken skate! using System; using System.Media; namespace playsound { public class playsound { public static void Main() { SoundPlayer sp = new SoundPlayer(); sp.SoundLocation = @"noise.wav"; Console.WriteLine(sp.SoundLocation); sp.Load(); sp.PlaySync(); Console.WriteLine("Finished"); Console.ReadKey(); } } } TTFN Paul -- ?Sie k?nnen mich aufreizen und wirklich hei? machen! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090420/65167f2e/attachment.bin From cdhowie at gmail.com Mon Apr 20 17:15:09 2009 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 20 Apr 2009 17:15:09 -0400 Subject: [Mono-list] System.Media.SoundPlayer performing badly on Linux? In-Reply-To: <1240259916.10234.12.camel@PB3.linux> References: <3d2f29dc0904200126v150f3191hd1cdbff1ef46714@mail.gmail.com> <1240259916.10234.12.camel@PB3.linux> Message-ID: <3d2f29dc0904201415mb8dfb1ejc937870c352eff8f@mail.gmail.com> On Mon, Apr 20, 2009 at 4:38 PM, Paul wrote: > Hi, > >> I've been experimenting with SoundPlayer as a possible cross-platform >> backend for notifications in Gazebo. ?Unfortunately it seems quite >> lacking on Linux. ?When playing a sound, no matter the source, it >> skips very badly, making the sound agonizing to listen to. > > On mono-2.4 and using this code, it sounds like the audio file is being > dragged through cold tar with a broken skate! Thanks, I wanted to verify that I was not the only one with this problem before reporting a bug since otherwise it may be an isolated config issue. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From susanmackay at optusnet.com.au Mon Apr 20 17:53:48 2009 From: susanmackay at optusnet.com.au (Susan Mackay) Date: Tue, 21 Apr 2009 07:53:48 +1000 Subject: [Mono-list] Porting desktop application to OSX/Iphone Message-ID: <9A29A59F-BF7A-4BBC-AF5C-44F4398EB94A@optusnet.com.au> >Hi, >I have a desktop application with a local mysql / sqlite database, written >in C#, and using WinForms on Windows platform. >I'd like to port it to the OSX and the iPhone platform. > >1) For the OSX part, I guess I need to do the following: > >a) complile with mono, and try to run it with mono's winforms implementation >b) rewrite the winforms part to use gtk#, to have a native look >c) drop the GUI, rebuild it the OSX way, and create a bridge with ObjC# to >use the underlying, original C# classes. > >2) I too would like to use it on the *official* iPhone platform, so I guess >the best option would be variant c). > >a) I heard about the games using mono, to develop apps in the Unity way ( >http://unity3d.com/unity/features/iphone-publishing). >b) Is there any other method to include the ObjC# wrapper and mono to an >iPhone project? > >Which way would be the most straightforward? > >thank you, > >Balint For OS X any of these may well be a viable migration path. Personally, I've found that the c# apps I have written on a windows platform (at least these days) run pretty well unaltered under mono. Of course they don't have the Aqua look and feel but this is OK for my purposes. However, for the iPhone, don't bother even thinking about it. The user interface is really totally different, the space available is tiny in comparison to even a small laptop screen, many of the controls look totally different (e.g. the pop-up or combo-boxes are replaced with the picker control that takes up the entire width of the iPhone screen - you probably need to use it as a modal control the way the Safari browser does on the iPhone) and the whole philosophy of the GUI is different. The successful iPhone apps need to be ones with a limited (but self- contained) purpose, with easy navigation between a couple of screens, each of which does one thing. You need a complete re-think about what the app does, how it can be presented and how the user navigates through it. It is really a different philosophical approach. All of this presupposes that you can get the mono runtime onto the iPhone at the technical level (no idea if this is possible/being done). However the biggest problem with this approach, especially if you want others to use your app, is that the agreement with Apple to put an app into the App Store states that no interpreter other than the Apple provided JVM is permitted. While there is some debate about what this really means and how far it goes (and Apple is the sole decider of these things) I would check with Apple about whether a C# app would be allowed (the JIT compiler could be considered an interpreter) before you spend the time. Seriously, if you want to develop for the iPhone platform, take your existing algorithms etc and use them to create an app from scratch written in Objective-C. Susan (who uses both platforms) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090421/0227e12c/attachment.html From kumpera at gmail.com Mon Apr 20 17:58:16 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Mon, 20 Apr 2009 18:58:16 -0300 Subject: [Mono-list] Porting desktop application to OSX/Iphone In-Reply-To: <9A29A59F-BF7A-4BBC-AF5C-44F4398EB94A@optusnet.com.au> References: <9A29A59F-BF7A-4BBC-AF5C-44F4398EB94A@optusnet.com.au> Message-ID: <8cca42d80904201458v6116e3a7s9802b6d1bd8288bf@mail.gmail.com> On Mon, Apr 20, 2009 at 6:53 PM, Susan Mackay wrote: > > > All of this presupposes that you can get the mono runtime onto the iPhone > at the technical level (no idea if this is possible/being done). However the > biggest problem with this approach, especially if you want others to use > your app, is that the agreement with Apple to put an app into the App Store > states that no interpreter other than the Apple provided JVM is permitted. > While there is some debate about what this really means and how far it goes > (and Apple is the sole decider of these things) I would check with Apple > about whether a C# app would be allowed (the JIT compiler could be > considered an interpreter) before you spend the time. > Mono doesn't require neither a JIT or an interpreter to run on IPhone. It has a feature named full-AOT which allows it to produce a regular binary like to what an ObjC app would do. Cheer, Rodrigo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090420/1dabd247/attachment.html From kardosbalint at gmail.com Mon Apr 20 18:09:36 2009 From: kardosbalint at gmail.com (=?UTF-8?Q?B=C3=A1lint_Kardos?=) Date: Tue, 21 Apr 2009 00:09:36 +0200 Subject: [Mono-list] Porting desktop application to OSX/Iphone In-Reply-To: <8cca42d80904201458v6116e3a7s9802b6d1bd8288bf@mail.gmail.com> References: <9A29A59F-BF7A-4BBC-AF5C-44F4398EB94A@optusnet.com.au> <8cca42d80904201458v6116e3a7s9802b6d1bd8288bf@mail.gmail.com> Message-ID: Hi Rodrigo, so this is what http://mono-project.com/AOT is about, thanks for the information. If I understand correctly, I have to compile every used assembly (System.Data, System.IO etc) into this binary. It's okay, but how can I integrate it with the Iphone GUI? Do I still need some bridge? thanks, Balint ?dv?zlettel with regards Kardos B?lint _______________________________________ http://skaelede.hu 10 (0xA) ?v a magyar weben On Mon, Apr 20, 2009 at 23:58, Rodrigo Kumpera wrote: > > > On Mon, Apr 20, 2009 at 6:53 PM, Susan Mackay > wrote: > >> > >> All of this presupposes that you can get the mono runtime onto the iPhone >> at the technical level (no idea if this is possible/being done). However the >> biggest problem with this approach, especially if you want others to use >> your app, is that the agreement with Apple to put an app into the App Store >> states that no interpreter other than the Apple provided JVM is permitted. >> While there is some debate about what this really means and how far it goes >> (and Apple is the sole decider of these things) I would check with Apple >> about whether a C# app would be allowed (the JIT compiler could be >> considered an interpreter) before you spend the time. >> > > Mono doesn't require neither a JIT or an interpreter to run on IPhone. It > has a feature named full-AOT which allows it to produce a regular binary > like to what an ObjC app would do. > > Cheer, > Rodrigo > > _______________________________________________ > 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/20090421/e8886f2b/attachment.html From kumpera at gmail.com Mon Apr 20 18:19:18 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Mon, 20 Apr 2009 19:19:18 -0300 Subject: [Mono-list] Porting desktop application to OSX/Iphone In-Reply-To: References: <9A29A59F-BF7A-4BBC-AF5C-44F4398EB94A@optusnet.com.au> <8cca42d80904201458v6116e3a7s9802b6d1bd8288bf@mail.gmail.com> Message-ID: <8cca42d80904201519m238b68adld3a60a7824696fd4@mail.gmail.com> Hi B?lint On Mon, Apr 20, 2009 at 7:09 PM, B?lint Kardos wrote: > Hi Rodrigo, > so this is what http://mono-project.com/AOT is about, thanks for the > information. > If I understand correctly, I have to compile every used assembly > (System.Data, System.IO etc) into this binary. > > It's okay, but how can I integrate it with the Iphone GUI? Do I still need > some bridge? > > You will need a bridge similar to the bindings to objc that exists today. AFAIK, currently available bindings are not very complete. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090420/30ccdcdd/attachment.html From kobruleht2 at hot.ee Tue Apr 21 10:17:48 2009 From: kobruleht2 at hot.ee (Andrus) Date: Tue, 21 Apr 2009 17:17:48 +0300 Subject: [Mono-list] Invalid IL code exception from web service call Message-ID: <92317292EA634D9FB8F2C31E07BCD86D@andrusnotebook> I tried my asmx web service in Mono 2.4 Web service call returns the following exception: soap:Server Invalid IL code in (wrapper runtime-invoke)MyApp.Service.StockService:runtime_invoke_string__this___UserCredentials&_string_List`1_List`1 (object,intptr,intptr,intptr): IL_002c: call 0x00000004 How to fix ? Andrus. From heertsch at gmail.com Tue Apr 21 12:08:41 2009 From: heertsch at gmail.com (Andreas Heertsch) Date: Tue, 21 Apr 2009 18:08:41 +0200 Subject: [Mono-list] How to get linux constants like PATH_MAX into mono In-Reply-To: <1240252344.17777.44.camel@lina> References: <23126710.post@talk.nabble.com> <1240252344.17777.44.camel@lina> Message-ID: <5db7d4ff0904210908hbb4b2e2sc400b45ad8daf753@mail.gmail.com> 2009/4/20 Jonathan Pryor > On Sun, 2009-04-19 at 12:51 -0700, Heertsch wrote: > > is there a way to get the value auf PATH_MAX (linux constant for lenght > of a > > pathname in bytes) into c# code? > > I would suggest not using any such mechanism, if possible, as not all > platforms have an actual filename limit (e.g. GNU HURD). Jon, I totally agree! I try to port libusb via LibUsbDotNet to Linux/OSX. The authors from libusb wrote structures with PATH_MAX as field lenght. So I have to integrate this malformed code. :( In the event that you must have a limit, under Linux you can use > Syscall.pathconf() [0] with PathconfName._PC_PATH_MAX: > > long maxPathLen = > Syscall.pathconf("/", PathconfName._PC_PATH_MAX) Thanks, that's what I need. Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090421/2dc26ed1/attachment-0001.html From jonathan.gagnon at croesus.com Tue Apr 21 12:07:45 2009 From: jonathan.gagnon at croesus.com (Jonathan Gagnon) Date: Tue, 21 Apr 2009 12:07:45 -0400 Subject: [Mono-list] Bug in mod-mono 2.4 Message-ID: <99CF746027624FAF998BC7239BD7CCB2@unigiciel.com> Hi, There is a bug in mod-mono 2.4 that produces the following exception every time I try to access the web page : Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Web.Compilation.BuildManager.GetPrecompiledType (System.String virtualPath) [0x00000] at System.Web.Compilation.BuildManager.GetPrecompiledApplicationType () [0x00000] at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000] This bug is new to the 2.4 version and it is fixed in trunk, but the fix has not been merged to the mono-2-4 branch. I was wondering if it would be merged and if there would eventually be a 2.4.1 version with this fix. Just to make sure that you know what fix I am talking about, it was made by Marek Habersack on 2009-04-06 in the /mcs/class/System.Web/System.Web.Compilation/BuildManager.cs file. He added a check to make sure the variable wasn't null before using it. Thanks, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090421/cff2d13f/attachment.html From jonpryor at vt.edu Tue Apr 21 14:58:22 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Tue, 21 Apr 2009 14:58:22 -0400 Subject: [Mono-list] How to get linux constants like PATH_MAX into mono In-Reply-To: <5db7d4ff0904210908hbb4b2e2sc400b45ad8daf753@mail.gmail.com> References: <23126710.post@talk.nabble.com> <1240252344.17777.44.camel@lina> <5db7d4ff0904210908hbb4b2e2sc400b45ad8daf753@mail.gmail.com> Message-ID: <1240340303.18693.10.camel@lina> On Tue, 2009-04-21 at 18:08 +0200, Andreas Heertsch wrote: > I try to port libusb via LibUsbDotNet to Linux/OSX. The authors from > libusb wrote structures with PATH_MAX as field lenght. So I have to > integrate this malformed code. :( You're screwed. The problem is that the array is inline: struct usb_device { struct usb_device *next, *prev; char filename[PATH_MAX + 1]; /* ... */ }; There are really only two ways to easily deal with this in C# [0], by using [MarshalAs]: struct UsbDevice { [MarshalAs(UnmanagedType.ByValArray, SizeConst=???)] public byte[] filename; // ... } or by using fixed arrays: unsafe struct UsbDevice { public fixed byte filename[???]; } Both of these require compile-time constant values, which Syscall.pathconf() cannot provide. I think in this case the only viable solution is a MonoPosixHelper-style wrapper which exposes C#-friendly structures and functions, e.g. /* C */ struct ManagedUsbDevice { void* next; void* prev; char* filename; void* bus; /* ... */ }; int UsbHelper_ToManagedUsbDevice(struct usb_device *from, struct ManagedUsbDevice *to); int UsbHelper_FromManagedUsbDevice(struct ManagedUsbDevice *from, struct usb_device *to); Alternatively, forget structure compatibility from C# and just expose IntPtr to the C# code, and write a set of accessor functions which return struct fields. - Jon [0] http://www.mono-project.com/Dllimport#Arrays_Embedded_Within_Structures -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090421/20ab804c/attachment.html From heertsch at gmail.com Tue Apr 21 15:11:44 2009 From: heertsch at gmail.com (Andreas Heertsch) Date: Tue, 21 Apr 2009 21:11:44 +0200 Subject: [Mono-list] How to get linux constants like PATH_MAX into mono In-Reply-To: <1240340303.18693.10.camel@lina> References: <23126710.post@talk.nabble.com> <1240252344.17777.44.camel@lina> <5db7d4ff0904210908hbb4b2e2sc400b45ad8daf753@mail.gmail.com> <1240340303.18693.10.camel@lina> Message-ID: <5db7d4ff0904211211k6fd3db4dy5eadfbc97757b091@mail.gmail.com> hey Jon, you hit the point. I had a 3rd idea: In libUsbDotNet I use 3 different structures for Win/Linux/OSX (perhaps only 2, if OSX=Linux) and copy the relavant values into the original (LibUsbDevice) structure and let LibUsbDotNet do it's task. Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090421/29ea3686/attachment.html From cdhowie at gmail.com Tue Apr 21 19:22:37 2009 From: cdhowie at gmail.com (Chris Howie) Date: Tue, 21 Apr 2009 19:22:37 -0400 Subject: [Mono-list] System.Media.SoundPlayer performing badly on Linux? In-Reply-To: <1240354539.22647.14.camel@PB3.linux> References: <3d2f29dc0904200126v150f3191hd1cdbff1ef46714@mail.gmail.com> <1240259916.10234.12.camel@PB3.linux> <3d2f29dc0904201415mb8dfb1ejc937870c352eff8f@mail.gmail.com> <1240354539.22647.14.camel@PB3.linux> Message-ID: <3d2f29dc0904211622we6783a6t1195ec89869d33f6@mail.gmail.com> On Tue, Apr 21, 2009 at 6:55 PM, Paul wrote: > Hi Chris, > >> Thanks, I wanted to verify that I was not the only one with this >> problem before reporting a bug since otherwise it may be an isolated >> config issue. > > Did you open a BZ on this? Yes, sorry: https://bugzilla.novell.com/show_bug.cgi?id=496690 -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From miguel at novell.com Tue Apr 21 19:39:42 2009 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 21 Apr 2009 19:39:42 -0400 Subject: [Mono-list] Porting desktop application to OSX/Iphone In-Reply-To: References: Message-ID: <1240357182.17881.46.camel@erandi.site> > 2) I too would like to use it on the *official* iPhone platform, so I > guess the best option would be variant c). The only mechanism supported today is Unity. Anything else right now is out of the question, it is too hard, too fragile and will not support any useful API. Hopefully this will change later in the summer, but we are tied up until then. Miguel > From jhill at arcfocus.com Wed Apr 22 00:01:51 2009 From: jhill at arcfocus.com (Joseph Hill) Date: Tue, 21 Apr 2009 23:01:51 -0500 Subject: [Mono-list] Apache mod_mono configurator Message-ID: <1240372911.10209.1311693789@webmail.messagingengine.com> Hey all We've deployed an Apache mod_mono configuration tool to: http://go-mono.com/config-mod-mono/ The form at the above URL can generate mod_mono configurations for virtual hosts and virtual directories. This is particularly useful for hosting ASP.NET MVC applications, but can also be helpful in ensuring that an ASP.NET application has mono debugging and platform abstraction (MONO_IOMAP) properly configured. More details on my blog: http://beyondfocus.com/mono/mod-mono-configurator/ Suggestions and feedback welcome and appreciated. Joseph -- Joseph Hill hill_jm at hotmail.com From samuraidanieru at gmail.com Wed Apr 22 05:27:49 2009 From: samuraidanieru at gmail.com (danieru) Date: Wed, 22 Apr 2009 02:27:49 -0700 (PDT) Subject: [Mono-list] high latency on socket between linux and windows Message-ID: <23164622.post@talk.nabble.com> Hello, When I attempt socket communications between my app on Ubuntu and my app on Vista, I'm seeing really bad latency issues: It's taking over 20 seconds from the send till anything shows up on the other side. Early on I got my socket functions working well (developing on Ubuntu), no latency issues at all when all my socket communications were just on the linux box. I also ran some tests early on between two linux machines to make sure the sockets were behaving like I wanted them to, and it all worked fine. Interestingly, the socket communications also work just fine when I'm using them just on the Vista machine. I'm only getting the 20 second plus latency issues when I'm talking linux<-->Vista. Just for kicks, I set the 'nodelay' property to 'true', but that didn't make any difference. Can anyone offer some insight on this? -- View this message in context: http://www.nabble.com/high-latency-on-socket-between-linux-and-windows-tp23164622p23164622.html Sent from the Mono - General mailing list archive at Nabble.com. From markusbischof at kuka-roboter.de Wed Apr 22 02:47:08 2009 From: markusbischof at kuka-roboter.de (Markus Bischof) Date: Tue, 21 Apr 2009 23:47:08 -0700 (PDT) Subject: [Mono-list] Mono for VxWorks Message-ID: <23170584.post@talk.nabble.com> Hello, I was wondering if Mono is available for VxWorks. I could not find anything on the web, so I decided to post in this mailing list. And as VxWorks is a realtime OS, are there, if available, any differences in the behavior (e.g. Garbage Collection) of Mono? Kind Regards -- View this message in context: http://www.nabble.com/Mono-for-VxWorks-tp23170584p23170584.html Sent from the Mono - General mailing list archive at Nabble.com. From kumpera at gmail.com Wed Apr 22 09:33:33 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 22 Apr 2009 10:33:33 -0300 Subject: [Mono-list] Mono for VxWorks In-Reply-To: <23170584.post@talk.nabble.com> References: <23170584.post@talk.nabble.com> Message-ID: <8cca42d80904220633x69dc57b2kac043470fa7d3286@mail.gmail.com> On Wed, Apr 22, 2009 at 3:47 AM, Markus Bischof < markusbischof at kuka-roboter.de> wrote: > > Hello, > > I was wondering if Mono is available for VxWorks. I could not find anything > on the web, so I decided to post in this mailing list. > > And as VxWorks is a realtime OS, are there, if available, any differences > in > the behavior (e.g. Garbage Collection) of Mono? > > Kind Regards > -- Mono have not been ported to VxWorks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090422/9226406a/attachment.html From elmar at haneke.de Wed Apr 22 11:27:07 2009 From: elmar at haneke.de (Elmar Haneke) Date: Wed, 22 Apr 2009 17:27:07 +0200 Subject: [Mono-list] Combining Mono and VB6 Code Message-ID: <49EF374B.7060209@haneke.de> Hi, I'm going to combine existing Visual-Basic 6 code with new mono based code which should in the long term replace VB6 code. Can you give me some suggestions how communication between both parts nan be done? Both parts have to be able to react on open windows at the same time, this reaction can consist in triggering some action in the other part of code. Elmar From opgenorth at gmail.com Wed Apr 22 12:13:14 2009 From: opgenorth at gmail.com (Tom Opgenorth) Date: Wed, 22 Apr 2009 10:13:14 -0600 Subject: [Mono-list] Combining Mono and VB6 Code In-Reply-To: <49EF374B.7060209@haneke.de> References: <49EF374B.7060209@haneke.de> Message-ID: <140160570904220913p64244afcg80a062758e26e9cb@mail.gmail.com> COM is one thing you might want to look at. With COM Interop you can have your VB6 app use your .NET code. You can also write ActiveX controls in .NET, and use those in your VB6 app. On Wed, Apr 22, 2009 at 09:27, Elmar Haneke wrote: > Hi, > > I'm going to combine existing Visual-Basic 6 code with new mono based > code which should in the long term replace VB6 code. > > Can you give me some suggestions how communication between both parts > nan be done? Both parts have to be able to react on open windows at the > same time, this reaction can consist in triggering some action in the > other part of code. > > Elmar > > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- http://www.opgenorth.net From jat14 at psu.edu Wed Apr 22 15:37:04 2009 From: jat14 at psu.edu (Janice Totleben) Date: Wed, 22 Apr 2009 15:37:04 -0400 Subject: [Mono-list] mono/asp.net/mysql.data.mysqlclient Message-ID: <200904221937.n3MJb6cJ072508@f04n01.cac.psu.edu> An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090422/c5fc2e28/attachment.html From ishwor at loopback.ath.cx Wed Apr 22 19:52:37 2009 From: ishwor at loopback.ath.cx (Ishwor Gurung) Date: Thu, 23 Apr 2009 09:22:37 +0930 Subject: [Mono-list] Checking memory leak Message-ID: <49EFADC5.6070200@loopback.ath.cx> Hi list, Whats an appropriate way to check for memory leak of a mono application? I googled around with some example using valgrind for mono app but couldn't find any concrete examples. What I've essentially done so far using valgrind is: $ valgrind --tool=memcheck --leak-check=full --show-reachable=yes mono ./ConnectUTest.exe This however, always produces memory leak (~14k/test on five runs so far): ==15141== LEAK SUMMARY: ==15141== definitely lost: 14,408 bytes in 760 blocks. ==15141== indirectly lost: 2,496 bytes in 126 blocks. ==15141== possibly lost: 12,460 bytes in 419 blocks. ==15141== still reachable: 2,569,056 bytes in 16,726 blocks. ==15141== suppressed: 0 bytes in 0 blocks. Is this something I should worry about in itself or let the Mono's GC do its job with the memory and not worry about memory leaks? Can someone confirm if these are even a real memory leak (the one above with 14,408 bytes gone!)? Thanks. -- Cheers, Ishwor Gurung -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2623 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090423/8cba52bb/attachment.bin From kumpera at gmail.com Wed Apr 22 20:03:50 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 22 Apr 2009 21:03:50 -0300 Subject: [Mono-list] Checking memory leak In-Reply-To: <49EFADC5.6070200@loopback.ath.cx> References: <49EFADC5.6070200@loopback.ath.cx> Message-ID: <8cca42d80904221703p51400fc8h46d5bdd98bc52a76@mail.gmail.com> Hi, On Wed, Apr 22, 2009 at 8:52 PM, Ishwor Gurung wrote: > Hi list, > > Whats an appropriate way to check for memory leak of a mono application? > > I googled around with some example using valgrind for mono app but > couldn't find any concrete examples. What I've essentially done so far > using valgrind is: > $ valgrind --tool=memcheck --leak-check=full --show-reachable=yes mono > ./ConnectUTest.exe > > This however, always produces memory leak (~14k/test on five runs so far): > > ==15141== LEAK SUMMARY: > ==15141== definitely lost: 14,408 bytes in 760 blocks. > ==15141== indirectly lost: 2,496 bytes in 126 blocks. > ==15141== possibly lost: 12,460 bytes in 419 blocks. > ==15141== still reachable: 2,569,056 bytes in 16,726 blocks. > ==15141== suppressed: 0 bytes in 0 blocks. > > > Is this something I should worry about in itself or let the Mono's GC > do its job with the memory and not worry about memory leaks? Can > someone confirm if these are even a real memory leak (the one above > with 14,408 bytes gone!)? > > Thanks. Valgrind is the best too to dig for memory leaks. But it will only report problems of unmanaged memory leaks. For managed memory, just trust the GC. Mono is supposed to do a clean shutdown, but we still have some small non-important fix leaks on things like support code. All of them leak a fixed set of memory at startup. Anyway, the best way to go is if your attach your valgrind file so I can take a look. Cheers, Rodrigo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090422/35312600/attachment.html From ishwor at loopback.ath.cx Wed Apr 22 20:20:40 2009 From: ishwor at loopback.ath.cx (Ishwor Gurung) Date: Thu, 23 Apr 2009 09:50:40 +0930 Subject: [Mono-list] Checking memory leak In-Reply-To: <8cca42d80904221703p51400fc8h46d5bdd98bc52a76@mail.gmail.com> References: <49EFADC5.6070200@loopback.ath.cx> <8cca42d80904221703p51400fc8h46d5bdd98bc52a76@mail.gmail.com> Message-ID: <49EFB458.6060802@loopback.ath.cx> Hi Rodrigo, Rodrigo Kumpera wrote: > Hi, [ ... ] > Valgrind is the best too to dig for memory leaks. But it will only report > problems of > unmanaged memory leaks. For managed memory, just trust the GC. Right. > Mono is supposed to do a clean shutdown, but we still have some small > non-important > fix leaks on things like support code. All of them leak a fixed set of > memory at startup. Could you expound on this a little more(a web link/post/documentation would do as well) ? > Anyway, the best way to go is if your attach your valgrind file so I can > take a look. Thanks its attached -- Cheers, Ishwor Gurung -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2623 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090423/d8e10002/attachment-0001.bin From ptrajkumar at gmail.com Wed Apr 22 12:25:57 2009 From: ptrajkumar at gmail.com (ptr2009) Date: Wed, 22 Apr 2009 09:25:57 -0700 (PDT) Subject: [Mono-list] mono and launching an application on windows with 32bit Message-ID: <23175549.post@talk.nabble.com> hey all I am testing a .net exe against mono on windows. Is there a way to force mono to launch the .net exe as 32bit application. My .net app depends on some native dlls for which i dont have the 64bit version. Compiling using nant with platform=x86 and against mono profile says that mono doesn't support this platform. Against .net 3.5 profile platform x86 works and sets the 32bit flag in the PE header. Does mono respect the 32bit flag in the PE headers ? Thanks Raj -- View this message in context: http://www.nabble.com/mono-and-launching-an-application-on-windows-with-32bit-tp23175549p23175549.html Sent from the Mono - General mailing list archive at Nabble.com. From ae at op5.se Thu Apr 23 04:11:09 2009 From: ae at op5.se (Andreas Ericsson) Date: Thu, 23 Apr 2009 10:11:09 +0200 Subject: [Mono-list] Checking memory leak In-Reply-To: <49EFADC5.6070200@loopback.ath.cx> References: <49EFADC5.6070200@loopback.ath.cx> Message-ID: <49F0229D.6010209@op5.se> Ishwor Gurung wrote: > Hi list, > > Whats an appropriate way to check for memory leak of a mono application? > > I googled around with some example using valgrind for mono app but > couldn't find any concrete examples. What I've essentially done so far > using valgrind is: > $ valgrind --tool=memcheck --leak-check=full --show-reachable=yes mono > ./ConnectUTest.exe > > This however, always produces memory leak (~14k/test on five runs so far): > > ==15141== LEAK SUMMARY: > ==15141== definitely lost: 14,408 bytes in 760 blocks. > ==15141== indirectly lost: 2,496 bytes in 126 blocks. > ==15141== possibly lost: 12,460 bytes in 419 blocks. > ==15141== still reachable: 2,569,056 bytes in 16,726 blocks. > ==15141== suppressed: 0 bytes in 0 blocks. > > > Is this something I should worry about in itself or let the Mono's GC > do its job with the memory and not worry about memory leaks? Can > someone confirm if these are even a real memory leak (the one above > with 14,408 bytes gone!)? > If valgrind reports it as a leak, then it is a leak, but only in the sense that no reference points *exactly* to the leaked area. For example, consider this code (in C, sorry. I don't know how to produce a leak in C#): --%<--%<-- static unsigned long offset; static char *buf; void some_func(void) { buf = malloc(5000); offset = 4500; buf += offset; } --%<--%<-- but that's not entirely true, because the exact reference to *buf can be determined by exact_ref = buf - offset; Granted, this is a pretty weird way of using offsets, but it's a valid one that can be done without leaking memory. I've sometimes used it myself to microoptimize tight loops, but only on static sized data where the offset is always exact_ref = buf - STATIC_SIZE; In short; Valgrind sometimes gives false positives. So long as the leaked memory is small-ish (14K is nothing) and doesn't grow over time, I wouldn't worry about it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. From donbonifacio at gmail.com Thu Apr 23 11:26:16 2009 From: donbonifacio at gmail.com (Pedro Santos) Date: Thu, 23 Apr 2009 16:26:16 +0100 Subject: [Mono-list] Mono/XSP mem/cpu usage Message-ID: Hello, I'm using mono-fastcgi-server2 for a while and I've noticed the following: ? the amount of memory that mono uses increases a lot, I used to have mono with 600Mb, Now I restart mono every couple of hours (it stays at an average of 250M) ? Sometimes mono uses a _lot_ of CPU, even though we don't have much load at that time Here's a snap of top at the server: top - 16:18:26 up 25 days, 3:15, 1 user, load average: 2.03, 2.09, 2.14 Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie Cpu(s): 32.6%us, 8.9%sy, 0.0%ni, 49.9%id, 0.0%wa, 0.0%hi, 8.6%si, 0.0%st Mem: 1033300k total, 838260k used, 195040k free, 152352k buffers Swap: 1510068k total, 95716k used, 1414352k free, 256572k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 26810 root 20 0 327m 266m 33m S 200 26.4 325:03.89 mono The mono process is running for about 3h and is using 200% of CPU. If I restart the web process, it stays steady at 0-30, but at some time it increases to 100/200% and stays there. I really don't know if this is mono's fault or my application's fault. How can I troubleshoot this? Thank you, PS: I'm using everything 2.4 -- Pedro Santos Home - http://psantos.zi-yu.com Work - http://www.pdmfc.com The future - http://www.orionsbelt.eu From shana.ufie at gmail.com Thu Apr 23 13:56:04 2009 From: shana.ufie at gmail.com (Andreia Gaita) Date: Thu, 23 Apr 2009 18:56:04 +0100 Subject: [Mono-list] Welcome Summer of Code 2009 Students! Message-ID: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> The results* are in, and this year the Mono project has been awarded 9 slots. We had a lot of strong applications, and it was very hard to choose between them - we had many more proposals worthy of support, and there was a lot of fighting** between the Mono devs to narrow down the list to the final 9. The selected projects are: Improving, testing and integrating ParallelFx into Mono Jeremie Laval CIL optimizer Korn?l P?l Class Designer Add-in for MonoDevelop Manuel Alejandro Ceron Estrada Implementing Git as class libraries in managed code Matt Enright Mono.Simd Amd64 Port Jerry Maine Database Designer Add-in for MonoDevelop Luis Ochoa TaskForce - Task focussed workflow for MonoDevelop Anirudh Sanjeev New features for VB.Net 9 Alexandru Mihai Muscar PL/Mono: a procedural language for PostgreSQL Olexandr Melnyk We are now in the community bonding period, which means it's time to get to know your mentors, get comfortable with any tools you're going to need to use on the project, refine your project goals and scope, and do any setup required to get ready for coding. Things to do at this time: - subscribe to the mono-soc mailing list - http://groups.google.com/group/mono-soc-2009 - if you haven't yet, join us on irc.gimpnet.org, the SoC-specific channel is #monosoc - get excited! Thank you to everyone who submitted an application, and congratulations to the accepted students! andreia|gaita * http://socghop.appspot.com/org/home/google/gsoc2009/mono ** no monkeys were hurt in the process From abe.gillespie at gmail.com Thu Apr 23 14:07:11 2009 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Thu, 23 Apr 2009 14:07:11 -0400 Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> Message-ID: Congrats, all! And PL/Mono - hell yeah! -Abe On Thu, Apr 23, 2009 at 1:56 PM, Andreia Gaita wrote: > The results* are in, and this year the Mono project has been awarded 9 > slots. We had a lot of strong applications, and it was very hard to > choose between them - we had many more proposals worthy of support, > and there was a lot of fighting** between the Mono devs to narrow down > the list to the final 9. > > The selected projects are: > > Improving, testing and integrating ParallelFx into Mono > Jeremie Laval > > CIL optimizer > Korn?l P?l > > Class Designer Add-in for MonoDevelop > Manuel Alejandro Ceron Estrada > > Implementing Git as class libraries in managed code > Matt Enright > > Mono.Simd Amd64 Port > Jerry Maine > > Database Designer Add-in for MonoDevelop > Luis Ochoa > > TaskForce - Task focussed workflow for MonoDevelop > Anirudh Sanjeev > > New features for VB.Net 9 > Alexandru Mihai Muscar > > PL/Mono: a procedural language for PostgreSQL > Olexandr Melnyk > > We are now in the community bonding period, which means it's time to > get to know your mentors, get comfortable with any tools you're going > to need to use on the project, refine your project goals and scope, > and do any setup required to get ready for coding. > > Things to do at this time: > > - subscribe to the mono-soc mailing list - > http://groups.google.com/group/mono-soc-2009 > - if you haven't yet, join us on irc.gimpnet.org, the SoC-specific > channel is #monosoc > - get excited! > > Thank you to everyone who submitted an application, and > congratulations to the accepted students! > > andreia|gaita > > * http://socghop.appspot.com/org/home/google/gsoc2009/mono > ** no monkeys were hurt in the process > _______________________________________________ > Mono-list maillist ?- ?Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From lionel.keene at gmail.com Thu Apr 23 14:27:48 2009 From: lionel.keene at gmail.com (LKeene) Date: Thu, 23 Apr 2009 11:27:48 -0700 (PDT) Subject: [Mono-list] Mono starts...then bombs. Message-ID: <23197503.post@talk.nabble.com> Hello all. I've been developing a C# app using Visual Studio and targeting .NET 2.0. I've been trying to simultaneously test it on both the Microsoft framework and the Mono framework, and for a while was doing so regularly. The Visual Studio binary always seemed to run just fine on Mono. I've neglected to test the program against Mono for the past few weeks, however, as I've been adding additional functionality. Today I decided to test against Mono again ( v2.2). I opened the Mono command prompt and ran my application from there. To my horror, I saw the main window begin to draw...and then the app just closes. I do not get any error message from Mono (I've tried running release and debug versions) so I'm at a loss as to how to begin diagnosing the problem. Running on the Microsoft framework is problem free. Does anyone have any idea how I can at least get a rough idea of where the problem is? As I mentioned, I'm targeting .NET 2.0 as well as Windows Forms, GDI+, and a hefty dose of System.Threading. Thanks in advance everyone. -- View this message in context: http://www.nabble.com/Mono-starts...then-bombs.-tp23197503p23197503.html Sent from the Mono - General mailing list archive at Nabble.com. From monkey at jpobst.com Thu Apr 23 14:36:56 2009 From: monkey at jpobst.com (Jonathan Pobst) Date: Thu, 23 Apr 2009 13:36:56 -0500 Subject: [Mono-list] Mono starts...then bombs. In-Reply-To: <23197503.post@talk.nabble.com> References: <23197503.post@talk.nabble.com> Message-ID: <49F0B548.2040109@jpobst.com> Did you try redirecting the error output to a file so you can see it? mono --debug myapp.exe 2> error.log Jonathan LKeene wrote: > Hello all. I've been developing a C# app using Visual Studio and targeting > .NET 2.0. I've been trying to simultaneously test it on both the Microsoft > framework and the Mono framework, and for a while was doing so regularly. > The Visual Studio binary always seemed to run just fine on Mono. I've > neglected to test the program against Mono for the past few weeks, however, > as I've been adding additional functionality. Today I decided to test > against Mono again ( v2.2). I opened the Mono command prompt and ran my > application from there. To my horror, I saw the main window begin to > draw...and then the app just closes. I do not get any error message from > Mono (I've tried running release and debug versions) so I'm at a loss as to > how to begin diagnosing the problem. Running on the Microsoft framework is > problem free. > > Does anyone have any idea how I can at least get a rough idea of where the > problem is? As I mentioned, I'm targeting .NET 2.0 as well as Windows Forms, > GDI+, and a hefty dose of System.Threading. > > Thanks in advance everyone. > > From bellinux at gmail.com Thu Apr 23 14:37:16 2009 From: bellinux at gmail.com (Rodrigo Cuevas) Date: Thu, 23 Apr 2009 14:37:16 -0400 Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> Message-ID: <49F0B55C.8000804@gmail.com> PL/Mono awesome project Abe Gillespie escribi?: > Congrats, all! > > And PL/Mono - hell yeah! > > -Abe > > On Thu, Apr 23, 2009 at 1:56 PM, Andreia Gaita wrote: > >> The results* are in, and this year the Mono project has been awarded 9 >> slots. We had a lot of strong applications, and it was very hard to >> choose between them - we had many more proposals worthy of support, >> and there was a lot of fighting** between the Mono devs to narrow down >> the list to the final 9. >> >> The selected projects are: >> >> Improving, testing and integrating ParallelFx into Mono >> Jeremie Laval >> >> CIL optimizer >> Korn?l P?l >> >> Class Designer Add-in for MonoDevelop >> Manuel Alejandro Ceron Estrada >> >> Implementing Git as class libraries in managed code >> Matt Enright >> >> Mono.Simd Amd64 Port >> Jerry Maine >> >> Database Designer Add-in for MonoDevelop >> Luis Ochoa >> >> TaskForce - Task focussed workflow for MonoDevelop >> Anirudh Sanjeev >> >> New features for VB.Net 9 >> Alexandru Mihai Muscar >> >> PL/Mono: a procedural language for PostgreSQL >> Olexandr Melnyk >> >> We are now in the community bonding period, which means it's time to >> get to know your mentors, get comfortable with any tools you're going >> to need to use on the project, refine your project goals and scope, >> and do any setup required to get ready for coding. >> >> Things to do at this time: >> >> - subscribe to the mono-soc mailing list - >> http://groups.google.com/group/mono-soc-2009 >> - if you haven't yet, join us on irc.gimpnet.org, the SoC-specific >> channel is #monosoc >> - get excited! >> >> Thank you to everyone who submitted an application, and >> congratulations to the accepted students! >> >> andreia|gaita >> >> * http://socghop.appspot.com/org/home/google/gsoc2009/mono >> ** no monkeys were hurt in the process >> _______________________________________________ >> 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 -------------- A non-text attachment was scrubbed... Name: bellinux.vcf Type: text/x-vcard Size: 177 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090423/2293af52/attachment.vcf From timmy at mailinator.com Thu Apr 23 14:42:59 2009 From: timmy at mailinator.com (Shean Paule) Date: Thu, 23 Apr 2009 11:42:59 -0700 (PDT) Subject: [Mono-list] Download and display PNG in Cairo Message-ID: <23197517.post@talk.nabble.com> Hi. I'm trying to download a PNG file into a buffer and display it via Cairo. I decided to do this via "Systems.Net" and "Cairo" itself. I'm using C#, Gtk, Cairo on MonoDevelop VMWare. This is the closest I have come: string picUri = "http://blabla.com/my.png"; // Create the requests. WebRequest requestPic = WebRequest.Create(picUri); WebResponse responsePic = requestPic.GetResponse(); System.IO.Stream test = responsePic.GetResponseStream(); Surface MySurface = new ImageSurface(StreamToArray(test),Format.ARGB32,640,640,0); // CRASH static protected byte[] StreamToArray(System.IO.Stream st) { // Source: http://pupeno.com/blog/svgs-in-.net-using-cairo-and-gtk-and-c if(st.Length > int.MaxValue) { // TODO exception or something. return null; } else { // TODO exception System.IO.StreamReader str = new System.IO.StreamReader(st); System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding(); return encoder.GetBytes(str.ReadToEnd()); } } I just can't find a proper way to do this and have run out of sources on this problem. Any help would be greatly appreciated. I'm also happy about workarounds (e.g. download the file to a .png - I know how to load those into Cairo) -- View this message in context: http://www.nabble.com/Download-and-display-PNG-in-Cairo-tp23197517p23197517.html Sent from the Mono - General mailing list archive at Nabble.com. From monkey at jpobst.com Thu Apr 23 14:52:15 2009 From: monkey at jpobst.com (Jonathan Pobst) Date: Thu, 23 Apr 2009 13:52:15 -0500 Subject: [Mono-list] Download and display PNG in Cairo In-Reply-To: <23197517.post@talk.nabble.com> References: <23197517.post@talk.nabble.com> Message-ID: <49F0B8DF.7000307@jpobst.com> I don't know about Cairo, but the easy way to download a file is: WebClient wc = new WebClient (); wc.DownloadFile ("http://www.blah.com/myimage.png", "my.png"); If you want the bytes instead of writing to disk, you can use: byte[] bytes = wc.DownloadData ("http://www.blah.com/myimage.png"); Jonathan Shean Paule wrote: > Hi. I'm trying to download a PNG file into a buffer and display it via Cairo. > I decided to do this via "Systems.Net" and "Cairo" itself. > > I'm using C#, Gtk, Cairo on MonoDevelop VMWare. > > > This is the closest I have come: > > string picUri = "http://blabla.com/my.png"; > // Create the requests. > WebRequest requestPic = WebRequest.Create(picUri); > WebResponse responsePic = requestPic.GetResponse(); > System.IO.Stream test = responsePic.GetResponseStream(); > Surface MySurface = new > ImageSurface(StreamToArray(test),Format.ARGB32,640,640,0); // CRASH > > static protected byte[] StreamToArray(System.IO.Stream st) { > // Source: > http://pupeno.com/blog/svgs-in-.net-using-cairo-and-gtk-and-c > if(st.Length > int.MaxValue) { > // TODO exception or something. > return null; > } else { > // TODO exception > System.IO.StreamReader str = new > System.IO.StreamReader(st); > System.Text.UTF8Encoding encoder = new > System.Text.UTF8Encoding(); > return encoder.GetBytes(str.ReadToEnd()); > } > } > > I just can't find a proper way to do this and have run out of sources on > this problem. Any help would be greatly appreciated. > > I'm also happy about workarounds (e.g. download the file to a .png - I know > how to load those into Cairo) From lionel.keene at gmail.com Thu Apr 23 16:18:28 2009 From: lionel.keene at gmail.com (LKeene) Date: Thu, 23 Apr 2009 13:18:28 -0700 (PDT) Subject: [Mono-list] Mono starts...then bombs. In-Reply-To: <23197503.post@talk.nabble.com> References: <23197503.post@talk.nabble.com> Message-ID: <23200093.post@talk.nabble.com> Okay, thanks to one of the forum members here I've got an error log (Note: "MDXTestHarness" is the name of my app): "Unhandled Exception: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\System.Drawing\System.Drawing\gdipFunctions.cs:219 at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x00017] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\System.Drawing\System.Drawing\Bitmap.cs:97 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int,System.Drawing.Imaging.PixelFormat) at MDXTestHarness.ScaleBarDisplay.GenerateDisplay () [0x00000] at (wrapper remoting-invoke-with-check) MDXTestHarness.ScaleBarDisplay:GenerateDisplay () at MDXTestHarness.MainForm..ctor (System.String fileName) [0x00000] at (wrapper remoting-invoke-with-check) MDXTestHarness.MainForm:.ctor (string) at MDXTestHarness.Program.Main () [0x00000] " It seems like the problem is somewhere in the GDI+ drawing. I may have to actually have to throw some exception handling in. I've been lazy and not been bothering to do this to date. Anyone seen an error like this before or have any further insite into the problem? -- View this message in context: http://www.nabble.com/Mono-starts...then-bombs.-tp23197503p23200093.html Sent from the Mono - General mailing list archive at Nabble.com. From ce_doru at yahoo.com Thu Apr 23 17:20:36 2009 From: ce_doru at yahoo.com (Doru) Date: Thu, 23 Apr 2009 14:20:36 -0700 (PDT) Subject: [Mono-list] Client - Server Cross platform Message-ID: <23203298.post@talk.nabble.com> Hi, my name is Doru and I am trying to use monodevelop to make a cross-platform client - server application. The client will be able to comunicate with another client in the list and the server should comunicate with any client as well as pass information from one client to another. I have already succeeded in connecting one client to the server, and it runs fine as long as the server and client are working on the same platform (windows - windows or linux - linux), but when i put the server on linux and i try to connect with my client from windows, the client app. crashes. I'm using System.net.socket in my applications and the latest version of opensuse with monodevelop. My question is: Can i communicate between linux - windows and backwards using mono and System.net.socket...? and if so, could someone please give me an example of such an application, and also is there any telnet application that runs on windows and can control linux, because i want to see if i can connect to my linux using telnet. Thank you very much! -- View this message in context: http://www.nabble.com/Client---Server-Cross-platform-tp23203298p23203298.html Sent from the Mono - General mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090423/eb7f8526/attachment.html From markusbischof at kuka-roboter.de Fri Apr 24 02:58:05 2009 From: markusbischof at kuka-roboter.de (Markus Bischof) Date: Thu, 23 Apr 2009 23:58:05 -0700 (PDT) Subject: [Mono-list] Mono for VxWorks In-Reply-To: <8cca42d80904220633x69dc57b2kac043470fa7d3286@mail.gmail.com> References: <23170584.post@talk.nabble.com> <8cca42d80904220633x69dc57b2kac043470fa7d3286@mail.gmail.com> Message-ID: <23210963.post@talk.nabble.com> Hi! Thanks for your reply. As Mono has not been ported to VxWorks, yet, are there any plans to do that? Rodrigo Kumpera wrote: > > On Wed, Apr 22, 2009 at 3:47 AM, Markus Bischof < > markusbischof at kuka-roboter.de> wrote: > >> >> Hello, >> >> I was wondering if Mono is available for VxWorks. I could not find >> anything >> on the web, so I decided to post in this mailing list. >> >> And as VxWorks is a realtime OS, are there, if available, any differences >> in >> the behavior (e.g. Garbage Collection) of Mono? >> >> Kind Regards >> -- > > > Mono have not been ported to VxWorks. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Mono-for-VxWorks-tp23170584p23210963.html Sent from the Mono - General mailing list archive at Nabble.com. From ae at op5.se Fri Apr 24 04:22:35 2009 From: ae at op5.se (Andreas Ericsson) Date: Fri, 24 Apr 2009 10:22:35 +0200 Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> Message-ID: <49F176CB.9040805@op5.se> Andreia Gaita wrote: > > Implementing Git as class libraries in managed code > Matt Enright > Ahoy. I'm one of the several hundred git developers, and one of the seven libgit2 developers. First of all, let me say I'm pretty excited about this, since World Domination is, as always, the ultimate goal of any oss project. I'll help in any way I can. My C# is far from stellar but my knowledge of git internals is not far from awesome ;-) Besides, algorithms aren't all that different between C and C#. It's mostly code layout, function names and namespace design that differs IME. Second of all, I'd like to wave the warning-flag here a bit. This project needs delimiters in order to have a chance to succeed. It's simply not possible to re-implement all of git in a new language for a single person in the short period of time that GSoC runs. This is particularly true if the developer in question lacks extensive knowledge about how git internals work today. A viable goal would be to restrict this to one of two areas: * Catering to IDE's that wish to incorporate version control into their UI (ie, write objects into the git object database, create tags and commits, switch branches, etc). OR * Catering to applications that wishes to display the history of a particular repository (think gitk or gitweb). Note that both of these goals will still be pretty hard to achieve, but at least it will be within reach if the student and his mentors are really, really good. The reason I fear a full re-implementation is not possible is primarily that git is still actively developed by a team of about 40-50 fairly active contributors. Keeping pace with them while starting from scratch will be challenging, to say the least. The other reasons are (in order): * The code is far from trivial, and there's a *lot* of it in C (around 100k lines for current 'master', not counting perl, tcl and shell-scripts). * jgit, which has been worked on extensively by one of git's most prominent contributors along with many others, *still* doesn't implement *all* of git.git. It's been in development for three years now. * Without support from git.git, there is no way, ever, that this will result in anything. Last years mono-git project didn't request any help what so ever from the git mailing list or any of git.git's prominent contributors. I hope I'm partially addressing that by coming here and announcing my interest in helping out. Time will tell, I suppose ;-) Hope I didn't put too big a stick in the spokes of fun, but it really is no fun at all to fail a GSoC student. It's twice as sad if it's because the goals originally set were impossible to achieve. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. From stifu at free.fr Fri Apr 24 04:55:25 2009 From: stifu at free.fr (Stifu) Date: Fri, 24 Apr 2009 01:55:25 -0700 (PDT) Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> Message-ID: <23212480.post@talk.nabble.com> I didn't know SIMD optimizations weren't implemented for AMD64 yet, but it's good it's going to get done. Off topic, but I was considering using Mono.Simd to try and make a "SimdBitmap" class for very fast Bitmap manipulations... That'd most likely be faster than any of the existing unsafe or managed fast Bitmap classes. Andreia Gaita wrote: > > The results* are in, and this year the Mono project has been awarded 9 > slots. We had a lot of strong applications, and it was very hard to > choose between them - we had many more proposals worthy of support, > and there was a lot of fighting** between the Mono devs to narrow down > the list to the final 9. > > The selected projects are: > > Improving, testing and integrating ParallelFx into Mono > Jeremie Laval > > CIL optimizer > Korn?l P?l > > Class Designer Add-in for MonoDevelop > Manuel Alejandro Ceron Estrada > > Implementing Git as class libraries in managed code > Matt Enright > > Mono.Simd Amd64 Port > Jerry Maine > > Database Designer Add-in for MonoDevelop > Luis Ochoa > > TaskForce - Task focussed workflow for MonoDevelop > Anirudh Sanjeev > > New features for VB.Net 9 > Alexandru Mihai Muscar > > PL/Mono: a procedural language for PostgreSQL > Olexandr Melnyk > > We are now in the community bonding period, which means it's time to > get to know your mentors, get comfortable with any tools you're going > to need to use on the project, refine your project goals and scope, > and do any setup required to get ready for coding. > > Things to do at this time: > > - subscribe to the mono-soc mailing list - > http://groups.google.com/group/mono-soc-2009 > - if you haven't yet, join us on irc.gimpnet.org, the SoC-specific > channel is #monosoc > - get excited! > > Thank you to everyone who submitted an application, and > congratulations to the accepted students! > > andreia|gaita > > * http://socghop.appspot.com/org/home/google/gsoc2009/mono > ** no monkeys were hurt in the process > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Welcome-Summer-of-Code-2009-Students%21-tp23202405p23212480.html Sent from the Mono - General mailing list archive at Nabble.com. From garthk at gdcjk.com Fri Apr 24 06:03:13 2009 From: garthk at gdcjk.com (Garth Keesler) Date: Fri, 24 Apr 2009 05:03:13 -0500 Subject: [Mono-list] Client - Server Cross platform In-Reply-To: <23203298.post@talk.nabble.com> References: <23203298.post@talk.nabble.com> Message-ID: <49F18E61.4030707@gdcjk.com> I'll only address your last question about Windows-to-Linux secure connections. I use Putty which provides a free ssh connection from Windows to Linux. Google for it and you'll find it. HTH, Garth Doru wrote: > Hi, my name is Doru and I am trying to use monodevelop to make a > cross-platform client - server application. The client will be able to > comunicate with another client in the list and the server should > comunicate with any client as well as pass information from one client > to another. I have already succeeded in connecting one client to the > server, and it runs fine as long as the server and client are working > on the same platform (windows - windows or linux - linux), but when i > put the server on linux and i try to connect with my client from > windows, the client app. crashes. I'm using System.net.socket in my > applications and the latest version of opensuse with monodevelop. My > question is: Can i communicate between linux - windows and backwards > using mono and System.net.socket...? and if so, could someone please > give me an example of such an application, and also is there any > telnet application that runs on windows and can control linux, because > i want to see if i can connect to my linux using telnet. Thank you > very much! > ------------------------------------------------------------------------ > View this message in context: Client - Server Cross platform > > Sent from the Mono - General mailing list archive > at Nabble.com. > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From shana.ufie at gmail.com Fri Apr 24 08:33:41 2009 From: shana.ufie at gmail.com (Andreia Gaita) Date: Fri, 24 Apr 2009 13:33:41 +0100 Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: <49F176CB.9040805@op5.se> References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> <49F176CB.9040805@op5.se> Message-ID: <3ec1038d0904240533t1f76aedenb259c92c68eb0f3c@mail.gmail.com> Morning! On Fri, Apr 24, 2009 at 9:22 AM, Andreas Ericsson wrote: > Second of all, I'd like to wave the warning-flag here a bit. > This project needs delimiters in order to have a chance to > succeed. It's simply not possible to re-implement all of git > in a new language for a single person in the short period of > time that GSoC runs. This is particularly true if the developer > in question lacks extensive knowledge about how git internals > work today. Heh, it's so annoying that the full proposals are not available from the google website, it would be so much easier, I could just point you to the full proposal with the addendums, and you could judge for yourself. Don't worry, we have a good game plan. > * Without support from git.git, there is no way, ever, that > ?this will result in anything. Last years mono-git project > ?didn't request any help what so ever from the git mailing > ?list or any of git.git's prominent contributors. I hope I'm > ?partially addressing that by coming here and announcing my > ?interest in helping out. Time will tell, I suppose ;-) Yes, I read the Performance thread. I was a bit shocked at the amount of freaking out going on there, frankly, but I'm jotting it down to too much coffee and the excitement of a new SoC :) We're all for good coomunication and neighbourly relations, and we appreciate very much your willingness to help out. We're certainly going to take you up on that ;) andreia|gaita From dnadavewa at yahoo.com Thu Apr 23 17:20:06 2009 From: dnadavewa at yahoo.com (dnadavewa) Date: Thu, 23 Apr 2009 14:20:06 -0700 (PDT) Subject: [Mono-list] 64bit gmcs/mcs in SLES/openSuSE rpms? Message-ID: <23203297.post@talk.nabble.com> I'm working on a large data problem where I'm reading in data from text files with almost 2 million columns. In doing this, I can read in about 25 rows before Mono bombs out with an out of memory error. I'm running this on a node in a cluster where I've requested exclusive use of the node: i.e. I have exclusive use of 8 CPUs and 16GB RAM. Top shows that the code bombs out at about 2GB RAM. This lead me to investigate whether the mono installation was 64bit or not as the cluster is an x86_64 cluster running 64bit SLES 9. What I found was the mono executable was indeed 64 bit, but gmcs.exe and mcs.exe were 32 bit. I went back and checked the binaries in the rpm from ftp.novell.com and they are also the same. So, in a 64 bit distribution of mono, why are mcs and gmcs 32 bit? Do I have to compile mono from source to get 64 bit versions of gmcs and mcs? Is this even possible? Lastly, does it matter? One other point, memory usage is horrible. I admit that I'm new to C# and mono, so my coding skills are not as good as others, but a 300MB file should not use 2GB RAM to read in 1/8 of the file. I stopped using classes to store the data and went with List and List to read in this much data. Any comments on how I might improve this performance would be appreciated. Thanks!! Dave H -- View this message in context: http://www.nabble.com/64bit-gmcs-mcs-in-SLES-openSuSE-rpms--tp23203297p23203297.html Sent from the Mono - General mailing list archive at Nabble.com. From mike at kitchenpc.com Thu Apr 23 17:23:46 2009 From: mike at kitchenpc.com (Mike Christensen) Date: Thu, 23 Apr 2009 14:23:46 -0700 Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: <49F0B55C.8000804@gmail.com> References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> <49F0B55C.8000804@gmail.com> Message-ID: <7aa638e00904231423y15c247fbw70fd06174ddc1057@mail.gmail.com> Okay I really hate "me too" reponses but I would be wayyyyyyy into a PL/Mono project.. +Int32.MaxValue for this.. 2009/4/23 Rodrigo Cuevas > > PL/Mono awesome project > > > Abe Gillespie escribi?: > > Congrats, all! >> >> And PL/Mono - hell yeah! >> >> -Abe >> >> On Thu, Apr 23, 2009 at 1:56 PM, Andreia Gaita >> wrote: >> >> >>> The results* are in, and this year the Mono project has been awarded 9 >>> slots. We had a lot of strong applications, and it was very hard to >>> choose between them - we had many more proposals worthy of support, >>> and there was a lot of fighting** between the Mono devs to narrow down >>> the list to the final 9. >>> >>> The selected projects are: >>> >>> Improving, testing and integrating ParallelFx into Mono >>> Jeremie Laval >>> >>> CIL optimizer >>> Korn?l P?l >>> >>> Class Designer Add-in for MonoDevelop >>> Manuel Alejandro Ceron Estrada >>> >>> Implementing Git as class libraries in managed code >>> Matt Enright >>> >>> Mono.Simd Amd64 Port >>> Jerry Maine >>> >>> Database Designer Add-in for MonoDevelop >>> Luis Ochoa >>> >>> TaskForce - Task focussed workflow for MonoDevelop >>> Anirudh Sanjeev >>> >>> New features for VB.Net 9 >>> Alexandru Mihai Muscar >>> >>> PL/Mono: a procedural language for PostgreSQL >>> Olexandr Melnyk >>> >>> We are now in the community bonding period, which means it's time to >>> get to know your mentors, get comfortable with any tools you're going >>> to need to use on the project, refine your project goals and scope, >>> and do any setup required to get ready for coding. >>> >>> Things to do at this time: >>> >>> - subscribe to the mono-soc mailing list - >>> http://groups.google.com/group/mono-soc-2009 >>> - if you haven't yet, join us on irc.gimpnet.org, the SoC-specific >>> channel is #monosoc >>> - get excited! >>> >>> Thank you to everyone who submitted an application, and >>> congratulations to the accepted students! >>> >>> andreia|gaita >>> >>> * http://socghop.appspot.com/org/home/google/gsoc2009/mono >>> ** no monkeys were hurt in the process >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090423/35854d21/attachment.html From mike at kitchenpc.com Thu Apr 23 17:29:06 2009 From: mike at kitchenpc.com (Mike Christensen) Date: Thu, 23 Apr 2009 14:29:06 -0700 Subject: [Mono-list] Checking memory leak In-Reply-To: <8cca42d80904221703p51400fc8h46d5bdd98bc52a76@mail.gmail.com> References: <49EFADC5.6070200@loopback.ath.cx> <8cca42d80904221703p51400fc8h46d5bdd98bc52a76@mail.gmail.com> Message-ID: <7aa638e00904231429xc8e55c2idb00e20e27510012@mail.gmail.com> I guess this really depends on what you mean by a memory leak.. If you mean the object is not reachable and on the queue to be garbage collected, one might "just trust the GC". However, there's also a lot of value on being able to see what objects are on the heap (and large object heap), what generation they're in, etc. There may be objects that you believe are no longer used, but the runtime still sees them as reachable due to your own coding errors, and not GC bugs. The .NET world has all sorts of great tools like SOS/Windbg as well as all sorts of third party analysis. Is there anything in the Mono world to help out with this? Mike On Wed, Apr 22, 2009 at 5:03 PM, Rodrigo Kumpera wrote: > Hi, > > On Wed, Apr 22, 2009 at 8:52 PM, Ishwor Gurung wrote: > >> Hi list, >> >> Whats an appropriate way to check for memory leak of a mono application? >> >> I googled around with some example using valgrind for mono app but >> couldn't find any concrete examples. What I've essentially done so far >> using valgrind is: >> $ valgrind --tool=memcheck --leak-check=full --show-reachable=yes mono >> ./ConnectUTest.exe >> >> This however, always produces memory leak (~14k/test on five runs so far): >> >> ==15141== LEAK SUMMARY: >> ==15141== definitely lost: 14,408 bytes in 760 blocks. >> ==15141== indirectly lost: 2,496 bytes in 126 blocks. >> ==15141== possibly lost: 12,460 bytes in 419 blocks. >> ==15141== still reachable: 2,569,056 bytes in 16,726 blocks. >> ==15141== suppressed: 0 bytes in 0 blocks. >> >> >> Is this something I should worry about in itself or let the Mono's GC >> do its job with the memory and not worry about memory leaks? Can >> someone confirm if these are even a real memory leak (the one above >> with 14,408 bytes gone!)? >> >> Thanks. > > > > Valgrind is the best too to dig for memory leaks. But it will only report > problems of > unmanaged memory leaks. For managed memory, just trust the GC. > > Mono is supposed to do a clean shutdown, but we still have some small > non-important > fix leaks on things like support code. All of them leak a fixed set of > memory at startup. > > Anyway, the best way to go is if your attach your valgrind file so I can > take a look. > > Cheers, > Rodrigo > > > _______________________________________________ > 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/20090423/976bd756/attachment.html From chris at publicbar.com Fri Apr 24 01:31:50 2009 From: chris at publicbar.com (publicbar) Date: Thu, 23 Apr 2009 22:31:50 -0700 (PDT) Subject: [Mono-list] Installing mono on Ubuntu 8.10 Message-ID: <23210163.post@talk.nabble.com> Hi, Having major problems with this. Did: apt-ge install mono-2.0-devel installed ok and mono.exe works. However I need mozroots.exe and this is nowhere to be found what am I missing to get this? thanks -- View this message in context: http://www.nabble.com/Installing-mono-on-Ubuntu-8.10-tp23210163p23210163.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Fri Apr 24 09:34:34 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 24 Apr 2009 09:34:34 -0400 Subject: [Mono-list] Checking memory leak In-Reply-To: <7aa638e00904231429xc8e55c2idb00e20e27510012@mail.gmail.com> References: <49EFADC5.6070200@loopback.ath.cx> <8cca42d80904221703p51400fc8h46d5bdd98bc52a76@mail.gmail.com> <7aa638e00904231429xc8e55c2idb00e20e27510012@mail.gmail.com> Message-ID: <3d2f29dc0904240634i5e6e9391l47c6e8481c40f886@mail.gmail.com> On Thu, Apr 23, 2009 at 5:29 PM, Mike Christensen wrote: > The .NET world has all sorts of great tools like SOS/Windbg as well as all > sorts of third party analysis.? Is there anything in the Mono world to help > out with this? If you're asking for what I think you are, then you probably want to look at heap-shot: . -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Fri Apr 24 10:39:19 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 24 Apr 2009 10:39:19 -0400 Subject: [Mono-list] Client - Server Cross platform In-Reply-To: <23203298.post@talk.nabble.com> References: <23203298.post@talk.nabble.com> Message-ID: <3d2f29dc0904240739t2af88030i116b797efeb81808@mail.gmail.com> On Thu, Apr 23, 2009 at 5:20 PM, Doru wrote: > but when i put the server on linux and > i try to connect with my client from windows, the client app. crashes. You're going to have to provide real information, like a stack trace of the exception that terminates the program. "The app crashes" has as much diagnostic value as "it didn't work." -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Fri Apr 24 10:41:04 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 24 Apr 2009 10:41:04 -0400 Subject: [Mono-list] Installing mono on Ubuntu 8.10 In-Reply-To: <23210163.post@talk.nabble.com> References: <23210163.post@talk.nabble.com> Message-ID: <3d2f29dc0904240741u122c21d3x4fb4f888ae1f8dbd@mail.gmail.com> On Fri, Apr 24, 2009 at 1:31 AM, publicbar wrote: > However I need mozroots.exe and this is nowhere to be found what am I > missing to get this? Your distro's package website is your friend. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From cdhowie at gmail.com Fri Apr 24 10:44:05 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 24 Apr 2009 10:44:05 -0400 Subject: [Mono-list] 64bit gmcs/mcs in SLES/openSuSE rpms? In-Reply-To: <23203297.post@talk.nabble.com> References: <23203297.post@talk.nabble.com> Message-ID: <3d2f29dc0904240744x63d884dub327b86bbc39278@mail.gmail.com> On Thu, Apr 23, 2009 at 5:20 PM, dnadavewa wrote: > What I found was the mono executable was indeed 64 bit, but gmcs.exe and > mcs.exe were 32 bit. The architecture flag on .exe files is useless in this context since IL is not architecture-specific, and neither is C#. (gmcs and mcs are written in C# themselves.) My guess is that the .exe files are flagged 32-bit so if you copy them to a 32-bit windows they will run. (They should also run on 64-bit windows.) If they were flagged 64-bit they would not run on 32-bit windows, and since they are IL that would make no sense. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From roka100 at gmail.com Fri Apr 24 13:11:41 2009 From: roka100 at gmail.com (Jia Lu) Date: Sat, 25 Apr 2009 02:11:41 +0900 Subject: [Mono-list] (no subject) Message-ID: <9a1e512f0904241011l6b918413v6c19cc978a1957f2@mail.gmail.com> -- ////////////////////////////////////////// OCA 10g OCP 10g #10942266 LPI Level-1 #LPI000156466 LPI Level-2 MCP #6795184 MCTS: SQL Server 2008 MCTS: Microsoft .NET Framework 2.0 ////////////////////////////////////////// -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090425/60f5963c/attachment.html From kobruleht2 at hot.ee Fri Apr 24 14:39:16 2009 From: kobruleht2 at hot.ee (Andrus) Date: Fri, 24 Apr 2009 21:39:16 +0300 Subject: [Mono-list] gdiplus.dll not found Message-ID: <8843CB6021194416AF092842FA1F45FC@andrusnotebook> I tried mod_mono with Mono 2.4 and got exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x000c6] in /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:126 --- End of inner exception stack trace --- at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x00006] in /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:96 at System.Drawing.Bitmap..ctor (Int32 width, Int32 height) [0x00000] in /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/Assembly/AssemblyInfo.cs:1 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int) at fyiReporting.RDL.Pages..ctor (fyiReporting.RDL.Report r) [0x00000] at fyiReporting.RDL.ReportDefn.RunPage (IPresent ip) [0x00000] at fyiReporting.RDL.ReportDefn.Run (IPresent ip) [0x00000] at fyiReporting.RDL.Report.RunRender (IStreamGen sg, OutputPresentationType type, System.String prefix) [0x00000] at fyiReporting.RdlAsp.RdlReport.Generate (fyiReporting.RDL.Report report) [0x00000] How to fix ? Andrus. From m.j.hutchinson at gmail.com Fri Apr 24 14:46:16 2009 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Fri, 24 Apr 2009 14:46:16 -0400 Subject: [Mono-list] 64bit gmcs/mcs in SLES/openSuSE rpms? In-Reply-To: <3d2f29dc0904240744x63d884dub327b86bbc39278@mail.gmail.com> References: <23203297.post@talk.nabble.com> <3d2f29dc0904240744x63d884dub327b86bbc39278@mail.gmail.com> Message-ID: On Fri, Apr 24, 2009 at 10:44 AM, Chris Howie wrote: > On Thu, Apr 23, 2009 at 5:20 PM, dnadavewa wrote: >> What I found was the mono executable was indeed 64 bit, but gmcs.exe and >> mcs.exe were 32 bit. How did you determine that they're 32-bit? I'm pretty sure this is not the case, since they're just IL code that gets JIT'd and run on the Mono runtime. > The architecture flag on .exe files is useless in this context since > IL is not architecture-specific, and neither is C#. ?(gmcs and mcs are > written in C# themselves.) > > My guess is that the .exe files are flagged 32-bit so if you copy them > to a 32-bit windows they will run. ?(They should also run on 64-bit > windows.) ?If they were flagged 64-bit they would not run on 32-bit > windows, and since they are IL that would make no sense. Mono doesn't mark binaries as 32-bit or 64-bit specific. Such flags do exist, but Mono neither sets nor respects them. There are actually 3 GACs on Windows64: 64-bit, 32-bit, and noarch ("anycpu"/"MSIL"). The main purpose AFAIK is mixed-mode assemblies, but it's also useful if you make P/Invokes to libraries that only exist on one architecture, or have arch-specific struct layouts etc. If your exe is marked as 32-bit, it's run with the 32-bit .NET runtime, and can use 32-bit and noarch assemblies and GAC. Similarly, 64-bit exes are run in the 64-bit runtime and can use noarch and 64-bit libraries and GAC. On Win64, noarch executables, such the ones compiled with Mono, get run by the 64-bit .NET runtime. To run a GTK# app on Win64, I had to use corflags.exe from the .NET SDK to mark the mcs-compiled exe as 32-bit, since GTK# currently only works on 32-bit. csc is able to set the platform directly. For more info, see http://msdn.microsoft.com/en-us/library/zekwfyz4(VS.80).aspx -- Michael Hutchinson http://mjhutchinson.com From sebastien.pouliot at gmail.com Fri Apr 24 14:47:49 2009 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Fri, 24 Apr 2009 14:47:49 -0400 Subject: [Mono-list] gdiplus.dll not found In-Reply-To: <8843CB6021194416AF092842FA1F45FC@andrusnotebook> References: <8843CB6021194416AF092842FA1F45FC@andrusnotebook> Message-ID: <1240598869.4106.0.camel@mizar.home> Andrus, You likely did not build (or install your distro) libgdiplus Sebastien On Fri, 2009-04-24 at 21:39 +0300, Andrus wrote: > I tried mod_mono with Mono 2.4 and got exception: > > System.TypeInitializationException: An exception was thrown by the type > initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: > gdiplus.dll > at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup > (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) > at System.Drawing.GDIPlus..cctor () [0x000c6] in > /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:126 > --- End of inner exception stack trace --- > at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat > format) [0x00006] in > /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:96 > at System.Drawing.Bitmap..ctor (Int32 width, Int32 height) [0x00000] in > /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/Assembly/AssemblyInfo.cs:1 > at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor > (int,int) > at fyiReporting.RDL.Pages..ctor (fyiReporting.RDL.Report r) [0x00000] > at fyiReporting.RDL.ReportDefn.RunPage (IPresent ip) [0x00000] > at fyiReporting.RDL.ReportDefn.Run (IPresent ip) [0x00000] > at fyiReporting.RDL.Report.RunRender (IStreamGen sg, > OutputPresentationType type, System.String prefix) [0x00000] > at fyiReporting.RdlAsp.RdlReport.Generate (fyiReporting.RDL.Report report) > [0x00000] > > How to fix ? > > Andrus. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From jonpryor at vt.edu Fri Apr 24 15:14:12 2009 From: jonpryor at vt.edu (Jonathan Pryor) Date: Fri, 24 Apr 2009 15:14:12 -0400 Subject: [Mono-list] 64bit gmcs/mcs in SLES/openSuSE rpms? In-Reply-To: <23203297.post@talk.nabble.com> References: <23203297.post@talk.nabble.com> Message-ID: <1240600452.20813.7.camel@lina> On Thu, 2009-04-23 at 14:20 -0700, dnadavewa wrote: > I'm working on a large data problem where I'm reading in data from text files > with almost 2 million columns. In doing this, I can read in about 25 rows > before Mono bombs out with an out of memory error. How are you reading in these lines? > What I found was the mono executable was indeed 64 bit, but gmcs.exe and > mcs.exe were 32 bit. As Chris Howie mentioned, these are actually in platform-neutral IL, and will be run using a 64-bit address space when using `mono`. > One other point, memory usage is horrible. I admit that I'm new to C# and > mono, so my coding skills are not as good as others, but a 300MB file should > not use 2GB RAM to read in 1/8 of the file. That depends ~entirely on how you're reading in the file. Also keep in mind that .NET strings are UTF-16, so if your input text is ASCII, you will require twice as much RAM as the size of the file, e.g. 600MB of RAM to store the entire file as a string. (Then there is various object overhead considerations, but these are likely tiny compared to the 300MB you're looking at.) > I stopped using classes to > store the data and went with List and List to read in this > much data. Any comments on how I might improve this performance would be > appreciated. To provide any comments we'd need to know more about what you're trying to do. For example, reading a 300MB XML file using XmlDocument will require *lots* of RAM, as in addition to the UTF-16 string issue, each element, attribute, etc. will be represented as separate objects, with varying amounts of memory required. DOM would be something to avoid here, while XmlReader would be much better. The easiest question, though, is this: do you really need to keep the entire file contents in memory all at once? Or can you instead process each line independently (or while caching minimal data from one line to the next, so that the contents of previous lines don't need to be maintained). This would allow you to remove your List, and save a ton of memory. - Jon From david_aiken at yahoo.com Fri Apr 24 15:18:49 2009 From: david_aiken at yahoo.com (fozzie) Date: Fri, 24 Apr 2009 12:18:49 -0700 (PDT) Subject: [Mono-list] mono_runtime_invoke get returned array Message-ID: <23223209.post@talk.nabble.com> hi all.. I'm calling mono_runtime_invoke on a c# function which returns string[]. How do i iterate through the array in the unmanaged code? Do i have to worry about garbage collection? thanks! -- View this message in context: http://www.nabble.com/mono_runtime_invoke-get-returned-array-tp23223209p23223209.html Sent from the Mono - General mailing list archive at Nabble.com. From kumpera at gmail.com Fri Apr 24 15:49:59 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 24 Apr 2009 16:49:59 -0300 Subject: [Mono-list] mono_runtime_invoke get returned array In-Reply-To: <23223209.post@talk.nabble.com> References: <23223209.post@talk.nabble.com> Message-ID: <8cca42d80904241249p6f64c47am94f1e700db89ea36@mail.gmail.com> Use the mono_array_length and mono_array_get functions. On Fri, Apr 24, 2009 at 4:18 PM, fozzie wrote: > > hi all.. > > I'm calling mono_runtime_invoke on a c# function which returns string[]. > How > do i iterate through the array in the unmanaged code? Do i have to worry > about garbage collection? > > thanks! > -- > View this message in context: > http://www.nabble.com/mono_runtime_invoke-get-returned-array-tp23223209p23223209.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090424/2feda87d/attachment.html From david_aiken at yahoo.com Fri Apr 24 16:01:41 2009 From: david_aiken at yahoo.com (fozzie) Date: Fri, 24 Apr 2009 13:01:41 -0700 (PDT) Subject: [Mono-list] mono_runtime_invoke get returned array In-Reply-To: <23223209.post@talk.nabble.com> References: <23223209.post@talk.nabble.com> Message-ID: <23223882.post@talk.nabble.com> Thanks for you help.. managed to get something working C# (in this case a property) ============================== namespace my.namespace { public myClass() { public string[] RetStrings { get { // fill array } } } } Unmanaged C++ ============ MonoClass* type = mono_class_from_name(image, "my.namespace", "myClass"); MonoProperty *prop = mono_class_get_property_from_name(type, "RetStrings"); MonoArray *assemblies = (MonoArray *)mono_property_get_value(prop, pluginManagerInstance, NULL, &exc); if(!exc) { for (unsigned int i = 0; i < mono_array_length(assemblies); i++) { MonoString* s = mono_array_get(assemblies, MonoString*, i); char *s2 = mono_string_to_utf8(s); printf("s2: %s\n", s2); } } else { mono_print_unhandled_exception(exc); } -- View this message in context: http://www.nabble.com/mono_runtime_invoke-get-returned-array-tp23223209p23223882.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Fri Apr 24 17:36:03 2009 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 24 Apr 2009 17:36:03 -0400 Subject: [Mono-list] 64bit gmcs/mcs in SLES/openSuSE rpms? In-Reply-To: References: <23203297.post@talk.nabble.com> <3d2f29dc0904240744x63d884dub327b86bbc39278@mail.gmail.com> Message-ID: <3d2f29dc0904241436i63adc7b0ob96d629ae6be812e@mail.gmail.com> On Fri, Apr 24, 2009 at 2:46 PM, Michael Hutchinson wrote: > On Fri, Apr 24, 2009 at 10:44 AM, Chris Howie wrote: >> On Thu, Apr 23, 2009 at 5:20 PM, dnadavewa wrote: >>> What I found was the mono executable was indeed 64 bit, but gmcs.exe and >>> mcs.exe were 32 bit. > > How did you determine that they're 32-bit? I'm pretty sure this is not > the case, since they're just IL code that gets JIT'd and run on the > Mono runtime. I am guessing he used "file" to determine this. And executable assemblies are certainly not just IL, they also have bootstrap code to load the runtime. That is (presumably) 32-bit x86. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From kumpera at gmail.com Fri Apr 24 18:32:39 2009 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 24 Apr 2009 19:32:39 -0300 Subject: [Mono-list] Mono for VxWorks In-Reply-To: <23210963.post@talk.nabble.com> References: <23170584.post@talk.nabble.com> <8cca42d80904220633x69dc57b2kac043470fa7d3286@mail.gmail.com> <23210963.post@talk.nabble.com> Message-ID: <8cca42d80904241532y2f0220d0n4bc2d6c3f5971d39@mail.gmail.com> Hi, No one have shown interest in doing such port. But it's open for the community to do. Cheers, Rodrigo On Fri, Apr 24, 2009 at 3:58 AM, Markus Bischof < markusbischof at kuka-roboter.de> wrote: > > Hi! > > Thanks for your reply. > > As Mono has not been ported to VxWorks, yet, are there any plans to do > that? > > > Rodrigo Kumpera wrote: > > > > On Wed, Apr 22, 2009 at 3:47 AM, Markus Bischof < > > markusbischof at kuka-roboter.de> wrote: > > > >> > >> Hello, > >> > >> I was wondering if Mono is available for VxWorks. I could not find > >> anything > >> on the web, so I decided to post in this mailing list. > >> > >> And as VxWorks is a realtime OS, are there, if available, any > differences > >> in > >> the behavior (e.g. Garbage Collection) of Mono? > >> > >> Kind Regards > >> -- > > > > > > Mono have not been ported to VxWorks. > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/Mono-for-VxWorks-tp23170584p23210963.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090424/e59c1096/attachment.html From miguel at novell.com Fri Apr 24 19:19:54 2009 From: miguel at novell.com (Miguel de Icaza) Date: Fri, 24 Apr 2009 19:19:54 -0400 Subject: [Mono-list] gdiplus.dll not found In-Reply-To: <8843CB6021194416AF092842FA1F45FC@andrusnotebook> References: <8843CB6021194416AF092842FA1F45FC@andrusnotebook> Message-ID: <1240615194.17881.212.camel@erandi.site> Hello, > I tried mod_mono with Mono 2.4 and got exception: You can run the command: mono-test-install And it will help you diagnose this problem Miguel From omelnyk at gmail.com Sat Apr 25 07:06:56 2009 From: omelnyk at gmail.com (Olexandr Melnyk) Date: Sat, 25 Apr 2009 14:06:56 +0300 Subject: [Mono-list] Welcome Summer of Code 2009 Students! In-Reply-To: References: <3ec1038d0904231056o4a018d68iae8730a8277caf7a@mail.gmail.com> <49F0B55C.8000804@gmail.com> Message-ID: On Sat, Apr 25, 2009 at 2:05 PM, Olexandr Melnyk wrote: > 2009/4/23 Rodrigo Cuevas : > > PL/Mono awesome project Just as awesome as other ones, we're surely going to have a fun summer. :) Too bad that there are only nine Mono students this year. -- Sincerely yours, Olexandr Melnyk http://omelnyk.net/ From basile at starynkevitch.net Fri Apr 24 15:42:48 2009 From: basile at starynkevitch.net (Basile Starynkevitch) Date: Fri, 24 Apr 2009 12:42:48 -0700 (PDT) Subject: [Mono-list] failing to build mono (trunk svn rev 132609 or 132612) SqlStatementBuilder.cs Message-ID: <23223470.post@talk.nabble.com> Hello All I am trying to build the latest mono svn on Debian/testing/AMD64, where the Debian-installed /usr/bin/mono is Mono JIT compiler version 2.0.1 (tarball), and /usr/bin/gmcs is Mono C# compiler version 2.0.1.0 and /usr/bin/gcc is x86_64-linux-gnu gcc version 4.3.3 (Debian 4.3.3-3) The svn info for libgdiplus gives URL: http://anonsvn.mono-project.com/source/trunk/libgdiplus revision 132612. For mcs gives http://anonsvn.mono-project.com/source/trunk/mcs revision 132612. For mono gives http://anonsvn.mono-project.com/source/trunk/mono revision 132612. For xsp gives http://anonsvn.mono-project.com/source/trunk/xsp revision 131454. All the above are svn checkouted in the same parent /usr/src/Mono directory. So I go into the mono subdirectory and run % ./autogen.sh --with-jit --enable-parallel-mark because I want to test the JIT and parallel mark GC features. Then I run make, and I am getting stuck with make[8]: Entering directory `/usr/src/Mono/mcs/class/System.Data.Linq' MCS [net_2_0] System.Data.Linq.dll src/DbLinq/Data/Linq/Sql/SqlStatementBuilder.cs(125,53): error CS1526: A new expression requires () or [] after type src/DbLinq/Util/TextWriterExtension.cs(103,85): error CS1526: A new expression requires () or [] after type src/DbLinq/Util/TextWriterExtension.cs(111,85): error CS1526: A new expression requires () or [] after type etc. The same error happenned with previous svn rev 132609. Do you have any ideas about what I am doing wrong? Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ http://starynkevitch.net/Basile/ email: basile-at-starynkevitch-dot-net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** -- View this message in context: http://www.nabble.com/failing-to-build-mono-%28trunk-svn-rev-132609-or-132612%29-SqlStatementBuilder.cs-tp23223470p23223470.html Sent from the Mono - General mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090424/5d35cede/attachment.html From giancarlogiesa at gmail.com Fri Apr 24 17:05:11 2009 From: giancarlogiesa at gmail.com (giancarlogiesa) Date: Fri, 24 Apr 2009 14:05:11 -0700 (PDT) Subject: [Mono-list] HTTP file download Message-ID: <23224875.post@talk.nabble.com> Hello, is possible with C# / Mono download a file from an HTTP server ? if yes, how ? my code is this: ------------------------------------ private string SocketSendReceive(string url){ int i=0; while(i 0); i=2; while(i References: <23224875.post@talk.nabble.com> Message-ID: giancarlogiesa wrote: > Hello, > > is possible with C# / Mono download a file from an HTTP server ? > if yes, how ? WebClient wc = new WebClient(); byte[] content = wc.DownloadData(url); or wc.DownloadFile(url, fileName). Just look at WebClient docs. Robert From david_aiken at yahoo.com Sat Apr 25 17:07:51 2009 From: david_aiken at yahoo.com (fozzie) Date: Sat, 25 Apr 2009 14:07:51 -0700 (PDT) Subject: [Mono-list] MarshalByRefObject Message-ID: <23236482.post@talk.nabble.com> Hi all... I'm returning a MarshalByRefObject from c# to mono_runtime_invoke() - do I need to reference it via gc_handle_new()? -- View this message in context: http://www.nabble.com/MarshalByRefObject-tp23236482p23236482.html Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Sat Apr 25 17:45:28 2009 From: robertj at gmx.net (Robert Jordan) Date: Sat, 25 Apr 2009 23:45:28 +0200 Subject: [Mono-list] MarshalByRefObject In-Reply-To: <23236482.post@talk.nabble.com> References: <23236482.post@talk.nabble.com> Message-ID: fozzie wrote: > Hi all... > > I'm returning a MarshalByRefObject from c# to mono_runtime_invoke() - do I > need to reference it via gc_handle_new()? MBRs are not different with respect to GC. Robert From krippy2k at yahoo.com Sat Apr 25 18:46:58 2009 From: krippy2k at yahoo.com (krippy2k) Date: Sat, 25 Apr 2009 15:46:58 -0700 (PDT) Subject: [Mono-list] Mono Winforms rendered to memory buffer Message-ID: <23237341.post@talk.nabble.com> Hi all, I'm not sure if this is the correct list, but here goes. I've got Mono embedded in a game engine for game "scripting", and that works fantastic. Now I'm wondering if I can leverage it for something else. It would be interesting to use some of the Winforms controls in the game engine GUI as well. Is there a way to use Mono/Winforms in a way that will render everything to a memory buffer? I'm sure it's possible since we have the source code, but anything that will help steer me in the right direction to get started with this would be mucho appreciated. Thanks, Gerald -- View this message in context: http://www.nabble.com/Mono-Winforms-rendered-to-memory-buffer-tp23237341p23237341.html Sent from the Mono - General mailing list archive at Nabble.com. From ishwor at loopback.ath.cx Sat Apr 25 20:20:07 2009 From: ishwor at loopback.ath.cx (Ishwor Gurung) Date: Sun, 26 Apr 2009 09:50:07 +0930 Subject: [Mono-list] Checking memory leak In-Reply-To: <49F0229D.6010209@op5.se> References: <49EFADC5.6070200@loopback.ath.cx> <49F0229D.6010209@op5.se> Message-ID: <200904260950.09854.ishwor@loopback.ath.cx> Hi Andreas, On Thu, 23 Apr 2009 05:41:09 pm Andreas Ericsson wrote: > Ishwor Gurung wrote: > > Hi list, > > > > Whats an appropriate way to check for memory leak of a mono application? > > > > I googled around with some example using valgrind for mono app but > > couldn't find any concrete examples. What I've essentially done so far > > using valgrind is: > > $ valgrind --tool=memcheck --leak-check=full --show-reachable=yes mono > > ./ConnectUTest.exe > > > > This however, always produces memory leak (~14k/test on five runs so > > far): > > > > ==15141== LEAK SUMMARY: > > ==15141== definitely lost: 14,408 bytes in 760 blocks. > > ==15141== indirectly lost: 2,496 bytes in 126 blocks. > > ==15141== possibly lost: 12,460 bytes in 419 blocks. > > ==15141== still reachable: 2,569,056 bytes in 16,726 blocks. > > ==15141== suppressed: 0 bytes in 0 blocks. > > > > > > Is this something I should worry about in itself or let the Mono's GC > > do its job with the memory and not worry about memory leaks? Can > > someone confirm if these are even a real memory leak (the one above > > with 14,408 bytes gone!)? > > If valgrind reports it as a leak, then it is a leak, but only in the > sense that no reference points *exactly* to the leaked area. > > For example, consider this code (in C, sorry. I don't know how to > produce a leak in C#): > > --%<--%<-- > static unsigned long offset; > static char *buf; > > void some_func(void) > { > buf = malloc(5000); > offset = 4500; > buf += offset; > } > --%<--%<-- > > but that's not entirely true, because the exact reference to *buf > can be determined by > > exact_ref = buf - offset; Yep. > Granted, this is a pretty weird way of using offsets, but it's a > valid one that can be done without leaking memory. I've sometimes > used it myself to microoptimize tight loops, but only on static > sized data where the offset is always > > exact_ref = buf - STATIC_SIZE; Yep > In short; Valgrind sometimes gives false positives. So long as > the leaked memory is small-ish (14K is nothing) and doesn't > grow over time, I wouldn't worry about it. Yep I haven't done hardcore regression on it yet but yeah I'd assume ~14k is OK for now. Let me code few more functions and see in the future. Thanks. -- Cheers, Ishwor Gurung -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090426/26bbbf13/attachment.bin From essiene at gmail.com Sun Apr 26 03:50:21 2009 From: essiene at gmail.com (Essien Essien) Date: Sun, 26 Apr 2009 08:50:21 +0100 Subject: [Mono-list] SSL/TLS client to an Erlang server Message-ID: <88b82c90904260050o74375f62oce1b28dcf5338e5b@mail.gmail.com> Hi, I used to do C# development up till about 3 years ago, but I've not had to do any C# untill recently, so I'm not sure if that makes me a Mono newbie or not :) I have an Erlang server to which I want to connect a C# client to over SSL/TLS, and so far, I've been able to figure out the code side of things from the docs. I'm testing with self-signed certificates, created with openssl, and I've been able to figure out how to convert PEM certs to DER format which .NET/Mono seems to require. I've also been able to figure out that I need to usethe certmgr command line tool to manager certs in the mono cert stores. My