Re: [Mono-dev] gmcs fails on IQueriable?

2008-05-15 Thread Jb Evain
Hey Roei, On 5/15/08, Roei Erez [EMAIL PROTECTED] wrote: Is this my environment, or a bug in gmcs? Looks like a gmcs bug (here gmcs crashes). Mind filing a bug? Thanks, -- Jb Evain [EMAIL PROTECTED] ___ Mono-devel-list mailing list

Re: [Mono-dev] gmcs fails on IQueriable?

2008-05-15 Thread Roei Erez
Opened: #390666 Regards, Roei Erez -Original Message- From: Jb Evain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 11:34 AM To: Roei Erez Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] gmcs fails on IQueriable? Hey Roei, On 5/15/08, Roei Erez [EMAIL PROTECTED]

[Mono-dev] How to increase the memory used by mono?

2008-05-15 Thread Arun Kalyanasundaram
Hi All, I would like to know if there is a way to increase the memory used by mono. I run an application which consumes on an average about 20Mb of memory and the performance is good, but when the application consumes around 90Mb the performance is much slower. Although the system memory

[Mono-dev] AsQueriable patch

2008-05-15 Thread Roei Erez
Hi, Attached is a proposed patch for 'AsQueryable' extension method. The implementation traverses the tree and replaces the 'IQueryable' methods with the corresponding 'IEnumerable' methods. Please review Note: The tests that I have added fail to be compiled by gmcs because of bug #390666

Re: [Mono-dev] AsQueriable patch

2008-05-15 Thread Jb Evain
Hey Roei, On 5/15/08, Roei Erez [EMAIL PROTECTED] wrote: Attached is a proposed patch for 'AsQueryable' extension method. Niiice! The implementation traverses the tree and replaces the 'IQueryable' methods with the corresponding 'IEnumerable' methods. Please review Looks mostly good, a

Re: [Mono-dev] Mono COM support question

2008-05-15 Thread Jonathan Chambers
On Mon, Mar 3, 2008 at 8:07 AM, Jonathan Pryor [EMAIL PROTECTED] wrote: On Mon, 2008-03-03 at 11:58 +0200, Sebi Onofrei wrote: The problem is that now I need to use COM communication. I will have to use Flix Engine from On2 and as I discovered reading their documentation / how-tos, I

[Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Alan_Chun
HI, currently I am porting a windows app to linux using Mono. I have some difficulties to get the serial port work. here is the code(based on mono website): public static void Main(string[] args) { SerialPortTest myTest = new SerialPortTest(); myTest.Test();

Re: [Mono-dev] Embedding Mono + SWIG string return values leads to bad free

2008-05-15 Thread Jonathan Chambers
Looking at the marshal.c code, this may be a problem in the runtime. We allocate return strings using mono_marshal_alloc (evaluates to CoTaskMemAlloc on Windows). However, we always free returned strings using g_free on all platforms. I suppose we should use mono_marshal_free instead? Please

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread [EMAIL PROTECTED]
Alan_Chun wrote: HI, currently I am porting a windows app to linux using Mono. I have some difficulties to get the serial port work. here is the code(based on mono website): Hi Alan, cna you test this code in linux? (using of course /dev/ttyS0 or the correct serial device), I use lot of

Re: [Mono-dev] XPCOM and Mono clarification

2008-05-15 Thread Jonathan Chambers
Hello Enric, At this point, you should be able to consume XPCOM components from C# if you setup your environment right (I won't go into detail on that right now). You could also theoretically create XPCOM components in C# and consume them from any XPCOM supportive language. The biggest part

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Arek Waliszewski
Alan_Chun pisze: HI, currently I am porting a windows app to linux using Mono. I have some difficulties to get the serial port work. here is the code(based on mono website): Could you post whole of your program. It looks like you are trying to open serial port in the main thread, then

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Alan_Chun
Hi Arek, That's the whole .cs file I have. I know it looks strange but under mono, the data received event is not working. That's why I create another thread to do data polling. Maybe you have better ways to do that? Thanks Arek Waliszewski wrote: Alan_Chun pisze: HI, currently I am

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Leszek Ciesielski
Try creating the SerialPort in the same Thread that uses it afterwards. On Thu, May 15, 2008 at 4:49 PM, Alan_Chun [EMAIL PROTECTED] wrote: Hi Arek, That's the whole .cs file I have. I know it looks strange but under mono, the data received event is not working. That's why I create another

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Alan_Chun
Panoramix wrote: In Linux to use a device the user who requires access should have the permission to use it. So you must verify that the user starts the application is registered in the group owner of ttysN. To find out the group owner of the device by a shell run the command below:

[Mono-dev] LINQ order by sorting algorithm

2008-05-15 Thread Roei Erez
Hi, The specification of 'OrderBy' query operator does not explicitly saying the sorting algorithm should be stable. Though, MS.NET gives a stable implementation for IEnumerableT and Mono currently not, which causes applications to behave differently in both platforms. It is not a critical

Re: [Mono-dev] LINQ order by sorting algorithm

2008-05-15 Thread Jb Evain
Hey Roei, On 5/15/08, Roei Erez [EMAIL PROTECTED] wrote: The specification of 'OrderBy' query operator does not explicitly saying the sorting algorithm should be stable. Though, MS.NET gives a stable implementation for IEnumerableT and Mono currently not, which causes applications to behave

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Carlos Alberto Cortez
That's likely because 'mono test.exe' actually uses mono, and 'test.exe' runs .net instead. This appears to be a bug. Please fill a bug report with the attached repro. Thanks! Carlos El jue, 15-05-2008 a las 12:01 -0700, Alan_Chun escribió: Panoramix wrote: In Linux to use a device

Re: [Mono-dev] Mono C# Serial Port problem

2008-05-15 Thread Xavi de Blas
Hello, you can take a look at chronojump code. It uses serial port on both platforms: http://svn.gnome.org/viewvc/chronojump/trunk/src/chronopic.cs?revision=383view=markup http://svn.gnome.org/viewvc/chronojump/trunk/src/chronojump_mini.cs?revision=364view=markup It's a pity this two parts are