From DarrenG at optiscan.com Wed Aug 1 02:21:22 2007 From: DarrenG at optiscan.com (Darren Gage) Date: Wed, 1 Aug 2007 16:21:22 +1000 Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux Message-ID: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> Hi, Anybody been able to get a Visual Studio 2005 .NET solution compiling on Linux (under mono)? We wish to run a CruiseControl.NET server on Windows and on Linux. So ideally, bar some configuration and tool differences, I'd hoped the same Visual Studio 2005 solution could be compiled on both Windows and Linux. I have installed CruiseControl.NET and NAnt on Linux. All seems OK, except compiling the Visual Studio 2005 solution. On Windows I use msbuild to do the compilation, just passing the solution file. Questions: 1. Is there some way to install and use msbuild on Linux (using mono)? 2. Nant on Mono doesn't seem to support the task, using it returns a error. 3. Is there something I'm missing, I'd have thought this was pretty standard thing to do. I tried xbuild, which seemed to compile based on the csproj. But this seems tedious at best given the number of projects we have. Is there an easier way to use xbuild in Nant to do this? 4. I tried converting the Visual Studio 2005 solution using MonoDevelop, but this failed. Not really what I wanted to do anyway, as I wanted to use the same files on both Windows and Linux. Any help much appreciated. Darren -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070801/e2713212/attachment.html From radical at gmail.com Wed Aug 1 03:32:47 2007 From: radical at gmail.com (Ankit Jain) Date: Wed, 1 Aug 2007 13:02:47 +0530 Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux In-Reply-To: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> References: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> Message-ID: Hi, > 4. I tried converting the Visual Studio 2005 solution using > MonoDevelop, but this failed. Not really what I wanted to do anyway, as I > wanted to use the same files on both Windows and Linux. You can use MonoDevelop to directly build the VS2005 solution. Either from the GUI or from the command line like - mdtool build --buildfile:foo.sln MD can directly work with VS2005 solutions, no conversion to any other format required. -Ankit From =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= Wed Aug 1 03:43:12 2007 From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= (=?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?=) Date: Wed, 01 Aug 2007 09:43:12 +0200 Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux In-Reply-To: References: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> Message-ID: <46B03990.6000309@gmail.com> Ankit Jain escribi?: >> 4. I tried converting the Visual Studio 2005 solution using >> MonoDevelop, but this failed. Not really what I wanted to do anyway, as I >> wanted to use the same files on both Windows and Linux. > > You can use MonoDevelop to directly build the VS2005 solution. Either > from the GUI or from the command line like - > mdtool build --buildfile:foo.sln > > MD can directly work with VS2005 solutions, no conversion to any other > format required. Hasn't the capability of building VS2005 sln files be shared between xbuild and MD? If not, why? Thanks in advance, Andr?s [ knocte ] -- From radical at gmail.com Wed Aug 1 03:50:48 2007 From: radical at gmail.com (Ankit Jain) Date: Wed, 1 Aug 2007 13:20:48 +0530 Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux In-Reply-To: <46B03990.6000309@gmail.com> References: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> <46B03990.6000309@gmail.com> Message-ID: > Hasn't the capability of building VS2005 sln files be shared between > xbuild and MD? If not, why? No, its not shared currently. At the time this capability was added to MD, our MSBuild api wasn't complete enough to support that. But Marek Sieradzki has fixed that, and he infact had a patch to add the relevant support to MD, which might be integrated later. -Ankit From =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= Wed Aug 1 03:56:46 2007 From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= (=?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?=) Date: Wed, 01 Aug 2007 09:56:46 +0200 Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux In-Reply-To: References: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> <46B03990.6000309@gmail.com> Message-ID: <46B03CBE.6000300@gmail.com> Ankit Jain escribi?: >> Hasn't the capability of building VS2005 sln files be shared between >> xbuild and MD? If not, why? > > No, its not shared currently. At the time this capability was added to MD, > our MSBuild api wasn't complete enough to support that. But Marek Sieradzki > has fixed that, and he infact had a patch to add the relevant support to MD, > which might be integrated later. Thanks Ankit. This interests me because I plan to setup a continuous integration system that builds solutions everytime there is a commit. I hope to help improve all of this by notifying all bugs I find about incompatibilities between msbuild and xbuild. Regards, Andr?s [ knocte ] -- From thisaddressisnotmine at td.selfip.net Wed Aug 1 05:45:00 2007 From: thisaddressisnotmine at td.selfip.net (Oleg Deribas) Date: Wed, 01 Aug 2007 12:45:00 +0300 Subject: [Mono-list] Mono on RHEL5 In-Reply-To: <1184760808.10167.8.camel@avalanche> References: <5900d730707180321m1729b07ek78de52bbfa66de48@mail.gmail.com> <1184760808.10167.8.camel@avalanche> Message-ID: Hello, Adrien Dessemond said the following on 18.07.2007 15:13: > I have installed it on a Centos 5 (the bad way : use packages built for > RHEL4 dependencies) > In last resort, you can also use the generic installer. It works fine. I'm also want to install mono on Centos 5 x86_64, but there are not any rpms for RHEL4 nor generic installer for x86_64 on mono download page. So is there any way to install mono on Centos 5 x86_64 from rpms? -- Oleg From gert.driesen at telenet.be Wed Aug 1 05:15:28 2007 From: gert.driesen at telenet.be (Gert Driesen) Date: Wed, 1 Aug 2007 11:15:28 +0200 Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux In-Reply-To: <34E73CC1202BF246B7DE3463BEBC0689A551B3@postie.optiscan.com> Message-ID: <20070801091530.289253923F2@ananke.telenet-ops.be> Darren, Support for building VS2005 solutions is available in NAnt CVS, but needs little more work. I've done some limited tests using it with xbuild, but with mixed success. Gert _____ From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Darren Gage Sent: woensdag 1 augustus 2007 8:21 To: mono-list at lists.ximian.com Subject: [Mono-list] Visual Studio 2005 .NET solution compiling on Linux Hi, Anybody been able to get a Visual Studio 2005 .NET solution compiling on Linux (under mono)? We wish to run a CruiseControl.NET server on Windows and on Linux. So ideally, bar some configuration and tool differences, I'd hoped the same Visual Studio 2005 solution could be compiled on both Windows and Linux. I have installed CruiseControl.NET and NAnt on Linux. All seems OK, except compiling the Visual Studio 2005 solution. On Windows I use msbuild to do the compilation, just passing the solution file. Questions: 1. Is there some way to install and use msbuild on Linux (using mono)? 2. Nant on Mono doesn't seem to support the task, using it returns a error. 3. Is there something I'm missing, I'd have thought this was pretty standard thing to do. I tried xbuild, which seemed to compile based on the csproj. But this seems tedious at best given the number of projects we have. Is there an easier way to use xbuild in Nant to do this? 4. I tried converting the Visual Studio 2005 solution using MonoDevelop, but this failed. Not really what I wanted to do anyway, as I wanted to use the same files on both Windows and Linux. Any help much appreciated. Darren -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070801/653f8846/attachment.html From adrien.dessemond at softhome.net Wed Aug 1 06:44:50 2007 From: adrien.dessemond at softhome.net (Adrien Dessemond) Date: Wed, 01 Aug 2007 06:44:50 -0400 Subject: [Mono-list] Mono on RHEL5 In-Reply-To: References: <5900d730707180321m1729b07ek78de52bbfa66de48@mail.gmail.com> <1184760808.10167.8.camel@avalanche> Message-ID: <1185965090.6056.9.camel@avalanche> On Wed, 2007-01-08 at 12:45 +0300, Oleg Deribas wrote: > Hello, > > Adrien Dessemond said the following on 18.07.2007 15:13: > > > I have installed it on a Centos 5 (the bad way : use packages built for > > RHEL4 dependencies) > > > In last resort, you can also use the generic installer. It works fine. > > I'm also want to install mono on Centos 5 x86_64, but there are not any > rpms for RHEL4 nor generic installer for x86_64 on mono download page. > > So is there any way to install mono on Centos 5 x86_64 from rpms? I do not know if someone would have packaged Mono for that platform. But you can use the generic installer in your case too. The x86/64 magic allows you to run "legacy 32 bits applications" :-) Kind regards, Adrien From anmar at anmar.eu.org Wed Aug 1 11:05:21 2007 From: anmar at anmar.eu.org (Angel Marin) Date: Wed, 01 Aug 2007 17:05:21 +0200 Subject: [Mono-list] Mono on RHEL5 In-Reply-To: References: <5900d730707180321m1729b07ek78de52bbfa66de48@mail.gmail.com> <1184760808.10167.8.camel@avalanche> Message-ID: Oleg Deribas escribi?: > Hello, > > Adrien Dessemond said the following on 18.07.2007 15:13: > >> I have installed it on a Centos 5 (the bad way : use packages built for >> RHEL4 dependencies) > >> In last resort, you can also use the generic installer. It works fine. > > I'm also want to install mono on Centos 5 x86_64, but there are not any > rpms for RHEL4 nor generic installer for x86_64 on mono download page. > > So is there any way to install mono on Centos 5 x86_64 from rpms? They're not available on any mayor repository that I have checked. You can take current rawhide specs and patches [1][2][3][4], they'll build on Centos5 (x86_64) with little adjustments. Hopefully it'll end up on EPEL[5] sooner or later. I have read somewhere that someone was already interested on maintaining it. In the mean time you'll have to build them yourself though. [1] http://cvs.fedora.redhat.com/viewcvs/devel/mono/ [2] http://cvs.fedora.redhat.com/viewcvs/devel/libgdiplus/ [3] http://cvs.fedora.redhat.com/viewcvs/devel/xsp/ [4] http://cvs.fedora.redhat.com/viewcvs/devel/mod_mono/ [5] http://fedoraproject.org/wiki/EPEL -- Angel Marin http://anmar.eu.org/ From anagappan at novell.com Wed Aug 1 11:32:38 2007 From: anagappan at novell.com (A Nagappan) Date: Wed, 01 Aug 2007 09:32:38 -0600 Subject: [Mono-list] Mono on RHEL5 Message-ID: <46B0F4EF020000440000C09F@lucius.provo.novell.com> Hi, If you plan to use FC5, FC6, FC7, you can fetch the packages for x86 and x86_64 arch from here http://download.opensuse.org/repositories/Mono/ The power of OpenSuSE build service !!! Thanks Nagappan -- Nagappan A Linux Desktop Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com Novell, Inc. SUSE? Linux Enterprise 10 Your Linux is ready? http://www.novell.com/linux >>> Angel Marin 08/01/07 8:35 PM >>> Oleg Deribas escribi?: > Hello, > > Adrien Dessemond said the following on 18.07.2007 15:13: > >> I have installed it on a Centos 5 (the bad way : use packages built for >> RHEL4 dependencies) > >> In last resort, you can also use the generic installer. It works fine. > > I'm also want to install mono on Centos 5 x86_64, but there are not any > rpms for RHEL4 nor generic installer for x86_64 on mono download page. > > So is there any way to install mono on Centos 5 x86_64 from rpms? They're not available on any mayor repository that I have checked. You can take current rawhide specs and patches [1][2][3][4], they'll build on Centos5 (x86_64) with little adjustments. Hopefully it'll end up on EPEL[5] sooner or later. I have read somewhere that someone was already interested on maintaining it. In the mean time you'll have to build them yourself though. [1] http://cvs.fedora.redhat.com/viewcvs/devel/mono/ [2] http://cvs.fedora.redhat.com/viewcvs/devel/libgdiplus/ [3] http://cvs.fedora.redhat.com/viewcvs/devel/xsp/ [4] http://cvs.fedora.redhat.com/viewcvs/devel/mod_mono/ [5] http://fedoraproject.org/wiki/EPEL -- Angel Marin http://anmar.eu.org/ _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From jw at zaubercenter.de Wed Aug 1 12:11:20 2007 From: jw at zaubercenter.de (Jens Wurster) Date: Wed, 1 Aug 2007 18:11:20 +0200 Subject: [Mono-list] ASP .NET AJAX Framework In-Reply-To: <002401c7d284$e4083e50$ac18baf0$@de> References: <004201c7d1c8$533cb3e0$f9b61ba0$@de> <1185728120.420.45.camel@erandi.dom> <1185736589.420.73.camel@erandi.dom> <002401c7d284$e4083e50$ac18baf0$@de> Message-ID: <003401c7d456$9b261a30$d1724e90$@de> Hello, I found the reason for the JavaScript error (see my last mail). This is a short piece of the JavaScript file where the error is located. IE and Opera don't like the comma at the end of line 9. I am not sure if mono add this sort of code to the JavaScript file. Maybe there is a bug in a ScriptHandler- Manager or something else. 1 AjaxControlToolkit.ControlBase.registerClass("AjaxControlToolkit.ControlBase ", Sys.UI.Control); 2 AjaxControlToolkit.Resources={ 3 "Common_InvalidPaddingUnit":"A unit type of \"{0}\" is invalid for parsePadding", 4 . 5 . 6 . 7 "ExtenderBase_CannotSetClientStateField":"clientStateField can only be set before initialization", 8 "Animation_UknownAnimationName":"AjaxControlToolkit.Animation.createAnimatio n could not find an Animation corresponding to the name \"{0}\"", 9 "ExtenderBase_ControlNotRegisteredForCallbacks":"This Control has not been registered for callbacks", 10 }; Sorry, if this is now the wrong mailing list. =) Regards Jens ---------------------------------------------------------------------------- -- Hello, thanks for this update Miguel. I have compiled the assembly successful. The first error does not occur anymore. I think it was my fault, because I was wondering that this assembly was not compiled, so I used the assembly delivered by Microsoft. Now I have another problem. I am using the "AJAX Control Toolkit" to check if everything working fine. I know that this toolkit is not part of the mono project. Firefox displays all correct, but other browsers like IE and Opera put JavaScript errors. Here is the output of the Opera error console: JavaScript - http://192.168.0.4/ Inline script compilation Syntax error while loading: line 233 of linked script at http://192.168.0.4/ScriptResource.axd?a=AjaxControlToolkit%2c+Version%3d1.0. 10618.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e;r=AjaxCont rolToolkit.ExtenderBase.BaseScripts.js;t=633195602000000000;n=t : }; JavaScript - http://192.168.0.4/ Timeout thread: delay 0 ms Error: name: TypeError message: Statement on line 5: Type mismatch (usually a non-object value used where an object is required) Backtrace: Line 5 of linked script http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1 .0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f var a = g ? new h(g) : new h(), b = Sys.Application, i = b.get_isCreatingComponents(); a.beginUpdate(); if (f) if (d) b._createdComponents[b._createdComponents.length] = a; if (a.get_id()) if (i) else return a; Line 5 of inline#5 script in http://192.168.0.4/ $create(AjaxControlToolkit.AccordionBehavior, {ClientStateFieldID : "Accordion1_AccordionExtender_ClientState", id : "Accordion1_AccordionExtender"}, null, null, $get("Accordion1")); Line 5 of linked script http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1 .0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f for (var b = 0, e = a.length;b < e;b++) Line 5 of linked script http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1 .0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f Sys._Application.callBaseMethod(this, "initialize"); var a = this.get_events().getHandler("init"); if (a) this.raiseLoad(); this._initializing = false; Line 5 of linked script http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1 .0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f return b.apply(a, arguments); At unknown location [statement source code not available] Regards Jens _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From asuomala at hytti.uku.fi Wed Aug 1 12:23:31 2007 From: asuomala at hytti.uku.fi (Aleksi Suomalainen) Date: Wed, 01 Aug 2007 19:23:31 +0300 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released Message-ID: <46B0B383.9080807@hytti.uku.fi> Hello everyone, I'm happy to announce the official beta release of Monotooth. This release now has a stream, meaning that one can serialize an object and send it over bluetooth. This should open ventures for example OBEX, since protocols can be emulated with the use of serialization (see http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.iformatter.aspx). The sourceforge download site has a source package, which is located here: http://sourceforge.net/project/showfiles.php?group_id=190407&package_id=240572 As usual the SVN sources are available here: http://monotooth.svn.sourceforge.net/svnroot/monotooth I am very open to suggestions, questions, patches, requests and bug reports, so please send them :) . The official IRC channel for monotooth resides in FreeNode and its name is of course #monotooth. With Regards, -- Aleksi Suomalainen asuomala at hytti.uku.fi From adrien.dessemond at softhome.net Wed Aug 1 12:54:11 2007 From: adrien.dessemond at softhome.net (Adrien Dessemond) Date: Wed, 1 Aug 2007 12:54:11 -0400 (EDT) Subject: [Mono-list] Mono on RHEL5 In-Reply-To: <46B0F4EF020000440000C09F@lucius.provo.novell.com> References: <46B0F4EF020000440000C09F@lucius.provo.novell.com> Message-ID: <44383.132.221.52.36.1185987251.squirrel@pro.SoftHome.net> On Wed, August 1, 2007 11:32 am, A Nagappan wrote: Hello ! > Hi, > > If you plan to use FC5, FC6, FC7, you can fetch the packages for x86 and > x86_64 arch from here http://download.opensuse.org/repositories/Mono/ Dear Santa Claus, I wish the same up-to-date packages would be available for maintenaining Debian/Ubuntu based-hosts :-D Someone talked here about a 1.2.5 release some days ago. Is this one (still) planned more or less officially ? Kind regards, Adrien From andreas.faerber at web.de Wed Aug 1 13:09:14 2007 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Wed, 1 Aug 2007 19:09:14 +0200 Subject: [Mono-list] Mono on RHEL5 In-Reply-To: <44383.132.221.52.36.1185987251.squirrel@pro.SoftHome.net> References: <46B0F4EF020000440000C09F@lucius.provo.novell.com> <44383.132.221.52.36.1185987251.squirrel@pro.SoftHome.net> Message-ID: <8F6912AD-F6B0-4A9D-B923-90E51487A6D2@web.de> Am 01.08.2007 um 18:54 schrieb Adrien Dessemond: >> If you plan to use FC5, FC6, FC7, you can fetch the packages for >> x86 and >> x86_64 arch from here http://download.opensuse.org/repositories/Mono/ > > Dear Santa Claus, I wish the same up-to-date packages would be > available > for maintenaining Debian/Ubuntu based-hosts :-D Dear Adrien, Ubuntu Gutsy currently has Mono 1.2.4 and MonoDevelop 0.14, and in some areas it ships more CLI libraries than Java libraries. Not sure about Christmas though. ;-) Andreas From tyler at monkeypox.org Wed Aug 1 18:19:11 2007 From: tyler at monkeypox.org (R. Tyler Ballance) Date: Wed, 1 Aug 2007 15:19:11 -0700 Subject: [Mono-list] Developing in a mix environment In-Reply-To: <6938f5390707302246u336cb25flc5e180ad26a80908@mail.gmail.com> References: <6938f5390707302246u336cb25flc5e180ad26a80908@mail.gmail.com> Message-ID: <87AEE437-98B3-4183-B5A6-F90479335DFD@monkeypox.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jul 30, 2007, at 10:46 PM, John Anderson wrote: > What are your guys best tips for working in a mix environment > (Windows/Mac/Linux) ? > > How do you avoid running into new line/carriage return problems > between editors? > > How do you handle building projects between the systems? > -- Do you use nant/make files, if so, how do the windows > developers handle that > -- Do you use vs solutions with monodevelop? How well does it > work? Is there something on the Mac that can do this? > > What are the gotchas about developing in a mixed environment? > > How well does the mono add-in for Visual Studio work? > -- What versions does it work with I've been using NAnt and relatively standard editors (Vim and Emacs are 'relatively' cross-platform) and then as the other folks have already mentioned Subversion can be used to set properties on files to ensure line-ending standardization. The rub really comes when you need to work with developers that use Visual Studio 2005 (exclusively! >=[) then it's either usually a case of running their existing project files through prj2make and hoping for the best or making your case for Nant or something like Premake/ PreBuild. Cheers, - - R. Tyler Balllance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGsQbfA2GmJ0VpG78RAofYAJwPvmm/p4VtiSZHZUk5zZMWqH2oNQCdEqf0 vaXZ4Fwy6DG9pZUk0SwQITg= =m3U2 -----END PGP SIGNATURE----- From jason at jasoncable.com Wed Aug 1 18:34:06 2007 From: jason at jasoncable.com (cabes) Date: Wed, 1 Aug 2007 15:34:06 -0700 (PDT) Subject: [Mono-list] Oracle/OCI Thread Abort? Message-ID: <11955212.post@talk.nabble.com> Greetings! I'm running mono 1.2.4 that was compiled from source on OpenSuSE 10.2. I have the Oracle Instant Client version 10.2.0.3. I am getting the following exceptions after calling several stored procedures in Oracle. It will get thrown after 10 or so sproc calls. I'm thinking it might be an issue with OCI not being thread-safe. I've tried with connection pooling on and off with the same result. I'm running this from a console app. I'd appreciate any ideas. Thanks, Jason WITH CONN. POOLING: trying to GetStatementHandle connectionState=Open connectionString=Data Source=FOO;User Id=BAR;Pooling=true;Min Pool Size=10;Max Pool Size=50;Connection Lifetime=20;; connected=True Unhandled Exception: TrueBaseline.DataAccess.DAL.Facades.DALException: Unable to derive parameters. ---> System.Exception: Could not allocate new OCI Handle of type Statement at System.Data.OracleClient.Oci.OciHandle.Allocate (OciHandleType type) [0x00000] at System.Data.OracleClient.OracleCommand.GetStatementHandle () [0x00000] at System.Data.OracleClient.OracleCommand.ExecuteNonQuery () [0x00000] at (wrapper remoting-invoke-with-check) System.Data.OracleClient.OracleCommand:ExecuteNonQuery () at System.Data.OracleClient.OracleCommand.ResolveName (System.String nameToResolve, System.String& schema, System.String& part1, System.String& part2, System.String& dblink) [0x00000] at System.Data.OracleClient.OracleCommand.DeriveParametersFromStoredProcedure (System.String sproc_name) [0x00000] at System.Data.OracleClient.OracleCommand.DeriveParameters () [0x00000] at (wrapper remoting-invoke-with-check) System.Data.OracleClient.OracleCommand:DeriveParameters () at System.Data.OracleClient.OracleCommandBuilder.DeriveParameters (System.Data.OracleClient.OracleCommand command) [0x00000] at TrueBaseline.DataAccess.DAL.Facades.OracleClient.Command.set_CommandType (CommandType value) [0x00000] --- End of inner exception stack trace --- at TrueBaseline.DataAccess.DAL.Facades.OracleClient.Command.set_CommandType (CommandType value) [0x00000] at TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.OracleClient.StoredProcedureProvider.GetCommandWrapper (IDatabase database, System.String commandName, Boolean useStoredProcedure) [0x00000] at TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.OracleClient.OracleEventMessageFunctionalObjectMethodMapProviderBase.GetBySolutionDomainIDName (ITransactionManager transactionManager, Guid solutionDomainID, System.String name, Int32 start, Int32 pageLength, System.Int32& count) [0x00000] at TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.Bases.EventMessageFunctionalObjectMethodMapProviderBaseCore.GetBySolutionDomainIDName (Guid solutionDomainID, System.String name, Int32 start, Int32 pageLength, System.Int32& count) [0x00000] at TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.Bases.EventMessageFunctionalObjectMethodMapProviderBaseCore.GetBySolutionDomainIDName (Guid solutionDomainID, System.String name) [0x00000] at testoracle.MainClass.Main (System.String[] args) [0x00000] WITHOUT CONN POOLING: trying to GetStatementHandle connectionState=Open connectionString=Data Source=FOO;User Id=BAR;Pooling=false;Connection Lifetime=20;; connected=True mono [0x8156dbf] mono [0x8120e48] [0xb7eef440] /usr/lib/libclntsh.so(OCIErrorGet+0xa1) [0xb65407fb] [0xb167822f] [0xb16781c5] [0xb167807c] [0xb1677fd2] [0xb1677ed9] [0xb1677c38] [0xb197958c] [0xb1979531] [0xb1677b91] [0xb17873e9] [0xb197c45b] mono [0x816c965] mono [0x8111541] mono [0x816cb19] mono [0x80eb040] mono [0x8100b02] mono [0x8113d35] /lib/libpthread.so.0 [0xb7e15112] /lib/libc.so.6(clone+0x5e) [0xb7d7b2ee] got StatementHandle hasRows=True parameter count: 3 Debug info from gdb: Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1211385120 (LWP 9900)] [New Thread -1219863664 (LWP 9902)] [New Thread -1219781744 (LWP 9901)] 0xb7eef410 in ?? () 3 Thread -1219781744 (LWP 9901) 0xb7eef410 in ?? () 2 Thread -1219863664 (LWP 9902) 0xb7eef410 in ?? () 1 Thread -1211385120 (LWP 9900) 0xb7eef410 in ?? () Thread 3 (Thread -1219781744 (LWP 9901)): #0 0xb7eef410 in ?? () #1 0xb74b93a8 in ?? () #2 0x081f8ff4 in ?? () #3 0x00000000 in ?? () Thread 2 (Thread -1219863664 (LWP 9902)): #0 0xb7eef410 in ?? () #1 0xb74a4338 in ?? () #2 0x00000000 in ?? () Thread 1 (Thread -1211385120 (LWP 9900)): #0 0xb7eef410 in ?? () #1 0xbfe91d38 in ?? () #2 0x00000810 in ?? () #3 0x0873a5c6 in ?? () #4 0xb7e1c02b in __read_nocancel () from /lib/libpthread.so.0 #5 0xb676080f in snttread () from /usr/lib/libclntsh.so #6 0xb675dce1 in nttrd () from /usr/lib/libclntsh.so #7 0xb66b0bc0 in nsprecv () from /usr/lib/libclntsh.so #8 0xb66b4c8b in nsrdr () from /usr/lib/libclntsh.so #9 0xb66943ee in nsdo () from /usr/lib/libclntsh.so #10 0xb6693e97 in nsbrecv () from /usr/lib/libclntsh.so #11 0xb66c8567 in nioqrc () from /usr/lib/libclntsh.so #12 0xb67eacbf in ttcdrv () from /usr/lib/libclntsh.so #13 0xb66cfbc8 in nioqwa () from /usr/lib/libclntsh.so #14 0xb653b618 in upirtrc () from /usr/lib/libclntsh.so #15 0xb64b05f6 in kpurcsc () from /usr/lib/libclntsh.so #16 0xb64648b8 in kpuexecv8 () from /usr/lib/libclntsh.so #17 0xb6466ec4 in kpuexec () from /usr/lib/libclntsh.so #18 0xb65401b6 in OCIStmtExecute () from /usr/lib/libclntsh.so #19 0xb1ad2f8a in ?? () #20 0x087178b0 in ?? () #21 0x0872d354 in ?? () #22 0x08716c44 in ?? () #23 0x00000000 in ?? () #0 0xb7eef410 in ?? () ================================================================= 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. ================================================================= Aborted -- View this message in context: http://www.nabble.com/Oracle-OCI-Thread-Abort--tf4203144.html#a11955212 Sent from the Mono - General mailing list archive at Nabble.com. From newptcai at gmail.com Wed Aug 1 20:29:44 2007 From: newptcai at gmail.com (Peter Cai) Date: Thu, 2 Aug 2007 08:29:44 +0800 Subject: [Mono-list] Is mono suitable for building an XML-RPC Sever? Message-ID: Hi all, Recently I was thinking about building a XML-RPC Server based on MONO. It's main purpose is to providing an easy-to-use interface for our system. You can think it as a gateway software which interpret XML-RPC request to our inner system protocol. Last week, I've talked with a BEA sales man about their Jrockit JVM. He told me that any runtime environment would slow done severely when collecting garbage. And even if Jrockit is the fastest JVM on the world, it still has that problem. So, what I want to know is that, did someone succeed in some similar job based on MONO? Thanks. -- Tonight I can write the saddest lines. To think that I do not have her. To feel that I have lost her. ---- Pablo Neruda From anagappan at novell.com Thu Aug 2 02:01:32 2007 From: anagappan at novell.com (A Nagappan) Date: Thu, 02 Aug 2007 00:01:32 -0600 Subject: [Mono-list] Oracle/OCI Thread Abort? In-Reply-To: <11955212.post@talk.nabble.com> References: <11955212.post@talk.nabble.com> Message-ID: <46B1BE9E.11BB.0044.0@novell.com> Hi, Probably you can file this as a bug and assign to skolima at gmail.com Mono Oracle Client maintainer. Thanks Nagappan -- -- Nagappan A Linux Desktop Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com Novell, Inc. SUSE* Linux Enterprise 10 Your Linux is ready* http://www.novell.com/linux >>> On 8/2/2007 at 4:04 AM, in message <11955212.post at talk.nabble.com>, cabes wrote: > Greetings! I'm running mono 1.2.4 that was compiled from source on OpenSuSE > 10.2. I have the Oracle Instant Client version 10.2.0.3. I am getting the > following exceptions after calling several stored procedures in Oracle. It > will get thrown after 10 or so sproc calls. I'm thinking it might be an > issue with OCI not being thread-safe. I've tried with connection pooling on > and off with the same result. I'm running this from a console app. I'd > appreciate any ideas. > > Thanks, > Jason > > > WITH CONN. POOLING: > > trying to GetStatementHandle > connectionState=Open > connectionString=Data Source=FOO;User Id=BAR;Pooling=true;Min Pool > Size=10;Max Pool Size=50;Connection Lifetime=20;; > connected=True > > Unhandled Exception: TrueBaseline.DataAccess.DAL.Facades.DALException: > Unable to derive parameters. ---> System.Exception: Could not allocate new > OCI Handle of type Statement > at System.Data.OracleClient.Oci.OciHandle.Allocate (OciHandleType type) > [0x00000] > at System.Data.OracleClient.OracleCommand.GetStatementHandle () [0x00000] > at System.Data.OracleClient.OracleCommand.ExecuteNonQuery () [0x00000] > at (wrapper remoting-invoke-with-check) > System.Data.OracleClient.OracleCommand:ExecuteNonQuery () > at System.Data.OracleClient.OracleCommand.ResolveName (System.String > nameToResolve, System.String& schema, System.String& part1, System.String& > part2, System.String& dblink) [0x00000] > at > System.Data.OracleClient.OracleCommand.DeriveParametersFromStoredProcedure > (System.String sproc_name) [0x00000] > at System.Data.OracleClient.OracleCommand.DeriveParameters () [0x00000] > at (wrapper remoting-invoke-with-check) > System.Data.OracleClient.OracleCommand:DeriveParameters () > at System.Data.OracleClient.OracleCommandBuilder.DeriveParameters > (System.Data.OracleClient.OracleCommand command) [0x00000] > at > TrueBaseline.DataAccess.DAL.Facades.OracleClient.Command.set_CommandType > (CommandType value) [0x00000] --- End of inner exception stack trace --- > > at > TrueBaseline.DataAccess.DAL.Facades.OracleClient.Command.set_CommandType > (CommandType value) [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.OracleC > lient.StoredProcedureProvider.GetCommandWrapper > (IDatabase database, System.String commandName, Boolean useStoredProcedure) > [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.OracleC > lient.OracleEventMessageFunctionalObjectMethodMapProviderBase.GetBySolutionDo > mainIDName > (ITransactionManager transactionManager, Guid solutionDomainID, > System.String name, Int32 start, Int32 pageLength, System.Int32& count) > [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.Bases.E > ventMessageFunctionalObjectMethodMapProviderBaseCore.GetBySolutionDomainIDNam > e > (Guid solutionDomainID, System.String name, Int32 start, Int32 pageLength, > System.Int32& count) [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.Bases.E > ventMessageFunctionalObjectMethodMapProviderBaseCore.GetBySolutionDomainIDNam > e > (Guid solutionDomainID, System.String name) [0x00000] > at testoracle.MainClass.Main (System.String[] args) [0x00000] > > > > WITHOUT CONN POOLING: > > trying to GetStatementHandle > connectionState=Open > connectionString=Data Source=FOO;User Id=BAR;Pooling=false;Connection > Lifetime=20;; > connected=True mono [0x8156dbf] > mono [0x8120e48] > [0xb7eef440] > /usr/lib/libclntsh.so(OCIErrorGet+0xa1) [0xb65407fb] > [0xb167822f] > [0xb16781c5] > [0xb167807c] > [0xb1677fd2] > [0xb1677ed9] > [0xb1677c38] > [0xb197958c] > [0xb1979531] > [0xb1677b91] > [0xb17873e9] > [0xb197c45b] > mono [0x816c965] > mono [0x8111541] > mono [0x816cb19] > mono [0x80eb040] > mono [0x8100b02] > mono [0x8113d35] > /lib/libpthread.so.0 [0xb7e15112] > /lib/libc.so.6(clone+0x5e) [0xb7d7b2ee] > > got StatementHandle > hasRows=True > parameter count: 3 > > Debug info from gdb: > > Using host libthread_db library "/lib/libthread_db.so.1". > [Thread debugging using libthread_db enabled] > [New Thread -1211385120 (LWP 9900)] > [New Thread -1219863664 (LWP 9902)] > [New Thread -1219781744 (LWP 9901)] > 0xb7eef410 in ?? () > 3 Thread -1219781744 (LWP 9901) 0xb7eef410 in ?? () > 2 Thread -1219863664 (LWP 9902) 0xb7eef410 in ?? () > 1 Thread -1211385120 (LWP 9900) 0xb7eef410 in ?? () > > Thread 3 (Thread -1219781744 (LWP 9901)): > #0 0xb7eef410 in ?? () > #1 0xb74b93a8 in ?? () > #2 0x081f8ff4 in ?? () > #3 0x00000000 in ?? () > > Thread 2 (Thread -1219863664 (LWP 9902)): > #0 0xb7eef410 in ?? () > #1 0xb74a4338 in ?? () > #2 0x00000000 in ?? () > > Thread 1 (Thread -1211385120 (LWP 9900)): > #0 0xb7eef410 in ?? () > #1 0xbfe91d38 in ?? () > #2 0x00000810 in ?? () > #3 0x0873a5c6 in ?? () > #4 0xb7e1c02b in __read_nocancel () from /lib/libpthread.so.0 > #5 0xb676080f in snttread () from /usr/lib/libclntsh.so > #6 0xb675dce1 in nttrd () from /usr/lib/libclntsh.so > #7 0xb66b0bc0 in nsprecv () from /usr/lib/libclntsh.so > #8 0xb66b4c8b in nsrdr () from /usr/lib/libclntsh.so > #9 0xb66943ee in nsdo () from /usr/lib/libclntsh.so > #10 0xb6693e97 in nsbrecv () from /usr/lib/libclntsh.so > #11 0xb66c8567 in nioqrc () from /usr/lib/libclntsh.so > #12 0xb67eacbf in ttcdrv () from /usr/lib/libclntsh.so > #13 0xb66cfbc8 in nioqwa () from /usr/lib/libclntsh.so > #14 0xb653b618 in upirtrc () from /usr/lib/libclntsh.so > #15 0xb64b05f6 in kpurcsc () from /usr/lib/libclntsh.so > #16 0xb64648b8 in kpuexecv8 () from /usr/lib/libclntsh.so > #17 0xb6466ec4 in kpuexec () from /usr/lib/libclntsh.so > #18 0xb65401b6 in OCIStmtExecute () from /usr/lib/libclntsh.so > #19 0xb1ad2f8a in ?? () > #20 0x087178b0 in ?? () > #21 0x0872d354 in ?? () > #22 0x08716c44 in ?? () > #23 0x00000000 in ?? () > #0 0xb7eef410 in ?? () > > > ================================================================= > 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. > ================================================================= > > Aborted From suneeshvr at gmail.com Thu Aug 2 02:54:42 2007 From: suneeshvr at gmail.com (Suneesh V.R) Date: Thu, 2 Aug 2007 12:24:42 +0530 Subject: [Mono-list] MPP to MPD Message-ID: <441dd36e0708012354y7feb192du2224ef9661d8dd47@mail.gmail.com> Hi, I would like to know the following code will work in linux using Mono & .Net Sub Test() Dim FSO Dim MSProjectApp Dim INPath,OUTPath Const pjDoNotSave = 0 INPath = Document.ConvertMPP.filename.value OUTPath = Replace(INPath,".mpp",".mpd") 'validate the IN and OUT parameters If INPath = "" OR OUTPath = "" Then ' error condition - does not require any action Else 'Validate the Input file Set FSO = CreateObject("Scripting.FileSystemObject") If FSO.FileExists(INPath) Then 'convert the mpp to mpd Set MSProjectApp = CreateObject("MSProject.Application") MSProjectApp.FileOpen(INPath) MSProjectApp.FileSaveAs(OUTPath) MSProjectApp.Application.FileCloseAll(pjDoNotSave) Set MSProjectApp = Nothing End If If FSO.FileExists(OUTPath) Then 'FSO.DeleteFile(OUTPath) ' commented, End If Set FSO = Nothing End If End Sub Thanks Suneesh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070802/185ee3a0/attachment.html From andyhume32 at yahoo.co.uk Thu Aug 2 05:05:09 2007 From: andyhume32 at yahoo.co.uk (Andy Hume) Date: Thu, 2 Aug 2007 10:05:09 +0100 Subject: [Mono-list] MPP to MPD In-Reply-To: <441dd36e0708012354y7feb192du2224ef9661d8dd47@mail.gmail.com> References: <441dd36e0708012354y7feb192du2224ef9661d8dd47@mail.gmail.com> Message-ID: <00ad01c7d4e4$3aa21040$0302a8c0@alanpc1> The code seems based around driving MSProject.Application. So unless you have some magic copy of Microsoft Project that runs on Linux, then no it won't run on Linux. :-,) (The use of the FSO could be converted to System.IO .File etc calls but that's minor compared to the first). Andy ________________________________ From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Suneesh V.R Sent: 02 August 2007 07:55 To: mono-list at lists.ximian.com Subject: [Mono-list] MPP to MPD Hi, I would like to know the following code will work in linux using Mono & .Net Sub Test() Dim FSO Dim MSProjectApp Dim INPath,OUTPath Const pjDoNotSave = 0 INPath = Document.ConvertMPP.filename.value OUTPath = Replace(INPath,".mpp",".mpd") 'validate the IN and OUT parameters If INPath = "" OR OUTPath = "" Then ' error condition - does not require any action Else 'Validate the Input file Set FSO = CreateObject(" Scripting.FileSystemObject") If FSO.FileExists(INPath) Then 'convert the mpp to mpd Set MSProjectApp = CreateObject("MSProject.Application") MSProjectApp.FileOpen(INPath) MSProjectApp.FileSaveAs(OUTPath) MSProjectApp.Application.FileCloseAll(pjDoNotSave) Set MSProjectApp = Nothing End If If FSO.FileExists(OUTPath) Then 'FSO.DeleteFile(OUTPath) ' commented, End If Set FSO = Nothing End If End Sub Thanks Suneesh From andyhume32 at yahoo.co.uk Thu Aug 2 06:39:04 2007 From: andyhume32 at yahoo.co.uk (Andy Hume) Date: Thu, 2 Aug 2007 11:39:04 +0100 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: <46B0B383.9080807@hytti.uku.fi> References: <46B0B383.9080807@hytti.uku.fi> Message-ID: <00ae01c7d4f1$595fb5c0$0302a8c0@alanpc1> Aleksi Suomalainen wrote: > I'm happy to announce the official beta release of Monotooth. > This release now has a stream, meaning that one can serialize > an object and send it over bluetooth. This should open > ventures for example OBEX, since protocols can be emulated > with the use of serialization (see > http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.if ormatter.aspx). > Can I then mention my library Brecham.Obex, it can provide the OBEX support. It provides full OBEX support (PUT, GET, SETPATH, Folder-Listings, asynchronous-style calling etc), and only needs a Stream to connect to. It runs well on Mono (there are one or two issues in the sample applications which I expect to be fixed with Mono 1.2.5). It is available from http://32feet.net/ It is closed-source currently, but free for any use. I'd be please to hear if it works with the Monotooth library. Contact me by email or at the forum at the 32feet website. Now, just giving it a short mention, I'll note that 32feet.NET itself is a library providing support for Bluetooth, IrDA (and simple OBEX) for .NET. So covering the same area as your library, but supporting different platforms, as currently it runs on Win32 and WinCE, supporting the MSFT Bluetooth stack on both. It is open-source via CodePlex. I've made a few changes locally to Mono's socket-io.c allow it to work. But that's for another message. Contact me if anyone's interested. Andy From jonpryor at vt.edu Thu Aug 2 07:40:48 2007 From: jonpryor at vt.edu (Jonathan Pryor) Date: Thu, 02 Aug 2007 07:40:48 -0400 Subject: [Mono-list] Is mono suitable for building an XML-RPC Sever? In-Reply-To: References: Message-ID: <1186054848.4339.75.camel@lina.magi.jprl.com> On Thu, 2007-08-02 at 08:29 +0800, Peter Cai wrote: > Last week, I've talked with a BEA sales man about their Jrockit JVM. > He told me that any runtime environment would slow done severely when > collecting garbage. And even if Jrockit is the fastest JVM on the > world, it still has that problem. To a certain extent, that has to be true for *every* system. In C, if you allocate a lot of short-lived objects on the heap, you'll spend a lot of time within malloc(3) and free(3), potentially fragment the heap (depending on allocation pattern), and come to a grinding halt when malloc(3) can't find any free memory because it's too fragmented. (Or on Linux, come to a grinding halt as the system starts paging like mad because malloc(3) never returns NULL.) The answer, as always, is Don't Do That. Lots of short-lived heap-allocated objects isn't good for performance in C. Things are different with a GC, but not terribly: there are some allocation patterns that GC's can deal with efficiently (lots of short-lived objects), and others that are less efficient (e.g. objects which are unreferenced soon after being promoted to Gen2 in .NET, as Gen2 isn't collected very often, so the memory will be occupied-but-useless for quite some time.) So I'm quite sure you could do an XML-RPC server in Java or Mono or anything else, but you'll have to design your algorithms to take your memory allocations into account. Re-using existing memory buffers might be better, or always allocating new buffers might be better; it all depends. Check your GC documentation for more information. (For example, Microsoft blogs have suggested that you profile your app and make sure you spend less than 10% of your CPU time in the GC. .NET has performance monitors to measure the CPU time. If you spend more than that, you'll see noticeable performance problems.) As for Mono, it currently uses the Boehm conservative GC. This means that there is less overhead for collecting garbage -- memory isn't compacted, for example, so you don't have to pay the time cost of a moving collector -- but you also have the heap fragmentation problems of malloc(3) -- you might have enough memory, but you can't allocate an object because there isn't enough contiguous free memory. - Jon From newptcai at gmail.com Thu Aug 2 08:31:46 2007 From: newptcai at gmail.com (Peter Cai) Date: Thu, 2 Aug 2007 20:31:46 +0800 Subject: [Mono-list] Is mono suitable for building an XML-RPC Sever? In-Reply-To: <1186054848.4339.75.camel@lina.magi.jprl.com> References: <1186054848.4339.75.camel@lina.magi.jprl.com> Message-ID: Oh, you are so nice. I didn't expected such a comprehensive explanation about GC for my experience of technique discussion in mailing list. In the last paragraph, did you mean that I should reuse buffer or object as much as possible to get a better performance on MONO? On 8/2/07, Jonathan Pryor wrote: > On Thu, 2007-08-02 at 08:29 +0800, Peter Cai wrote: > > Last week, I've talked with a BEA sales man about their Jrockit JVM. > > He told me that any runtime environment would slow done severely when > > collecting garbage. And even if Jrockit is the fastest JVM on the > > world, it still has that problem. > > To a certain extent, that has to be true for *every* system. In C, if > you allocate a lot of short-lived objects on the heap, you'll spend a > lot of time within malloc(3) and free(3), potentially fragment the heap > (depending on allocation pattern), and come to a grinding halt when > malloc(3) can't find any free memory because it's too fragmented. (Or > on Linux, come to a grinding halt as the system starts paging like mad > because malloc(3) never returns NULL.) > > The answer, as always, is Don't Do That. Lots of short-lived > heap-allocated objects isn't good for performance in C. > > Things are different with a GC, but not terribly: there are some > allocation patterns that GC's can deal with efficiently (lots of > short-lived objects), and others that are less efficient (e.g. objects > which are unreferenced soon after being promoted to Gen2 in .NET, as > Gen2 isn't collected very often, so the memory will be > occupied-but-useless for quite some time.) > > So I'm quite sure you could do an XML-RPC server in Java or Mono or > anything else, but you'll have to design your algorithms to take your > memory allocations into account. Re-using existing memory buffers might > be better, or always allocating new buffers might be better; it all > depends. Check your GC documentation for more information. > > (For example, Microsoft blogs have suggested that you profile your app > and make sure you spend less than 10% of your CPU time in the GC. .NET > has performance monitors to measure the CPU time. If you spend more > than that, you'll see noticeable performance problems.) > > As for Mono, it currently uses the Boehm conservative GC. This means > that there is less overhead for collecting garbage -- memory isn't > compacted, for example, so you don't have to pay the time cost of a > moving collector -- but you also have the heap fragmentation problems of > malloc(3) -- you might have enough memory, but you can't allocate an > object because there isn't enough contiguous free memory. > > - Jon > > > -- Tonight I can write the saddest lines. To think that I do not have her. To feel that I have lost her. ---- Pablo Neruda From jonpryor at vt.edu Thu Aug 2 08:53:47 2007 From: jonpryor at vt.edu (Jonathan Pryor) Date: Thu, 02 Aug 2007 08:53:47 -0400 Subject: [Mono-list] Is mono suitable for building an XML-RPC Sever? In-Reply-To: References: <1186054848.4339.75.camel@lina.magi.jprl.com> Message-ID: <1186059227.7699.2.camel@lina.magi.jprl.com> On Thu, 2007-08-02 at 20:31 +0800, Peter Cai wrote: > In the last paragraph, did you mean that I should reuse buffer or > object as much as possible to get a better performance on MONO? There only one answer to any performance-related question: profile. In some circumstances, re-using the buffer may be faster. In others, creating a new one is faster. That could change depending on a number of factors, not least of which is the GC you're using (and Mono will be getting a new GC with 2.0). So the only way to know for sure is to write the app (or a minimal test app) and profile it to see where time is _actually_ being spent, instead of just speculating. Under mono, you can use the --profile option to turn on profiling. See the mono(1) man page for more information (search for PROFILING). - Jon From adam at morrison-ind.com Thu Aug 2 10:31:24 2007 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Thu, 02 Aug 2007 10:31:24 -0400 Subject: [Mono-list] Is mono suitable for building an XML-RPC Sever? In-Reply-To: References: Message-ID: <1186065084.4602.8.camel@aleph.whitemice.org> > Recently I was thinking about building a XML-RPC Server based on MONO. > It's main purpose is to providing an easy-to-use interface for our > system. You can think it as a gateway software which interpret > XML-RPC request to our inner system protocol. > Last week, I've talked with a BEA sales man about their Jrockit JVM. > He told me that any runtime environment would slow done severely when > collecting garbage. And even if Jrockit is the fastest JVM on the > world, it still has that problem. > So, what I want to know is that, did someone succeed in some similar > job based on MONO? I don't know anything about BEA or Jrockit but I do *LOTS* of XML-RPC calls with Cook Computing's XML-RPC.NET in Mono and I've never noticed any kind of performance issue. Of course there is overhead with GC, but I don't really think it is avoidable; either the VM is doing GC or you are. I think the only way to know for your app is to test; for me, even testing on a weenie 1.4GHz Celery laptop I frequently see call-to-callback times of less than 100ms for small payloads. http://www.xml-rpc.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070802/539b99b4/attachment.bin From andreas.faerber at web.de Thu Aug 2 10:12:57 2007 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Thu, 2 Aug 2007 16:12:57 +0200 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: <46B0B383.9080807@hytti.uku.fi> References: <46B0B383.9080807@hytti.uku.fi> Message-ID: <045C63F1-D6C9-4063-954E-490BDA24B6CB@web.de> Hi Aleksi, > I'm happy to announce the official beta release of Monotooth. > I am very open to suggestions, questions, patches, requests and bug > reports, so please send them :) . I am very interested in such a cross-platform library. Taking a quick look at the repository, is there any chance to simplify the namespace and the class structure? (why monotooth.Model.*? maybe Monotooth.*?) Independent of the underlying implementation it would be more handy if you could provide front-end classes like LocalDevice that wrap any internal platform decisions, so that e.g. the local device's (default) BDADDR can be accessed via LocalDevice.Address (JSR-82 style) instead of having to go through the full-blown factory pattern first - the developer cannot really chose an implementation to use on a given platform as in the classic widget factory example. When no device is attached on Linux a message is written to stdout - some Exception should probably be thrown instead. :) Also, I see on Linux you are handling the inquiry via a native library and BlueZ's hci_inquiry function - I have recently found their D-Bus interface to be much more powerful (inquiry provides up- to-date RSSI), and using dbus-sharp would reduce the need for native code in that area. I have some example code I could share. Finally, would you be interested in extending platform support to Mac OS X in future versions? Regards, Andreas From adam at morrison-ind.com Thu Aug 2 10:50:40 2007 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Thu, 02 Aug 2007 10:50:40 -0400 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: <045C63F1-D6C9-4063-954E-490BDA24B6CB@web.de> References: <46B0B383.9080807@hytti.uku.fi> <045C63F1-D6C9-4063-954E-490BDA24B6CB@web.de> Message-ID: <1186066240.4602.13.camel@aleph.whitemice.org> > > I'm happy to announce the official beta release of Monotooth. > > I am very open to suggestions, questions, patches, requests and bug > > reports, so please send them :) . > I am very interested in such a cross-platform library. Taking a quick Yep; I work on groupware/collaberation/CRM stuff, and I use bluetooth devices allot. I'd love a fairly simple cross-platform way to list currently active devices and the ability to perform simple tasks like send-vcard-to-device-x. > When no device is attached on Linux a message is written to stdout - > some Exception should probably be thrown instead. :) Yep. > Also, I see on Linux you are handling the inquiry via a native > library and BlueZ's hci_inquiry function - I have recently found > their D-Bus interface to be much more powerful (inquiry provides up- > to-date RSSI), and using dbus-sharp would reduce the need for native > code in that area. I have some example code I could share. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070802/e4f97942/attachment.bin From monodanmorg at yahoo.com Thu Aug 2 12:31:28 2007 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Thu, 2 Aug 2007 09:31:28 -0700 (PDT) Subject: [Mono-list] Oracle/OCI Thread Abort? In-Reply-To: <11955212.post@talk.nabble.com> Message-ID: <293870.52949.qm@web30801.mail.mud.yahoo.com> I don't know the answer to OCI. However, I do know the Oracle provider is NOT thread-safe. Is the oracle client provider in microsoft .net framework thread-safe? If yes, any recommendations on how to make the provider thread-safe? --- cabes wrote: > > Greetings! I'm running mono 1.2.4 that was compiled > from source on OpenSuSE > 10.2. I have the Oracle Instant Client version > 10.2.0.3. I am getting the > following exceptions after calling several stored > procedures in Oracle. It > will get thrown after 10 or so sproc calls. I'm > thinking it might be an > issue with OCI not being thread-safe. I've tried > with connection pooling on > and off with the same result. I'm running this from > a console app. I'd > appreciate any ideas. > > Thanks, > Jason > > > WITH CONN. POOLING: > > trying to GetStatementHandle > connectionState=Open > connectionString=Data Source=FOO;User > Id=BAR;Pooling=true;Min Pool > Size=10;Max Pool Size=50;Connection Lifetime=20;; > connected=True > > Unhandled Exception: > TrueBaseline.DataAccess.DAL.Facades.DALException: > Unable to derive parameters. ---> System.Exception: > Could not allocate new > OCI Handle of type Statement > at System.Data.OracleClient.Oci.OciHandle.Allocate > (OciHandleType type) > [0x00000] > at > System.Data.OracleClient.OracleCommand.GetStatementHandle > () [0x00000] > at > System.Data.OracleClient.OracleCommand.ExecuteNonQuery > () [0x00000] > at (wrapper remoting-invoke-with-check) > System.Data.OracleClient.OracleCommand:ExecuteNonQuery > () > at > System.Data.OracleClient.OracleCommand.ResolveName > (System.String > nameToResolve, System.String& schema, System.String& > part1, System.String& > part2, System.String& dblink) [0x00000] > at > System.Data.OracleClient.OracleCommand.DeriveParametersFromStoredProcedure > (System.String sproc_name) [0x00000] > at > System.Data.OracleClient.OracleCommand.DeriveParameters > () [0x00000] > at (wrapper remoting-invoke-with-check) > System.Data.OracleClient.OracleCommand:DeriveParameters > () > at > System.Data.OracleClient.OracleCommandBuilder.DeriveParameters > (System.Data.OracleClient.OracleCommand command) > [0x00000] > at > TrueBaseline.DataAccess.DAL.Facades.OracleClient.Command.set_CommandType > (CommandType value) [0x00000] --- End of inner > exception stack trace --- > > at > TrueBaseline.DataAccess.DAL.Facades.OracleClient.Command.set_CommandType > (CommandType value) [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.OracleClient.StoredProcedureProvider.GetCommandWrapper > (IDatabase database, System.String commandName, > Boolean useStoredProcedure) > [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.OracleClient.OracleEventMessageFunctionalObjectMethodMapProviderBase.GetBySolutionDomainIDName > (ITransactionManager transactionManager, Guid > solutionDomainID, > System.String name, Int32 start, Int32 pageLength, > System.Int32& count) > [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.Bases.EventMessageFunctionalObjectMethodMapProviderBaseCore.GetBySolutionDomainIDName > (Guid solutionDomainID, System.String name, Int32 > start, Int32 pageLength, > System.Int32& count) [0x00000] > at > TrueBaseline.DataAccess.DataApplicationBlock.TrueOmf.DataAccessLayer.Bases.EventMessageFunctionalObjectMethodMapProviderBaseCore.GetBySolutionDomainIDName > (Guid solutionDomainID, System.String name) > [0x00000] > at testoracle.MainClass.Main (System.String[] > args) [0x00000] > > > > WITHOUT CONN POOLING: > > trying to GetStatementHandle > connectionState=Open > connectionString=Data Source=FOO;User > Id=BAR;Pooling=false;Connection > Lifetime=20;; > connected=True mono [0x8156dbf] > mono [0x8120e48] > [0xb7eef440] > /usr/lib/libclntsh.so(OCIErrorGet+0xa1) > [0xb65407fb] > [0xb167822f] > [0xb16781c5] > [0xb167807c] > [0xb1677fd2] > [0xb1677ed9] > [0xb1677c38] > [0xb197958c] > [0xb1979531] > [0xb1677b91] > [0xb17873e9] > [0xb197c45b] > mono [0x816c965] > mono [0x8111541] > mono [0x816cb19] > mono [0x80eb040] > mono [0x8100b02] > mono [0x8113d35] > /lib/libpthread.so.0 [0xb7e15112] > /lib/libc.so.6(clone+0x5e) [0xb7d7b2ee] > > got StatementHandle > hasRows=True > parameter count: 3 > > Debug info from gdb: > > Using host libthread_db library > "/lib/libthread_db.so.1". > [Thread debugging using libthread_db enabled] > [New Thread -1211385120 (LWP 9900)] > [New Thread -1219863664 (LWP 9902)] > [New Thread -1219781744 (LWP 9901)] > 0xb7eef410 in ?? () > 3 Thread -1219781744 (LWP 9901) 0xb7eef410 in ?? > () > 2 Thread -1219863664 (LWP 9902) 0xb7eef410 in ?? > () > 1 Thread -1211385120 (LWP 9900) 0xb7eef410 in ?? > () > > Thread 3 (Thread -1219781744 (LWP 9901)): > #0 0xb7eef410 in ?? () > #1 0xb74b93a8 in ?? () > #2 0x081f8ff4 in ?? () > #3 0x00000000 in ?? () > > Thread 2 (Thread -1219863664 (LWP 9902)): > #0 0xb7eef410 in ?? () > #1 0xb74a4338 in ?? () > #2 0x00000000 in ?? () > > Thread 1 (Thread -1211385120 (LWP 9900)): > #0 0xb7eef410 in ?? () > #1 0xbfe91d38 in ?? () > #2 0x00000810 in ?? () > #3 0x0873a5c6 in ?? () > #4 0xb7e1c02b in __read_nocancel () from > /lib/libpthread.so.0 > #5 0xb676080f in snttread () from > /usr/lib/libclntsh.so > #6 0xb675dce1 in nttrd () from > /usr/lib/libclntsh.so > #7 0xb66b0bc0 in nsprecv () from > /usr/lib/libclntsh.so > #8 0xb66b4c8b in nsrdr () from > /usr/lib/libclntsh.so > #9 0xb66943ee in nsdo () from /usr/lib/libclntsh.so > #10 0xb6693e97 in nsbrecv () from > /usr/lib/libclntsh.so > #11 0xb66c8567 in nioqrc () from > /usr/lib/libclntsh.so > #12 0xb67eacbf in ttcdrv () from > /usr/lib/libclntsh.so > #13 0xb66cfbc8 in nioqwa () from > /usr/lib/libclntsh.so > #14 0xb653b618 in upirtrc () from > /usr/lib/libclntsh.so > #15 0xb64b05f6 in kpurcsc () from > /usr/lib/libclntsh.so > #16 0xb64648b8 in kpuexecv8 () from > /usr/lib/libclntsh.so > #17 0xb6466ec4 in kpuexec () from > /usr/lib/libclntsh.so > #18 0xb65401b6 in OCIStmtExecute () from > /usr/lib/libclntsh.so > #19 0xb1ad2f8a in ?? () > #20 0x087178b0 in ?? () > #21 0x0872d354 in ?? () > #22 0x08716c44 in ?? () > #23 0x00000000 in ?? () > #0 0xb7eef410 in ?? () > === message truncated === ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ From phoffman at proper.com Thu Aug 2 19:15:49 2007 From: phoffman at proper.com (Paul Hoffman) Date: Thu, 2 Aug 2007 16:15:49 -0700 Subject: [Mono-list] Problem with compiling on Ubuntu 6.06 Message-ID: Greetings. I'm trying to compile 1.2.4 from source on Ubuntu 6.06. I have added a few of the things needed, but ./configure now stops at: ... checking for -Wdeclaration-after-statement option to gcc... yes checking for pkg-config... /usr/bin/pkg-config Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found Package gthread-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gthread-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gthread-2.0' found Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found Package gthread-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gthread-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gthread-2.0' found checking pkg-config is at least version 0.9.0... yes checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 1.3.11) were not met: No package 'glib-2.0' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. The problem is not that I don't have glib-2.0, it's that it is called something different on Ubuntu, namely libglib2.0-0. How do I tell ./configure to look for libglib2.0-0 instead of glib-2.0? From sontek at gmail.com Fri Aug 3 01:27:33 2007 From: sontek at gmail.com (John Anderson) Date: Thu, 2 Aug 2007 23:27:33 -0600 Subject: [Mono-list] What tools help you develop under Linux? Message-ID: <6938f5390708022227x3d4307d9x51fcf88c490519dc@mail.gmail.com> I'm currently working with Gtk for the first time and I can't really find any good tools for documentation. I want a quick way to check the overloads of a method or view the members of a class. This is usually done through the IDE with intellisense but I'd rather work with vim and the command line if possible. I've looked at monodoc but my installation doesn't have any information for Gtk, but I haven't looked into to much just yet. What do you guys use when you are trying to get familiar with new libraries? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070802/97d67962/attachment-0001.html From dgriffi at cs.csubak.edu Fri Aug 3 01:43:25 2007 From: dgriffi at cs.csubak.edu (David Griffith) Date: Thu, 2 Aug 2007 22:43:25 -0700 (PDT) Subject: [Mono-list] What tools help you develop under Linux? In-Reply-To: <6938f5390708022227x3d4307d9x51fcf88c490519dc@mail.gmail.com> References: <6938f5390708022227x3d4307d9x51fcf88c490519dc@mail.gmail.com> Message-ID: On Thu, 2 Aug 2007, John Anderson wrote: > I'm currently working with Gtk for the first time and I can't really find > any good tools for documentation. > I want a quick way to check the overloads of a method or view the members of > a class. This is usually > done through the IDE with intellisense but I'd rather work with vim and the > command line if possible. > > I've looked at monodoc but my installation doesn't have any information for > Gtk, but I haven't looked > into to much just yet. > > What do you guys use when you are trying to get familiar with new libraries? If you haven't already, get the "Mono Developer's Notebook" from O'Reilly. It includes tutorials for doing Gtk stuff with vim and command line. -- David Griffith dgriffi at cs.csubak.edu A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From andreas.faerber at web.de Fri Aug 3 04:13:26 2007 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Fri, 3 Aug 2007 10:13:26 +0200 Subject: [Mono-list] Problem with compiling on Ubuntu 6.06 In-Reply-To: References: Message-ID: <84C9393B-ABA5-479B-915B-7F9273FE3CDA@web.de> Am 03.08.2007 um 01:15 schrieb Paul Hoffman: > Greetings. I'm trying to compile 1.2.4 from source on Ubuntu 6.06. I > have added a few of the things needed, but ./configure now stops at: > > ... > checking for -Wdeclaration-after-statement option to gcc... yes > checking for pkg-config... /usr/bin/pkg-config > Package glib-2.0 was not found in the pkg-config search path. > Perhaps you should add the directory containing `glib-2.0.pc' > to the PKG_CONFIG_PATH environment variable > No package 'glib-2.0' found > Package gthread-2.0 was not found in the pkg-config search path. > Perhaps you should add the directory containing `gthread-2.0.pc' > to the PKG_CONFIG_PATH environment variable > No package 'gthread-2.0' found > Package glib-2.0 was not found in the pkg-config search path. > Perhaps you should add the directory containing `glib-2.0.pc' > to the PKG_CONFIG_PATH environment variable > No package 'glib-2.0' found > Package gthread-2.0 was not found in the pkg-config search path. > Perhaps you should add the directory containing `gthread-2.0.pc' > to the PKG_CONFIG_PATH environment variable > No package 'gthread-2.0' found > checking pkg-config is at least version 0.9.0... yes > checking for BASE_DEPENDENCIES... configure: error: Package > requirements (glib-2.0 >= 1.3.11) were not met: > > No package 'glib-2.0' found > > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > > Alternatively, you may set the environment variables > BASE_DEPENDENCIES_CFLAGS > and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details. > > The problem is not that I don't have glib-2.0, it's that it is called > something different on Ubuntu, namely libglib2.0-0. > > How do I tell ./configure to look for libglib2.0-0 instead of > glib-2.0? This is not about the .deb package, it's about the .pc file - you likely don't have the libglib2.0-dev package installed. Andreas From asuomala at hytti.uku.fi Fri Aug 3 04:25:05 2007 From: asuomala at hytti.uku.fi (Aleksi Suomalainen) Date: Fri, 03 Aug 2007 11:25:05 +0300 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: <00ae01c7d4f1$595fb5c0$0302a8c0@alanpc1> References: <46B0B383.9080807@hytti.uku.fi> <00ae01c7d4f1$595fb5c0$0302a8c0@alanpc1> Message-ID: <46B2E661.20902@hytti.uku.fi> Andy Hume wrote: > Aleksi Suomalainen wrote: >> I'm happy to announce the official beta release of Monotooth. >> This release now has a stream, meaning that one can serialize >> an object and send it over bluetooth. This should open >> ventures for example OBEX, since protocols can be emulated >> with the use of serialization (see >> > http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.if > ormatter.aspx). > > Can I then mention my library Brecham.Obex, it can provide the OBEX > support. It provides full OBEX support (PUT, GET, SETPATH, > Folder-Listings, asynchronous-style calling etc), and only needs a > Stream to connect to. It runs well on Mono (there are one or two issues > in the sample applications which I expect to be fixed with Mono 1.2.5). > It is available from http://32feet.net/ It is closed-source currently, > but free for any use. I'd be please to hear if it works with the > Monotooth library. Contact me by email or at the forum at the 32feet > website. Great, I'll test this tonight :). > > > Now, just giving it a short mention, I'll note that 32feet.NET itself is > a library providing support for Bluetooth, IrDA (and simple OBEX) for > .NET. So covering the same area as your library, but supporting > different platforms, as currently it runs on Win32 and WinCE, supporting > the MSFT Bluetooth stack on both. It is open-source via CodePlex. > > I've made a few changes locally to Mono's socket-io.c allow it to work. > But that's for another message. Contact me if anyone's interested. > > Andy -- Aleksi Suomalainen Py?r?katu 9 b 52 70600 Kuopio +358505604876 asuomala at hytti.uku.fi From blondeel at hotmail.com Wed Aug 1 13:23:37 2007 From: blondeel at hotmail.com (Matthias Blondeel) Date: Wed, 1 Aug 2007 10:23:37 -0700 (PDT) Subject: [Mono-list] GetMethodFromHandle and mod mono web service Message-ID: <11950149.post@talk.nabble.com> Hello, I am getting a System.NotImplementedException when trying to invoke GetMethodFromHandle through a Web Service. I know this method has only recently been implemented and I therefore use the latest mono packages from 2007 07 06. The method works fine if I call it directly. I get the exception only when trying to invoke the method through Web Service. Here is the code of the method: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; using System.Collections.Generic; namespace WebService1 { /// /// Description r?sum?e de Service1 /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Service1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } [WebMethod] public string GetMethodFromHandle() { Console.WriteLine("Hello World!"); TestClass test = new TestClass(); RuntimeMethodHandle methodHandle = test.GetType().GetProperty("MyList").GetGetMethod().MethodHandle; System.Reflection.MethodBase methodBase = System.Reflection.MethodInfo.GetMethodFromHandle(methodHandle, typeof(TestClass).TypeHandle); List list = (List)methodBase.Invoke(test, null); return list.Count.ToString() ; } } } using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Collections.Generic; namespace WebService1 { public class TestClass { private List _myList = new List(); public List MyList { get { return _myList; } } } } $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Here is my httpd.conf file from apache: ### Global Environment ###################################################### # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests. # run under this user/group id Include /etc/apache2/uid.conf # - how many server processes to start (server pool regulation) # - usage of KeepAlive Include /etc/apache2/server-tuning.conf # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. ErrorLog /var/log/apache2/error_log # generated from APACHE_MODULES in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/loadmodule.conf # IP addresses / ports to listen on Include /etc/apache2/listen.conf # predefined logging formats Include /etc/apache2/mod_log_config.conf # generated from global settings in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/global.conf # optional mod_status, mod_info Include /etc/apache2/mod_status.conf Include /etc/apache2/mod_info.conf # optional cookie-based user tracking # read the documentation before using it!! Include /etc/apache2/mod_usertrack.conf # configuration of server-generated directory listings Include /etc/apache2/mod_autoindex-defaults.conf # associate MIME types with filename extensions TypesConfig /etc/apache2/mime.types DefaultType text/plain Include /etc/apache2/mod_mime-defaults.conf # set up (customizable) error responses Include /etc/apache2/errors.conf # global (server-wide) SSL configuration, that is not specific to # any virtual host Include /etc/apache2/ssl-global.conf # forbid access to the entire filesystem by default Options None AllowOverride None Order deny,allow Deny from all # use .htaccess files for overriding, AccessFileName .htaccess # and never show them Order allow,deny Deny from all # List of resources to look for when the client requests a directory #DirectoryIndex index.html index.html.var DirectoryIndex Default.aspx index.html index.html.var ### 'Main' server configuration ############################################# # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # definition. These values also provide defaults for # any containers you may define later in the file. # # All of these directives may appear inside containers, # in which case these default settings will be overridden for the # virtual host being defined. # Include /etc/apache2/default-server.conf # Another way to include your own files # # The file below is generated from /etc/sysconfig/apache2, # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and # APACHE_CONF_INCLUDE_DIRS Include /etc/apache2/sysconfig.d/include.conf ### Virtual server configuration ############################################ # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # Include /etc/apache2/vhosts.d/*.conf # Note: instead of adding your own configuration here, consider # adding it in your own file (/etc/apache2/httpd.conf.local) # putting its name into APACHE_CONF_INCLUDE_FILES in # /etc/sysconfig/apache2 -- this will make system updates # easier :) #Note: Config Section for asp.net web applications with mod-mono and apache #*********************************************************** #WebService1 LoadModule mono_module modules/mod_mono.so Alias /webservice1 "/srv/www/htdocs/WebService1/WebService1" AddMonoApplications default "/webservice1:/srv/www/htdocs/WebService1/WebService1" SetHandler mono #************************************************************ SetHandler mono-ctrl Order deny,allow Deny from all Allow from 192.168.1.70 Allow from localhost $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ And finally this is the error message I am receiving: The remote server returned an error: (500) Internal Server Error. System.NotImplementedException: The requested feature is not implemented. at System.Reflection.MethodBase.GetMethodFromHandle (RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) [0x00000] at WebService1.Service1.GetMethodFromHandle () [0x00000] at <0x00000> at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[]) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ My mono compiler version is : Mono JIT compiler version 20070706 (tarball) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: normal Architecture: x86 Disabled: none $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ I don't know how exactly mod mono works, but I'm guessing it's using the compiler installed on my computer no? So I don't understand why I get the exception, although through direct call it works. Thanks for your help, Matthias -- View this message in context: http://www.nabble.com/GetMethodFromHandle-and-mod-mono-web-service-tf4201504.html#a11950149 Sent from the Mono - General mailing list archive at Nabble.com. From blondeel at hotmail.com Wed Aug 1 13:30:10 2007 From: blondeel at hotmail.com (Matthias Blondeel) Date: Wed, 1 Aug 2007 10:30:10 -0700 (PDT) Subject: [Mono-list] GetMethodFromHandle and mod mono web service Message-ID: <11950149.post@talk.nabble.com> Hello, I am getting a System.NotImplementedException when trying to invoke GetMethodFromHandle through a Web Service. I know this method has only recently been implemented and I therefore use the latest mono packages from 2007 07 06. The method works fine if I call it directly. I get the exception only when trying to invoke the method through Web Service. Here is the code of the method: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; using System.Collections.Generic; namespace WebService1 { /// /// Description r?sum?e de Service1 /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Service1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } [WebMethod] public string GetMethodFromHandle() { Console.WriteLine("Hello World!"); TestClass test = new TestClass(); RuntimeMethodHandle methodHandle = test.GetType().GetProperty("MyList").GetGetMethod().MethodHandle; System.Reflection.MethodBase methodBase = System.Reflection.MethodInfo.GetMethodFromHandle(methodHandle, typeof(TestClass).TypeHandle); List list = (List)methodBase.Invoke(test, null); return list.Count.ToString() ; } } } using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Collections.Generic; namespace WebService1 { public class TestClass { private List _myList = new List(); public List MyList { get { return _myList; } } } } $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Here is my httpd.conf file from apache: ### Global Environment ###################################################### # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests. # run under this user/group id Include /etc/apache2/uid.conf # - how many server processes to start (server pool regulation) # - usage of KeepAlive Include /etc/apache2/server-tuning.conf # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. ErrorLog /var/log/apache2/error_log # generated from APACHE_MODULES in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/loadmodule.conf # IP addresses / ports to listen on Include /etc/apache2/listen.conf # predefined logging formats Include /etc/apache2/mod_log_config.conf # generated from global settings in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/global.conf # optional mod_status, mod_info Include /etc/apache2/mod_status.conf Include /etc/apache2/mod_info.conf # optional cookie-based user tracking # read the documentation before using it!! Include /etc/apache2/mod_usertrack.conf # configuration of server-generated directory listings Include /etc/apache2/mod_autoindex-defaults.conf # associate MIME types with filename extensions TypesConfig /etc/apache2/mime.types DefaultType text/plain Include /etc/apache2/mod_mime-defaults.conf # set up (customizable) error responses Include /etc/apache2/errors.conf # global (server-wide) SSL configuration, that is not specific to # any virtual host Include /etc/apache2/ssl-global.conf # forbid access to the entire filesystem by default Options None AllowOverride None Order deny,allow Deny from all # use .htaccess files for overriding, AccessFileName .htaccess # and never show them Order allow,deny Deny from all # List of resources to look for when the client requests a directory #DirectoryIndex index.html index.html.var DirectoryIndex Default.aspx index.html index.html.var ### 'Main' server configuration ############################################# # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # definition. These values also provide defaults for # any containers you may define later in the file. # # All of these directives may appear inside containers, # in which case these default settings will be overridden for the # virtual host being defined. # Include /etc/apache2/default-server.conf # Another way to include your own files # # The file below is generated from /etc/sysconfig/apache2, # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and # APACHE_CONF_INCLUDE_DIRS Include /etc/apache2/sysconfig.d/include.conf ### Virtual server configuration ############################################ # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # Include /etc/apache2/vhosts.d/*.conf # Note: instead of adding your own configuration here, consider # adding it in your own file (/etc/apache2/httpd.conf.local) # putting its name into APACHE_CONF_INCLUDE_FILES in # /etc/sysconfig/apache2 -- this will make system updates # easier :) #Note: Config Section for asp.net web applications with mod-mono and apache #*********************************************************** #WebService1 MonoServerPath default /usr/bin/mod-mono-server2 LoadModule mono_module modules/mod_mono.so Alias /webservice1 "/srv/www/htdocs/WebService1/WebService1" AddMonoApplications default "/webservice1:/srv/www/htdocs/WebService1/WebService1" SetHandler mono #************************************************************ SetHandler mono-ctrl Order deny,allow Deny from all Allow from 192.168.1.70 Allow from localhost $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ And finally this is the error message I am receiving: The remote server returned an error: (500) Internal Server Error. System.NotImplementedException: The requested feature is not implemented. at System.Reflection.MethodBase.GetMethodFromHandle (RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) [0x00000] at WebService1.Service1.GetMethodFromHandle () [0x00000] at <0x00000> at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[]) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ My mono compiler version is : Mono JIT compiler version 20070706 (tarball) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: normal Architecture: x86 Disabled: none $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ I don't know how exactly mod mono works, but I'm guessing it's using the compiler installed on my computer no? So I don't understand why I get the exception, although through direct call it works. Thanks for your help, Matthias -- View this message in context: http://www.nabble.com/GetMethodFromHandle-and-mod-mono-web-service-tf4201504.html#a11950149 Sent from the Mono - General mailing list archive at Nabble.com. From charlie at pooleconsulting.com Thu Aug 2 08:59:40 2007 From: charlie at pooleconsulting.com (Charlie Poole) Date: Thu, 2 Aug 2007 08:59:40 -0400 Subject: [Mono-list] ANN: NUnit 2.4.2 Released Message-ID: <000201c7d505$00e3f280$091f10ac@FERRARI> Hi All, NUnit 2.4.2 is available at http://nunit.com/?p=download I've had some trouble with running it on 1.2.4 so I've been sticking with 1.2.2 as my base for the 2.4 series of releases. I'd like to put some effort into reducing/eliminating the tests we skip on Mono and making it run better - suggestions from folks using it under mono would help a lot. >From the Announcement: NUnit 2.4.2 fixes a number of outstanding bugs and adds a number of new features. Culture and SetCulture attributes are available for use in testing under multiple cultures. A number of enhancements have been made to the new constraint-based Assert syntax. The NUnit Gui has several significant improvements, including the saving the visual state of the tree for each project and restoring it when it has been reopened. See the release notes at http://nunit.com/?p=releaseNotes&r=2.4.2 for more info. Charlie From robertj at gmx.net Fri Aug 3 05:39:14 2007 From: robertj at gmx.net (Robert Jordan) Date: Fri, 03 Aug 2007 11:39:14 +0200 Subject: [Mono-list] GetMethodFromHandle and mod mono web service In-Reply-To: <11950149.post@talk.nabble.com> References: <11950149.post@talk.nabble.com> Message-ID: Matthias Blondeel wrote: > I don't know how exactly mod mono works, but I'm guessing it's using the > compiler installed on my computer no? So I don't understand why I get the > exception, although through direct call it works. Mod_mono is using the runtime it was compiled for, usually /usr/bin/mono, /usr/bin/mcs, etc. I guess you have 2 mono versions installed, one of them no being up-to-date. Insert this into your apache config right after LoadModule mono_module modules/mod_mono.so: MonoServerPath /path/to/mod-mono-server or MonoServerPath /path/to/mod-mono-server2 for .NET 2.0 Robert From asuomala at hytti.uku.fi Fri Aug 3 06:37:51 2007 From: asuomala at hytti.uku.fi (Aleksi Suomalainen) Date: Fri, 03 Aug 2007 13:37:51 +0300 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: References: <46B0B383.9080807@hytti.uku.fi> <045C63F1-D6C9-4063-954E-490BDA24B6CB@web.de> <46B2E5B9.9070902@hytti.uku.fi> Message-ID: <46B3057F.7080509@hytti.uku.fi> Andreas F?rber wrote: > Hi, > >>> Independent of the underlying implementation it would be more handy >>> if you could provide front-end classes like LocalDevice that wrap any >>> internal platform decisions, so that e.g. the local device's >>> (default) BDADDR can be accessed via LocalDevice.Address (JSR-82 >>> style) instead of having to go through the full-blown factory pattern >>> first - the developer cannot really chose an implementation to use on >>> a given platform as in the classic widget factory example. >> This could be done at some point but by now I'll stick to this way :). >> One may use a little longer method chain to achieve this. > > That's what I'm trying to avoid. So you would be opposed to such a > contribution? I'm basically not against it, but this way of getting the local device address would break the design a little. I'll see what can be done :). >>> Also, I see on Linux you are handling the inquiry via a native >>> library and BlueZ's hci_inquiry function - I have recently found >>> their D-Bus interface to be much more powerful (inquiry provides >>> up-to-date RSSI), and using dbus-sharp would reduce the need for >>> native code in that area. I have some example code I could share. >> Good idea, I would love to see this approach. The reason I'm using the >> native library->bluez way is the marshaling problem, since >> hci_inquiry() takes a double struct pointer. > > You are aware of the ref keyword, MarshalAs attribute and the > marshalling functions? It should be possible to replace virtually all > native code at the cost of typing in all relevant constants and possibly > using overloads. And for the socket stuff System.Net.Sockets.Socket > might be used, feeding it the constants as integers. > Yes, I'm very aware of the ref keyword and all the others. The problem with ref keyword is correctly implementing pointer arithmetics, see http://people.csail.mit.edu/albert/bluez-intro/c401.html#bzi-choosing. The main point of my current work is to try to avoid the use of my custom library. If I get the hci_inquiry function to work via Marshaling , then I will definitely add it to code, but now it is very difficult. The problem with System.Net.Sockets.Socket (and calling the socket()/bind()/connect() from BSD socket interface) is that they use special casts to create the connection. The socket() part is not a problem, I can use constants as you said. The problem is bind()/connect() part of the connections: for example, connect(socket, (struct sockaddr*)address, length). The cast is the problem, since I have tried it already via creating my own structure in Mono and passing it as a parameter to bind(). It failed miserably, since the Marshaling failed to cast it to a form that bind() could understand. >>> Finally, would you be interested in extending platform support to Mac >>> OS X in future versions? >> Well I don't have a Mac OS X machine yet but this could be done with >> volunteer workforce if Mac OS X has a good bluetooth interface. > > I wouldn't call it good compared to BlueZ but I am running OS X so don't > have a choice and would look into it either way some time in the future. > For me the point is, I'd need Bluetooth functionality across .NET CF > 1.0, .NET 3.0 and Mono/OSX - none of these are currently supported in > Monotooth, so my options are add support for them in Monotooth in an > easy-to-use and 1.1-profile managed-only way I can directly use them or > create a wrapper around SDF/Monotooth/mine that I could use from my code > or create my own specialised library for what I need only. I'd prefer > sharing such code with a community but would be okay with creating my > own subset if for example you've already chosen to use generics or don't > want to extend your library in such ways. The extensions will not be a problem, so feel free to create your code and publish it. I will integrate it to Monotooth quite surely, since the aim of my library is to be as cross-platform as possible. In case someone else is interested too, just try stick to the abstract factory pattern, implement it the OS X way and submit a patch to me. > Regards, > > Andreas Regards, -- Aleksi Suomalainen Py?r?katu 9 b 52 70600 Kuopio +358505604876 asuomala at hytti.uku.fi From andreas.faerber at web.de Fri Aug 3 07:25:30 2007 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Fri, 3 Aug 2007 13:25:30 +0200 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: <46B3057F.7080509@hytti.uku.fi> References: <46B0B383.9080807@hytti.uku.fi> <045C63F1-D6C9-4063-954E-490BDA24B6CB@web.de> <46B2E5B9.9070902@hytti.uku.fi> <46B3057F.7080509@hytti.uku.fi> Message-ID: <93AA8290-4CCE-4314-A289-B2B7204A819B@web.de> Hi, >>>> Independent of the underlying implementation it would be more >>>> handy if you could provide front-end classes like LocalDevice >>>> that wrap any internal platform decisions, so that e.g. the >>>> local device's (default) BDADDR can be accessed via >>>> LocalDevice.Address (JSR-82 style) instead of having to go >>>> through the full-blown factory pattern first - the developer >>>> cannot really chose an implementation to use on a given platform >>>> as in the classic widget factory example. >>> This could be done at some point but by now I'll stick to this >>> way :). One may use a little longer method chain to achieve this. >> That's what I'm trying to avoid. So you would be opposed to such a >> contribution? > > I'm basically not against it, but this way of getting the local > device address would break the design a little. I'll see what can > be done :). I was thinking of a wrapper along these lines: public class LocalDevice { public static ILocalDevice Default { return Factory.Create().GetDevice(); // you'll know better } } leading to an invocating like LocalDevice.Default.Address, hiding the underlying complexity. This way it allows the use of multiple devices and leaves the factory pattern untouched; an alternative or addition would be the adapter pattern but that'll be much more complicated. >>>> Also, I see on Linux you are handling the inquiry via a native >>>> library and BlueZ's hci_inquiry function - I have recently found >>>> their D-Bus interface to be much more powerful (inquiry provides >>>> up-to-date RSSI), and using dbus-sharp would reduce the need for >>>> native code in that area. I have some example code I could share. >>> Good idea, I would love to see this approach. The reason I'm >>> using the native library->bluez way is the marshaling problem, >>> since hci_inquiry() takes a double struct pointer. >> You are aware of the ref keyword, MarshalAs attribute and the >> marshalling functions? It should be possible to replace virtually >> all native code at the cost of typing in all relevant constants >> and possibly using overloads. And for the socket stuff >> System.Net.Sockets.Socket might be used, feeding it the constants >> as integers. > Yes, I'm very aware of the ref keyword and all the others. The > problem with ref keyword is correctly implementing pointer > arithmetics, see http://people.csail.mit.edu/albert/bluez-intro/ > c401.html#bzi-choosing. The main point of my current work is to try > to avoid the use of my custom library. If I get the hci_inquiry > function to work via Marshaling , then I will definitely add it to > code, but now it is very difficult. I know how to inquire with BlueZ. ;-) Yet I don't see where the pointer arithmetic problem is in that piece of example code. If you want to use HCI you can use Marshal.AllocHGlobal with Marshal.SizeOf to calculate the size and offsets? See attached for an alternative way to inquire, which can avoid waiting 10 seconds for the first results using events and can supply the RSSI. -------------- next part -------------- A non-text attachment was scrubbed... Name: DBusInquiry.cs Type: application/octet-stream Size: 1627 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070803/0c601fea/attachment.obj -------------- next part -------------- > The problem with System.Net.Sockets.Socket (and calling the socket > ()/bind()/connect() from BSD socket interface) is that they use > special casts to create the connection. The socket() part is not a > problem, I can use constants as you said. The problem is bind()/ > connect() part of the connections: for example, connect(socket, > (struct sockaddr*)address, length). The cast is the problem, since > I have tried it already via creating my own structure in Mono and > passing it as a parameter to bind(). It failed miserably, since the > Marshaling failed to cast it to a form that bind() could understand. Sockets are a C API so casts are unlikely to be the problem (it's a pointer to a struct either way and is used because C does not have the concept of inheritance). More likely is that the managed structure used for marshalling was incorrect. I'll look into it. Having it managed would be beneficial for using the code in a daemon. > The extensions will not be a problem, so feel free to create your > code and publish it. I will integrate it to Monotooth quite surely, > since the aim of my library is to be as cross-platform as possible. That would be really great! Andreas From newptcai at gmail.com Fri Aug 3 08:05:41 2007 From: newptcai at gmail.com (Peter Cai) Date: Fri, 3 Aug 2007 20:05:41 +0800 Subject: [Mono-list] How do you develop software base on MONO? Message-ID: For me, as I am used to MS Visual Studio 2005, I always write, compile and test my code on Windows and then copy the assemblies to Linux and run it with MONO ****.exe. And that enables me to write code in language other than C#. For example I use C++/CLI to write assembly that contains data structures shared by .NET program and C program. What's your opinion? -- Tonight I can write the saddest lines. To think that I do not have her. To feel that I have lost her. ---- Pablo Neruda From asuomala at hytti.uku.fi Fri Aug 3 08:21:07 2007 From: asuomala at hytti.uku.fi (Aleksi Suomalainen) Date: Fri, 03 Aug 2007 15:21:07 +0300 Subject: [Mono-list] [ANNOUNCE] Monotooth 0.1.0 Beta released In-Reply-To: <93AA8290-4CCE-4314-A289-B2B7204A819B@web.de> References: <46B0B383.9080807@hytti.uku.fi> <045C63F1-D6C9-4063-954E-490BDA24B6CB@web.de> <46B2E5B9.9070902@hytti.uku.fi> <46B3057F.7080509@hytti.uku.fi> <93AA8290-4CCE-4314-A289-B2B7204A819B@web.de> Message-ID: <46B31DB3.3080203@hytti.uku.fi> Andreas F?rber wrote: > Hi, > >>>>> Independent of the underlying implementation it would be more handy >>>>> if you could provide front-end classes like LocalDevice that wrap >>>>> any internal platform decisions, so that e.g. the local device's >>>>> (default) BDADDR can be accessed via LocalDevice.Address (JSR-82 >>>>> style) instead of having to go through the full-blown factory >>>>> pattern first - the developer cannot really chose an implementation >>>>> to use on a given platform as in the classic widget factory example. >>>> This could be done at some point but by now I'll stick to this way >>>> :). One may use a little longer method chain to achieve this. >>> That's what I'm trying to avoid. So you would be opposed to such a >>> contribution? >> >> I'm basically not against it, but this way of getting the local device >> address would break the design a little. I'll see what can be done :). > > I was thinking of a wrapper along these lines: > > public class LocalDevice { > public static ILocalDevice Default { > return Factory.Create().GetDevice(); // you'll know better > } > } > > leading to an invocating like LocalDevice.Default.Address, hiding the > underlying complexity. > This way it allows the use of multiple devices and leaves the factory > pattern untouched; an alternative or addition would be the adapter > pattern but that'll be much more complicated. You are correct on this, the latest svn now has that piece of code and the next release will include documentation on this class. >>>>> Also, I see on Linux you are handling the inquiry via a native >>>>> library and BlueZ's hci_inquiry function - I have recently found >>>>> their D-Bus interface to be much more powerful (inquiry provides >>>>> up-to-date RSSI), and using dbus-sharp would reduce the need for >>>>> native code in that area. I have some example code I could share. >>>> Good idea, I would love to see this approach. The reason I'm using >>>> the native library->bluez way is the marshaling problem, since >>>> hci_inquiry() takes a double struct pointer. >>> You are aware of the ref keyword, MarshalAs attribute and the >>> marshalling functions? It should be possible to replace virtually all >>> native code at the cost of typing in all relevant constants and >>> possibly using overloads. And for the socket stuff >>> System.Net.Sockets.Socket might be used, feeding it the constants as >>> integers. >> Yes, I'm very aware of the ref keyword and all the others. The problem >> with ref keyword is correctly implementing pointer arithmetics, see >> http://people.csail.mit.edu/albert/bluez-intro/c401.html#bzi-choosing. >> The main point of my current work is to try to avoid the use of my >> custom library. If I get the hci_inquiry function to work via >> Marshaling , then I will definitely add it to code, but now it is very >> difficult. > > I know how to inquire with BlueZ. ;-) Yet I don't see where the pointer > arithmetic problem is in that piece of example code. If you want to use > HCI you can use Marshal.AllocHGlobal with Marshal.SizeOf to calculate > the size and offsets? > > See attached for an alternative way to inquire, which can avoid waiting > 10 seconds for the first results using events and can supply the RSSI. Thanks for this alternative way, I'll take a look on how to integrate this to my code as soon as possible. Although this would create dependencies to another library, this approach is by far much more handier :), thanks for sharing this. >> The problem with System.Net.Sockets.Socket (and calling the >> socket()/bind()/connect() from BSD socket interface) is that they use >> special casts to create the connection. The socket() part is not a >> problem, I can use constants as you said. The problem is >> bind()/connect() part of the connections: for example, connect(socket, >> (struct sockaddr*)address, length). The cast is the problem, since I >> have tried it already via creating my own structure in Mono and >> passing it as a parameter to bind(). It failed miserably, since the >> Marshaling failed to cast it to a form that bind() could understand. > > Sockets are a C API so casts are unlikely to be the problem (it's a > pointer to a struct either way and is used because C does not have the > concept of inheritance). More likely is that the managed structure used > for marshalling was incorrect. I'll look into it. Having it managed > would be beneficial for using the code in a daemon. Good, thanks. PS. I have created a mailing list in sourceforge for monotooth, the mailing list will open in 6-24 hours and its address is: monotooth-devel at lists.sourceforge.net So this mailing list should be the primary list so that we won't mess up the mono-list :). -- Aleksi Suomalainen Py?r?katu 9 b 52 70600 Kuopio +358505604876 asuomala at hytti.uku.fi From sontek at gmail.com Fri Aug 3 10:52:56 2007 From: sontek at gmail.com (John Anderson) Date: Fri, 3 Aug 2007 08:52:56 -0600 Subject: [Mono-list] What tools help you develop under Linux? In-Reply-To: References: <6938f5390708022227x3d4307d9x51fcf88c490519dc@mail.gmail.com> Message-ID: <6938f5390708030752q2ef3d654t2de64eacfcc0dbb0@mail.gmail.com> On 8/2/07, David Griffith wrote: > > On Thu, 2 Aug 2007, John Anderson wrote: > If you haven't already, get the "Mono Developer's Notebook" from O'Reilly. > It includes tutorials for doing Gtk stuff with vim and command line. I have the book and it does show how to do things, but I'd like to be able to do things outside of what the book discusses and to do that I need documentation on the libraries I'm using. mod (console version of monodoc) looks like what I need but it doesn't have any information on Gtk in it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070803/4a144964/attachment.html From phoffman at proper.com Fri Aug 3 10:55:17 2007 From: phoffman at proper.com (Paul Hoffman) Date: Fri, 3 Aug 2007 07:55:17 -0700 Subject: [Mono-list] Problem with compiling on Ubuntu 6.06 In-Reply-To: <84C9393B-ABA5-479B-915B-7F9273FE3CDA@web.de> References: <84C9393B-ABA5-479B-915B-7F9273FE3CDA@web.de> Message-ID: At 10:13 AM +0200 8/3/07, Andreas F?rber wrote: >>How do I tell ./configure to look for libglib2.0-0 instead of glib-2.0? > >This is not about the .deb package, it's about the .pc file - you >likely don't have the libglib2.0-dev package installed. Bingo, that was it. Thanks! From joshcoffman at gmail.com Fri Aug 3 12:25:41 2007 From: joshcoffman at gmail.com ('josh coffman') Date: Fri, 03 Aug 2007 11:25:41 CDT Subject: [Mono-list] =?iso-8859-1?q?mono=2C_MS=2C_and_legalities?= Message-ID: <20070803162541.AE3F016CC21@neptunus.sapotek.com> Anyone know a good resource or contact for answering someone who is concerned about legalities on mono? Someone asked me (like I know) about any patent issues, especially regarding the MS-Novell deal. Thanks, -j From rubenvive at gmail.com Fri Aug 3 13:09:10 2007 From: rubenvive at gmail.com (Ruben Guinez) Date: Fri, 3 Aug 2007 13:09:10 -0400 Subject: [Mono-list] MonoDevelop and use of the users.prefs file Message-ID: Hi All. I want to know: What I have to do to use users.prefs file into monodevelop to write and read custom data on it?. Somebody have any snippet code to show that? thanks in advance. -- Rub?n Gu?nez From mdpoole at troilus.org Fri Aug 3 12:56:02 2007 From: mdpoole at troilus.org (Michael Poole) Date: Fri, 03 Aug 2007 12:56:02 -0400 Subject: [Mono-list] mono, MS, and legalities In-Reply-To: <20070803162541.AE3F016CC21@neptunus.sapotek.com> (josh coffman's message of "Fri\, 03 Aug 2007 11\:25\:41 CDT") References: <20070803162541.AE3F016CC21@neptunus.sapotek.com> Message-ID: <87643wh80t.fsf@graviton.dyn.troilus.org> josh coffman writes: > Anyone know a good resource or contact for answering someone who is concerned about legalities on mono? Someone asked me (like I know) about any patent issues, especially regarding the MS-Novell deal. Find a local, well-reputed lawyer specializing in intellectual property. The person who asked you cannot get what is called "legal advice" from a canned response -- or a non-lawyer -- and very few lawyers will give legal advice for free or over email. It has to be given to address the particular question or situation. In practice, the ultimate authority is the court hearing a lawsuit, and I don't think there have been any lawsuits *or* rulings on Mono and patents, on the Microsoft-Novell agreement, or on closely related topics. Michael "not a lawyer" Poole From joshcoffman at gmail.com Fri Aug 3 13:20:39 2007 From: joshcoffman at gmail.com ('josh coffman') Date: Fri, 03 Aug 2007 12:20:39 CDT Subject: [Mono-list] =?iso-8859-1?q?mono=2C_MS=2C_and_legalities?= Message-ID: <20070803172039.EADB9A4A16@neptunus.sapotek.com> Ok, short of a lawyer or anyone pretending to be online, is there information about MS's position on mono? I think what is really needed, is just some information indicating any company developing using mono won't be sued by MS. Personally, not being a lawyer either, I don't think that is likely because of the apparent efforts of the mono developers to avoid MS code or influences. It appears, mono is just an implementation of a public spec(s). -j >---- Original Message ---- >From:Michael Poole >To:'josh coffman' >Subject:Re: [Mono-list] mono, MS, and legalities >Date:Fri, 03 Aug 2007 12:56:02 -0400 >-------------------- >josh coffman writes: > >> Anyone know a good resource or contact for answering someone who is concerned >about legalities on mono? Someone asked me (like I know) about any patent >issues, especially regarding the MS-Novell deal. > >Find a local, well-reputed lawyer specializing in intellectual property. > >The person who asked you cannot get what is called "legal advice" from >a canned response -- or a non-lawyer -- and very few lawyers will give >legal advice for free or over email. It has to be given to address >the particular question or situation. > >In practice, the ultimate authority is the court hearing a lawsuit, >and I don't think there have been any lawsuits *or* rulings on Mono >and patents, on the Microsoft-Novell agreement, or on closely related >topics. > >Michael "not a lawyer" Poole > From jw at zaubercenter.de Fri Aug 3 19:29:23 2007 From: jw at zaubercenter.de (Jens Wurster) Date: Sat, 4 Aug 2007 01:29:23 +0200 Subject: [Mono-list] Order of control tag attributes Message-ID: <000901c7d626$2138f270$63aad750$@de> Hello, For example, I have the following tag: In which order the attributes will be processed? Alphabetically . BorderColor, CssClass, ID and Visible . or in the same way as specified in the tag? ID, BorderColor, Visible and CssClass Regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070804/1e783a34/attachment.html From joshcoffman at gmail.com Sat Aug 4 01:32:15 2007 From: joshcoffman at gmail.com (Josh Coffman) Date: Fri, 3 Aug 2007 22:32:15 -0700 Subject: [Mono-list] upgrading mono Message-ID: Hi, I just realized (yes, I'm slow) that I'm only on mono 1.2.3 and the Fedora repos don't have 1.2.4. (which is disappointing because having updated packages is why I run Fedora.) Anyway, can anyone recommend a good, easy way to update to 1.2.4? Or better yet, and upgrade path to 1.2.5? Many thanks, -j -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070803/cf586c23/attachment.html From anagappan at novell.com Sat Aug 4 07:01:23 2007 From: anagappan at novell.com (A Nagappan) Date: Sat, 04 Aug 2007 05:01:23 -0600 Subject: [Mono-list] upgrading mono Message-ID: <46B4A9DB020000440000C178@lucius.provo.novell.com> Hi, Wade also updates Mono here for many diff distributions http://download.opensuse.org/repositories/Mono/ Check the list of distributions supported through OpenSuSE build service !!! Thanks Nagappan -- Nagappan A Linux Desktop Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com Novell, Inc. SUSE? Linux Enterprise 10 Your Linux is ready? http://www.novell.com/linux >>> "Josh Coffman" 08/04/07 11:02 AM >>> Hi, I just realized (yes, I'm slow) that I'm only on mono 1.2.3 and the Fedora repos don't have 1.2.4. (which is disappointing because having updated packages is why I run Fedora.) Anyway, can anyone recommend a good, easy way to update to 1.2.4? Or better yet, and upgrade path to 1.2.5? Many thanks, -j From afishionado at gmail.com Sun Aug 5 16:34:33 2007 From: afishionado at gmail.com (William Tracy) Date: Sun, 5 Aug 2007 13:34:33 -0700 Subject: [Mono-list] ILAsm output from mcs Message-ID: Hello, Is it possible for mcs to compile C# code to ILAsm code? I've been hunting all over for a command line switch to do this. :-) I was under the impression that all the compilers for the common language runtime used ILAsm as a back-end; does Mono's compiler do this differently (and therefore have no way of producing ILAsm code)? -- William Tracy afishionado at gmail.com -- wtracy at calpoly.edu I'm right now looking for a summer software engineering internship in northern California! My resume is online here: http://wiki.java.net/bin/view/People/WilliamTracy From robertj at gmx.net Sun Aug 5 16:58:36 2007 From: robertj at gmx.net (Robert Jordan) Date: Sun, 05 Aug 2007 22:58:36 +0200 Subject: [Mono-list] ILAsm output from mcs In-Reply-To: References: Message-ID: William Tracy wrote: > Hello, > > Is it possible for mcs to compile C# code to ILAsm code? I've been > hunting all over for a command line switch to do this. :-) Run monodis or another .NET disassembler on the generated assembly. > I was under the impression that all the compilers for the common > language runtime used ILAsm as a back-end; does Mono's compiler do > this differently (and therefore have no way of producing ILAsm code)? Mainstream compilers targeting the CLR never used ilasm as their last step. They are either using System.Reflection.Emit (mcs, every other managed compiler) or an equivalent unmanaged API (csc). Robert From lluis at ximian.com Mon Aug 6 16:08:18 2007 From: lluis at ximian.com (Lluis Sanchez) Date: Mon, 06 Aug 2007 22:08:18 +0200 Subject: [Mono-list] MonoDevelop 0.15 released Message-ID: <1186430898.4781.34.camel@portador.site> The MonoDevelop team is proud to announce the release of MonoDevelop 0.15. MonoDevelop is a GNOME IDE primarily designed for C# and other .NET languages. This release contains lots of improvements, new features and bug fixes. The release highlights include: * Configurable key bindings, with GNU/Emacs and VisualStudio.NET key binding schemes. * Improved Makefile generation, now supporting generating makefiles which don't require Autotools. * A preview of the Localization add-in. * Text editor improvements (documents can be maximized, more editing commands available). * The designer now supports gtk# 2.8 widgets. * Improved widget toolbox. * Many bug fixes! Complete release notes are available here: http://www.monodevelop.com/Release_notes_for_MonoDevelop_0.15 Packages are available here: http://www.monodevelop.com/Download Enjoy! From srijith.unni at gmail.com Tue Aug 7 01:20:37 2007 From: srijith.unni at gmail.com (~ * ~ Srijith Unni ~ * ~) Date: Tue, 7 Aug 2007 10:50:37 +0530 Subject: [Mono-list] MonoDevelop 0.15 released In-Reply-To: <1186430898.4781.34.camel@portador.site> References: <1186430898.4781.34.camel@portador.site> Message-ID: Hi, I tried to install the new version. However looks like it requires boo 0.7.8. Tried building from the source tarball. But gives the following error. BUILD FAILED /home/ksrijith/Desktop/boo/default.build(255,4): Failure scanning "/home/ksrijith/Desktop/boo/build/Boo.NAnt.Tasks.dll" for extensions. Could not load type 'Boo.Lang.GenericGenerator`1' from assembly ' Boo.Lang, Version=1.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67'. Any suggestions..? On 8/7/07, Lluis Sanchez wrote: > > The MonoDevelop team is proud to announce the release of MonoDevelop > 0.15. > > MonoDevelop is a GNOME IDE primarily designed for C# and other .NET > languages. This release contains lots of improvements, new features and > bug fixes. > > The release highlights include: > * Configurable key bindings, with GNU/Emacs and VisualStudio.NET > key binding schemes. > * Improved Makefile generation, now supporting generating > makefiles which don't require Autotools. > * A preview of the Localization add-in. > * Text editor improvements (documents can be maximized, more > editing commands available). > * The designer now supports gtk# 2.8 widgets. > * Improved widget toolbox. > * Many bug fixes! > > Complete release notes are available here: > http://www.monodevelop.com/Release_notes_for_MonoDevelop_0.15 > > Packages are available here: > http://www.monodevelop.com/Download > > Enjoy! > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Thanks & Regards, -- A.Srijith.K.Unni Senior Software Engineer Novell Software Development Pvt. Ltd. 49/1 & 49/3 Garvebhavipalya, 7th Mile, Hosur Road, Bangalore - 560068, Karnataka INDIA Phone : 080-41869000 Extn: 2242 Mobile : 0 99022 44688 Mail ID : srijith.unni at gmail.com Home Page : http://srijith.unni.googlepages.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070807/feead9ff/attachment.html From srijith.unni at gmail.com Tue Aug 7 04:15:13 2007 From: srijith.unni at gmail.com (~ * ~ Srijith Unni ~ * ~) Date: Tue, 7 Aug 2007 13:45:13 +0530 Subject: [Mono-list] Creating Makefile. Message-ID: Hi, Perhaps this is an already discussed question. If so, kindly forgive me. I would like to know whether there is any tool which can read a MonoDevelop project file(.mdp) and generate a Makefile. I know this is implemented in MonoDevelop version 0.15, but since there are some issues with installing it, I thought it would be helpful to know if there is any other alternative method. -- Thanks & Regards, -- A.Srijith.K.Unni Mail ID : srijith.unni at gmail.com Home Page : http://srijith.unni.googlepages.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070807/2e372d50/attachment.html From anagappan at novell.com Tue Aug 7 04:48:59 2007 From: anagappan at novell.com (A Nagappan) Date: Tue, 07 Aug 2007 02:48:59 -0600 Subject: [Mono-list] MonoDevelop 0.15 released Message-ID: <46B87F54020000440000C229@lucius.provo.novell.com> Hi, You can install latest Monodevelop / Boo / Mono packages from http://download.opensuse.org/repositories/Mono/ for your operating system. Thanks Nagappan -- Nagappan A Linux Desktop Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com Novell, Inc. SUSE? Linux Enterprise 10 Your Linux is ready? http://www.novell.com/linux >>> "~ * ~ Srijith Unni ~ * ~" 08/07/07 10:50 AM >>> Hi, I tried to install the new version. However looks like it requires boo 0.7.8. Tried building from the source tarball. But gives the following error. BUILD FAILED /home/ksrijith/Desktop/boo/default.build(255,4): Failure scanning "/home/ksrijith/Desktop/boo/build/Boo.NAnt.Tasks.dll" for extensions. Could not load type 'Boo.Lang.GenericGenerator`1' from assembly ' Boo.Lang, Version=1.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67'. Any suggestions..? On 8/7/07, Lluis Sanchez wrote: > > The MonoDevelop team is proud to announce the release of MonoDevelop > 0.15. > > MonoDevelop is a GNOME IDE primarily designed for C# and other .NET > languages. This release contains lots of improvements, new features and > bug fixes. > > The release highlights include: > * Configurable key bindings, with GNU/Emacs and VisualStudio.NET > key binding schemes. > * Improved Makefile generation, now supporting generating > makefiles which don't require Autotools. > * A preview of the Localization add-in. > * Text editor improvements (documents can be maximized, more > editing commands available). > * The designer now supports gtk# 2.8 widgets. > * Improved widget toolbox. > * Many bug fixes! > > Complete release notes are available here: > http://www.monodevelop.com/Release_notes_for_MonoDevelop_0.15 > > Packages are available here: > http://www.monodevelop.com/Download > > Enjoy! > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Thanks & Regards, -- A.Srijith.K.Unni Senior Software Engineer Novell Software Development Pvt. Ltd. 49/1 & 49/3 Garvebhavipalya, 7th Mile, Hosur Road, Bangalore - 560068, Karnataka INDIA Phone : 080-41869000 Extn: 2242 Mobile : 0 99022 44688 Mail ID : srijith.unni at gmail.com Home Page : http://srijith.unni.googlepages.com/ From sean at dague.net Tue Aug 7 13:41:48 2007 From: sean at dague.net (Sean Dague) Date: Tue, 7 Aug 2007 13:41:48 -0400 Subject: [Mono-list] SqliteCommandBuilder questions Message-ID: <20070807174147.GX29833@dague.net> (Using mono 1.2.4 in Ubuntu Gutsy) I've got the following code: SqliteCommand primSelectCmd = new SqliteCommand(primSelect, conn); SqliteDataAdapter primDa = new SqliteDataAdapter(primSelectCmd); SqliteCommandBuilder primCb = new SqliteCommandBuilder(primDa); Which produces the following error on compile: [csc] /home/sdague/code/opensim-svn/OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs(37,43): error CS1501: No overload for method `Mono.Data.SqliteClient.SqliteCommandBuilder' takes `1' arguments Is it just that SqliteCommandBuilder isn't implemented in mono 1.2.4? or is there something else going on here? Any help would be appreciated, -Sean -- __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070807/63a5ab25/attachment.bin From jaimeventura at ipp.pt Tue Aug 7 13:38:18 2007 From: jaimeventura at ipp.pt (Jaime Ventura) Date: Tue, 07 Aug 2007 18:38:18 +0100 Subject: [Mono-list] vb webservices on mono Message-ID: <46B8AE0A.1000509@ipp.pt> Hello, Im trying to configure my centos machine to run webservices. Im using the mono repo from www.*mono*-project.com, for rhel-4. My operating system is CENTOS 4. After configuring every thing, it all seemed to work fine with a simple webservice for testing purposes. For that, a friend of mine created a vb webservice on a windows machine and I copied the all resulting files(asmx, dll, etc). When I access the webservice via GET, every thing works just fine (including when doing http://1.1.1.1/web.asmx). But when I do a POST, the mod-mono-server2.exe goes away :( Does anyone can help me to debug the problem? The apache logs doesnt help much. Thanks From joshcoffman at gmail.com Tue Aug 7 21:57:24 2007 From: joshcoffman at gmail.com (Josh Coffman) Date: Tue, 7 Aug 2007 18:57:24 -0700 Subject: [Mono-list] upgrading mono In-Reply-To: References: Message-ID: One problem I'm having with updating to mono 1.2.4 using Wade's packages is a version conflict with gnome-vfs.. I thought I could remove it and install from that repo, but apparently that is a core package and remove my gnome desktop. Any suggestions? Should I just force the upgrade to 1.2.4? -j On 8/6/07, Gerald Henriksen wrote: > > On Fri, 3 Aug 2007 22:32:15 -0700, you wrote: > > >Hi, > > > > I just realized (yes, I'm slow) that I'm only on mono 1.2.3 and the > Fedora > >repos don't have 1.2.4. (which is disappointing because having updated > >packages is why I run Fedora.) Anyway, can anyone recommend a good, easy > way > >to update to 1.2.4? Or better yet, and upgrade path to 1.2.5? > > If your lucky you may be able to use the packages from the devel > branch. > > http://mirror.hiwaay.net/pub/fedora/linux/development/i386/os/Fedora/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070807/7622a795/attachment-0001.html From sontek at gmail.com Wed Aug 8 00:05:37 2007 From: sontek at gmail.com (John Anderson) Date: Tue, 7 Aug 2007 22:05:37 -0600 Subject: [Mono-list] Need tips for Mono Presentation to .NET User Group In-Reply-To: <6938f5390708072104j875b1a6ra101a92b658d0f6e@mail.gmail.com> References: <6938f5390708072104j875b1a6ra101a92b658d0f6e@mail.gmail.com> Message-ID: <6938f5390708072105l44faf2a2l12b84da1ce5daac3@mail.gmail.com> Sorry about the cross post, meant to send here instead of to the md list. Hey, I'm doing a presentation to our .NET User Group on mono, I was wondering if there is anything you guys think I should cover, here are my slides: http://www.sontek.net/mono/mono.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070807/f72e556a/attachment.html From makska at yandex.ru Wed Aug 8 10:02:59 2007 From: makska at yandex.ru (Maxim Karavaev) Date: Wed, 08 Aug 2007 18:02:59 +0400 Subject: [Mono-list] Trying to set up hosting on mono Message-ID: <637291186581779@webmail18.yandex.ru> Hello! We are trying to organize mass hosting for ASP.Net on Mono (apache + mod_mono). We use FreeBSD with Apache 2.0 and latest Mono 1.2, compiled from sources. And we've got some difficulties: 1. After several days of normal work, mod_mono unexpectedly become unavailable. We even have to use "kill" command to kill all mono and apache processes to restart it. May be it depends on amount of simulatelously http connections, because it seems like mono didn't use whole available free memory. Here are some info from apache logs: Unhandled Exception: System.ExecutionEngineException: Couldn't create thread Unhandled Exception: System.ExecutionEngineException: Couldn't create thread Unhandled Exception: System.ExecutionEngineException: Couldn't create thread ** (/usr/lib/mono/1.0/mod-mono-server.exe:11183): WARNING **: CreateThread: error creating thread handle ** (/usr/lib/mono/1.0/mod-mono-server.exe:11199): WARNING **: process_set_current: error creating process handle ** (/usr/lib/mono/2.0/mod-mono-server2.exe:11211): WARNING **: process_set_current: error creating process handle ** (/usr/lib/mono/1.0/mod-mono-server.exe:11228): WARNING **: process_set_current: error creating process handle Unhandled Exception: System.ExecutionEngineException: Couldn't create thread ** (/usr/lib/mono/1.0/mod-mono-server.exe:11199): WARNING **: thread_attach: error creating thread handle ** (/usr/lib/mono/1