[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: ==