Re: [Mono-winforms-list] How to improve quality of Application on mac

2010-12-15 Thread Stifu
Hi, 3 solutions come to mind: - Submit patches to make WinForms better - Use hacks specific to your application* - Stop using WinForms, use another toolkit *As for hacks, I don't recommend it. Personally, I only use them as temporary solutions, while waiting for newer Mono versions to come

[Mono-dev] Embedding Mono - NULL return value in C#

2010-12-15 Thread marcus julius
Hi, I call a c++ function from C# using mono. For instance, [MethodImplAttribute(MethodImplOptions.InternalCall)] extern internal static Object get_ai_behavior_object(int id); When the function returns a NULL object, there is a NullReferenceException. I think it occurs because C# tries to cast

Re: [Mono-dev] Mono 2.8.1 on OSX and Winforms regression fixed.

2010-12-15 Thread stevenspencer
Hi, I have noticed that the download page has changed a little on the Mono web site. On the 22nd November, I downloaded 2.8.1 for OSX got the file MonoFramework-2.8.1_4.macos10.novell.universal.dmg whereas if you download it now, you get MonoFramework-2.8.1_3.macos10.novell.universal.dmg

Re: [Mono-dev] Mono 2.8.1 on OSX and Winforms regression fixed.

2010-12-15 Thread Dimitar Dobrev
Hi, 2.8.1_4+ are still there, you just need to browse http://ftp.novell.com/pub/mono/archive/2.8.1/macos-10-x86/ Novell's FTP directory . For example, http://ftp.novell.com/pub/mono/archive/2.8.1/macos-10-x86/5/MonoFramework-2.8.1_5.macos10.novell.x86.dmg here you can find 2.8.1_5 .

Re: [Mono-dev] Embedding Mono - NULL return value in C#

2010-12-15 Thread Robert Jordan
On 15.12.2010 09:51, marcus julius wrote: Hi, I call a c++ function from C# using mono. For instance, [MethodImplAttribute(MethodImplOptions.InternalCall)] extern internal static Object get_ai_behavior_object(int id); When the function returns a NULL object, there is a

Re: [Mono-dev] CS0584 Internal compiler error in gmcs.exe (master)

2010-12-15 Thread Marek Safar
Hello, In membercache.cs.AddBaseType () line 219, if entry.Value.Count == 1, entry.Value is a MemberSpec[] which will cause the list.Add(ce) on Line 234 to fail. Gmcs.exe fails with CS0584: Internal compiler error: Collection is read-only (in ecore.cs:433) when this case is encountered.

Re: [Mono-dev] Too many open files when adding many embedded resources

2010-12-15 Thread Marek Safar
Hello, Building Mono 2.9 from git master, we're encountering an issue where an assembly with lots of embedded resources (approx 4000), where gmcs is throwing Too many open files exception. The culprit seems to be that a new file handle is opened for every embedded resource when it's

[Mono-dev] Mono 2.8 with sgen on Solaris 10 SPARC

2010-12-15 Thread pablosantosl...@terra.es
Hi all, Just wanted to let you know that our main internal Plastic SCM server has been running now for more than 1 month without issues on Solaris SPARC using Mono 2.8 and sgen! Cheers, pablo www.plasticscm.com ___ Mono-devel-list mailing list

Re: [Mono-dev] Mono Service crashs

2010-12-15 Thread Chakotey STME
2010/12/14 Robert Jordan robe...@gmx.net: On 14.12.2010 16:16, Chakotey STME wrote: Hello Community, I have a problem with a mono-service. I have a mono-service in which I host a WCF-Service. I start the software with mono-service2 and it works fine. After a while (I can't say when exactly

Re: [Mono-dev] Mono/.NET Framework Very Different Stack Traces

2010-12-15 Thread Bryan Murphy
On Wed, Dec 15, 2010 at 12:26 AM, jmalcolm malcolm.jus...@gmail.com wrote: I cannot speak to changing the stack trace offered by Mono. What I can say is that I tend to use inner exceptions in this situation to get better insight into where the real problem lies. Unfortunately, at least for

Re: [Mono-dev] Mono/.NET Framework Very Different Stack Traces

2010-12-15 Thread Zoltan Varga
Hi, This is: https://bugzilla.novell.com/show_bug.cgi?id=322158 On Tue, Dec 14, 2010 at 8:27 PM, Bryan Murphy bmurphy1...@gmail.com wrote: I have a very simple test program: 01 using System; 02 03 public static class Program { 04public static void ThrowCatchRethrow() { 05

Re: [Mono-dev] Mono/.NET Framework Very Different Stack Traces

2010-12-15 Thread Bryan Murphy
On Wed, Dec 15, 2010 at 11:14 AM, Zoltan Varga var...@gmail.com wrote: Hi, This is: https://bugzilla.novell.com/show_bug.cgi?id=322158 Thanks. That's my problem to a T. I knew there was a ticket for it somewhere but had yet to find it. Bryan

[Mono-dev] CS0136 Error - C# parser bug (master)

2010-12-15 Thread Tom Philpot
The following code gives a CS0136 error when it shouldn't (running today's git master) namespace N { public class C { public event EventHandler MyDelegate = delegate { }; internal void DoSomething (bool bValue) { if (!bValue) { } } } } ___

Re: [Mono-dev] CS0136 Error - C# parser bug (master)

2010-12-15 Thread Tom Philpot
Just noticed I forgot a using System; at the top If also, if you replace the {} from under if (!bValue) with an empty statement (I.e. ;) the code compiles without error. From: Tom Philpot tom.phil...@logos.commailto:tom.phil...@logos.com Date: Wed, 15 Dec 2010 10:27:37 -0800 To:

[Mono-dev] CS1692: Invalid number warning for #pragma restore?

2010-12-15 Thread Tom Philpot
One more thing I'm seeing today. The following gives a CS1692 for line 3 below. Is this expected behavior or a bug? #pragma warning disable 1591 public class C {} #pragma warning restore 1591 ___ Mono-devel-list mailing list

Re: [Mono-dev] Mono Winforms on Mac: Clipboard patches

2010-12-15 Thread Dat Ngo
Yeah I'm pretty sure those clipboard changes are meant to allow copying and pasting between mono and mac applications, instead of just X11 applications. I worked with Ralph briefly when he started working on patching mono and this was one of the problems that came up. I haven't tried these

[Mono-dev] Mono Tasklets (microthread resuming with different stack, and possibly microthread migration)

2010-12-15 Thread Virgile Bello
I was wondering a few things concerning Mono.Taskets: 1/ By modifying mono to not throw an exception when marking top-most frame a second time (using Mono.Continuation.Mark), I figured more behavior could be covered. As an example, let's say I Mark and Store in the following stack frame: ==

[Mono-list] Running On Platform?

2010-12-15 Thread Lennie De Villiers
Hi, How can I see on which platform a Mono app is running? Windows, Linux, Mac OS X? -- Lennie De Villiers Blog: http://lenniedevilliers.blogspot.com/ ___ Mono-list maillist - Mono-list@lists.ximian.com

Re: [Mono-list] Running On Platform?

2010-12-15 Thread Robert Jordan
On 15.12.2010 12:17, Lennie De Villiers wrote: Hi, How can I see on which platform a Mono app is running? Windows, Linux, Mac OS X? http://www.mono-project.com/FAQ:_Technical Search for How to detect the execution platform. Note that Mac OS X cannot be detected this way because it's treated

[Mono-list] mono mkbundle + xsp2.exe problem

2010-12-15 Thread XU, Jiangyan
Hi all, I was trying to create a bundle for my ASP.NET application. I first did a mkbundle to package xsp with all the dlls *mkbundle2 -o program.bundle --deps --config-dir . --static -z /usr/lib/mono/gac/xsp2/2.6.5.0__0738eb9f132ed756/xsp2.exe $dlls* Then when I ran the bundle: *program.bundle

Re: [Mono-list] mono mkbundle + xsp2.exe problem

2010-12-15 Thread Robert Jordan
On 15.12.2010 19:49, XU, Jiangyan wrote: Hi all, I have tried to change $my_web_root to other values and it appears that the program always tries to search for xsp2.exe under the path specified by --root. I don't believe mkbundle is able to fulfill ASP.NET's AppDomain requirements. Try to

[Mono-list] compiled on linux only runs on mono?

2010-12-15 Thread Cullin1989
Hi all. There's a big question mark on my forehead right now. I was building a project on MonoDevelop(Linux) the other day, that I had developed and successfully built and run on Windows before. This was to test, if my project could be built on linux at all. That worked out quit nice and I ran

Re: [Mono-list] compiled on linux only runs on mono?

2010-12-15 Thread Stifu
Compiling on Linux and running on Windows *should* work. If not, you found a bug in Mono. I take it you made sure the .NET framework was properly installed on the target machine. Like, if you compiled a .NET 4.0 app with Mono on Linux, make sure you have .NET 4.0 installed on the Windows

Re: [Mono-list] Mono for an older Linux RHEL4r5?

2010-12-15 Thread jmalcolm
CodeSlinger wrote: We have an older version of Linux - Red Hat EL4r5 - also known as Update 5, 2007-05-01. Do I have much of a chance running a decent version of Mono on this older system? You will have to wait for a more authoritative answer, but as a user of Mono on RHEL5 I can say

Re: [Mono-list] Mono for an older Linux RHEL4r5?

2010-12-15 Thread Maser, Dan
I use mono on RHEL4 with fine results. I build mine from source. -Original Message- From: mono-list-boun...@lists.ximian.com [mailto:mono-list-boun...@lists.ximian.com] On Behalf Of jmalcolm Sent: Wednesday, December 15, 2010 8:16 PM To: mono-list@lists.ximian.com Subject: Re: