Re: [Mono-list] Mono parsing error on multiline if
On Fri, Oct 16, 2009 at 6:15 PM, Smjert wrote: > I have a multiline if with lots of condition and the Mono compiler (1.9.1) > when compile the source code stops giving "error CS8025: Parsing error". > Here's the example: > > if(a = b || b != c > || d < c > > || f > h) > return true; <--- this is the line where the parsing error occurs. > > This source code compile with the Windows C# compiler.. what's wrong with > it? > Is the problem the conditions splitted into multiple lines (but they are a > lot... it will result "ugly" to have them on one line)? The newlines should be ignored entirely. Can you paste the entire method so we can see the code? -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono parsing error on multiline if
I have a multiline if with lots of condition and the Mono compiler (1.9.1) when compile the source code stops giving "error CS8025: Parsing error". Here's the example: if(a = b || b != c || d < c || f > h) return true; <--- this is the line where the parsing error occurs. This source code compile with the Windows C# compiler.. what's wrong with it? Is the problem the conditions splitted into multiple lines (but they are a lot... it will result "ugly" to have them on one line)? -- View this message in context: http://www.nabble.com/Mono-parsing-error-on-multiline-if-tp25932445p25932445.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] JSON not working when using WebServiceHost (returning XML)
Hello, System.ServiceModel.Web is in active development so that at least you cannot reliably use it in 2.4. Try it from trunk or at least wait for 2.6 instead. Atsushi Eno On 2009/10/16 23:41, Danny Haak wrote: > Hi all, > > I am trying to implement the example at > http://www.developmentalmadness.com/2008/05/intro-to-wcf-for-ajax.html (want > to make a RESTful webservice using JSON). The example is working, but instead > of JSON, it returns XML. Is this example correct (bit tough to find an easy > example on the interwebs); or is is it a bug (using Mono 2.4.2.3 at Mac OS X > 10.6)? > > Thanks! > > Best regards, > Danny > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] JSON not working when using WebServiceHost (returningXML)
For the sake of clarity, I mean the 'WCF Console Application' example on that website. Danny -Original Message- From: mono-list-boun...@lists.ximian.com on behalf of Danny Haak Sent: Fri 16/10/2009 16:41 To: mono-list@lists.ximian.com Subject: [Mono-list] JSON not working when using WebServiceHost (returningXML) Hi all, I am trying to implement the example at http://www.developmentalmadness.com/2008/05/intro-to-wcf-for-ajax.html (want to make a RESTful webservice using JSON). The example is working, but instead of JSON, it returns XML. Is this example correct (bit tough to find an easy example on the interwebs); or is is it a bug (using Mono 2.4.2.3 at Mac OS X 10.6)? Thanks! Best regards, Danny ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] JSON not working when using WebServiceHost (returning XML)
Hi all, I am trying to implement the example at http://www.developmentalmadness.com/2008/05/intro-to-wcf-for-ajax.html (want to make a RESTful webservice using JSON). The example is working, but instead of JSON, it returns XML. Is this example correct (bit tough to find an easy example on the interwebs); or is is it a bug (using Mono 2.4.2.3 at Mac OS X 10.6)? Thanks! Best regards, Danny ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Long-running program
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gonzalo Paniagua Javier wrote: > Mmmm... Do you keep *a lot* of timers around? Do you just add/remove a a > lot of them? If so, I'll change Timer to use a different data structure > to see if that helps. Yes, I have a number of long-lived Timers. The software is constantly polling 11 external hardware devices on timers and it broadcasts the collected results on another timer every second. I also make intensive use of short-lived timers, many of which only fire once. I'm not sure I always dispose() the short-lived timers, could that be the problem? Again, if there is any way I can report what is in the heap, I'd be happy to try to find out. Regards, Cliff. - -- Cliff Stanford Might Limited +44 845 0045 666 (Office) Suite 67, Dorset House +44 7973 616 666 (Mobile) Duke Street, Chelmsford, CM1 1TB -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrYQ/4ACgkQfNTx9pWyKfyR+QCeJD3s9T7nbLKRaNuNcSAlhvSr NXIAoJnJuD+oNySr6dwl0r/uAB2BNKhf =jLtp -END PGP SIGNATURE- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Extremely poor performance of ODFConverter/Mono on Linux vs Windows .Net
As long as the license permits, you might want to try to switch to saxon.net, which is XSLT 2.0 implementation but for 1.0. (saxon is under MPL.) Atsushi Eno On 2009/10/16 17:38, Michael Meeks wrote: > Hi Roman, > > On Thu, 2009-10-15 at 07:02 -0700, RomanP wrote: > >> I checked the performance of ODFConverter application for DOCX -> ODT >> conversion (http://sourceforge.net/projects/odf-converter) >> > The other issue here - around optimisation is - why bother ? there are > some examples of horrific performance on Windows / .Net too, of the > order of hours to open some larger files ;-) so - at least the OO.o > team's focus has been to work on native filters built into OO.o instead. > > Of course, it is interesting that when used with some staggeringly > large and highly complicated [ try debugging or profiling them ] XSLT > scripts Mono performs much worse than .Net - but, this seems to be to be > a corner case of little real interest - beyond the (rather ill-advised) > use of XSLT in the odf-converter ;-) > > At least that is my take. Worse than that, last I looked it was rather > hard to determine what is poor performance of the XSLT itself [ using > poor constructs that chew CPU ], and what is a sub-optimal > implementation in the XSLT interpreter. But if you have time to sink > into this - I don't think people would complain to get the patches ;-) > > Regards, > > Michael. > > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Extremely poor performance of ODFConverter/Mono on Linux vs Windows .Net
Hi Roman, On Thu, 2009-10-15 at 07:02 -0700, RomanP wrote: > I checked the performance of ODFConverter application for DOCX -> ODT > conversion (http://sourceforge.net/projects/odf-converter) The other issue here - around optimisation is - why bother ? there are some examples of horrific performance on Windows / .Net too, of the order of hours to open some larger files ;-) so - at least the OO.o team's focus has been to work on native filters built into OO.o instead. Of course, it is interesting that when used with some staggeringly large and highly complicated [ try debugging or profiling them ] XSLT scripts Mono performs much worse than .Net - but, this seems to be to be a corner case of little real interest - beyond the (rather ill-advised) use of XSLT in the odf-converter ;-) At least that is my take. Worse than that, last I looked it was rather hard to determine what is poor performance of the XSLT itself [ using poor constructs that chew CPU ], and what is a sub-optimal implementation in the XSLT interpreter. But if you have time to sink into this - I don't think people would complain to get the patches ;-) Regards, Michael. -- michael.me...@novell.com <><, Pseudo Engineer, itinerant idiot ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Hi Regarding mono Install
2009/10/16 Nagappan Alagappan : > Hello Srinivas, > > You can add this in your YaST source > http://ftp.novell.com/pub/mono/download-stable/openSUSE_11.1/ > > Also the default YaST software package UI will give you all the Mono > packages. Check http://en.opensuse.org/YaST_Software_Management > > Thanks > Nagappan > > On Thu, Oct 15, 2009 at 7:20 PM, Srinivas wrote: >> >> Hi Everyone, >> I have installed open suse 11.1 version in my system. >> Am facing some problems while installing mono.please suggest me any download >> link where i can get latest mono. I tried 2 links but it's indirecting to >> rpm files.. do we have any package which install like windows? Welcome to Linux world, RPM is package which install like windows :-) The official download page is http://www.go-mono.com/mono-downloads/download.html . But, as Nagappan suggest you, it is better to use RPM specially build for your distribution, Opensuse 11.1 :-) At least, you can find several newest version of Mono : http://software.opensuse.org/search?baseproject=openSUSE%3A11.1&p=1&q=mono-devel >> >> >> ___ >> Mono-list maillist - mono-l...@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > > > -- > Linux Desktop (GUI Application) Testing Project - > http://ldtp.freedesktop.org > http://nagappanal.blogspot.com > > ___ > Mono-list maillist - mono-l...@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- Cordially. Small Eric Quotations of the days: --- I have no special talents. I am only passionately curious ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list