[Mono-dev] Mono's reflection implementation

2009-09-10 Thread Kris Mok
Hi all, I was trying out some tricks and needed reflection to pull them off. But when I tried to retrieve private instance fields of an object, I found a difference in behavior on Type.GetFields between Microsoft's CLR and Mono. I tried this on Ubuntu 9.04 with Mono 2.0.1 from apt-get, and

[Mono-dev] System tracing

2009-09-10 Thread APS
Hi, I'm using asp.net with mod_mono under apache. As I've some performance issue I would like to track down the time used to load assemblies, render web pages etc. I've to add some custom logging or there's a system wide log that I can enable to retrieve this info? If yes, how can I enable it?

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Robert Jordan
Hi, This is not a bug. BindingFlags.NonPublic does not return inherited non-public class members. It seems that MS.NET's internal delegate implementation is different from Mono's. Maybe they are explicitly defining these fields in inherited delegates. Robert Kris Mok wrote: Hi all, I was

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Kris Mok
Hi Robert, No, MS.NET's delegate declares _target, _methodBase, _methodPtr and _methodPtrAux in System.Delegate, the same way Mono's System.Delegate declares m_target, method_ptr and the like. But they might have had some special treatment to the delegates' implementations. Both MS.NET and

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Tom Spink
Hi Kris, 2009/9/10 Kris Mok rednaxela0...@hotmail.com: You're right that BindingFlags.NonPublic doesn't return inherited fields. Looks like I should have sent a bug report to MS instead :) It's not a bug. You need to specify BindingFlags.FlattenHierarchy. -- Tom Spink Ogden Nash - The

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Robert Jordan
Tom Spink wrote: Hi Kris, 2009/9/10 Kris Mok rednaxela0...@hotmail.com: You're right that BindingFlags.NonPublic doesn't return inherited fields. Looks like I should have sent a bug report to MS instead :) It's not a bug. You need to specify BindingFlags.FlattenHierarchy. Nope. Please

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Tom Spink
2009/9/10 Robert Jordan robe...@gmx.net: Nope. Please check the docs to see why. Touché! You know, I remember writing some code a while ago to recursively flatten the hierarchy for this very reason... but I forgot the OP was looking for *private* members. -- Tom Spink Charles de Gaulle - The

Re: [Mono-dev] Compacting GC

2009-09-10 Thread Miguel de Icaza
This build option hasn't been working for a while when compiling from trunk. Did anyone fix it recently? What about trying it out? Miguel ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] Compacting GC

2009-09-10 Thread pablosantosl...@terra.es
We tried to build it today since we're experiencing issues with libgc under really heavy load. It does not build. David can add more details if you're interested, but they show up just trying to build it. Miguel de Icaza wrote: This build option hasn't been working for a while when

Re: [Mono-dev] Compacting GC

2009-09-10 Thread Mark Probst
On Thu, Sep 10, 2009 at 6:52 PM, pablosantosl...@terra.espablosantosl...@terra.es wrote: We tried to build it today since we're experiencing issues with libgc under really heavy load. SGen is not production-ready yet. It cannot even run the corlib testsuite completely, yet, so I doubt it will

Re: [Mono-dev] Compacting GC

2009-09-10 Thread Miguel de Icaza
Hello Pablo, We tried to build it today since we're experiencing issues with libgc under really heavy load. Like I said on my first post: you can try it, but it is not finished. And by not finished, I mean, it is not finished, so it is not going to be useful for you to solve the problem

Re: [Mono-dev] Compacting GC

2009-09-10 Thread pablosantosl...@terra.es
ok, understood. We're considering working on it if we can't solve our issues (if they're finally issues) with libgc. Miguel de Icaza wrote: Hello Pablo, We tried to build it today since we're experiencing issues with libgc under really heavy load. Like I said on my

[Mono-dev] FSharp 1.9.6.16 and latest mono obscurity

2009-09-10 Thread Dan Shechter
Can anyone successfully run fsi.exe on mono? If I use some simple .fsx script like: #light let x = 1 + 1 printfn %A x and use: mono fsi.exe --gui- ~/test.fsx I get the desired 2 as output. If I try to punch in the same commands in fsi.exe interactively fsi seems completely stuck. However, if

Re: [Mono-dev] FSharp 1.9.6.16 and latest mono obscurity

2009-09-10 Thread Rodrigo Kumpera
Let me guess, did you try changing the colours of your terminal? On Thu, Sep 10, 2009 at 3:16 PM, Dan Shechter d...@houmus.org wrote: Can anyone successfully run fsi.exe on mono? If I use some simple .fsx script like: #light let x = 1 + 1 printfn %A x and use: mono fsi.exe --gui-

[Mono-dev] IOMAP fix for CreateFile()

2009-09-10 Thread Jeffrey Stedfast
In mono/io-layer/io.c's CreateFile() function, if the first call to _wapi_open() fails due to the path being a directory, it is retried w/o WRITE permissions. As far as I can tell, the fallback open() call should really be a _wapi_open() so that IOMAP magic is applied just as it was in the first

Re: [Mono-dev] FSharp 1.9.6.16 and latest mono obscurity

2009-09-10 Thread Dan Shechter
Que? Colors of the terminal? I'm just trying to port/run some of my more I/o intensive scripts directly on my Linux servers instead of my windows boxes.. Apparently I'm having more luck with gnome-termina Shechter. On Sep 10, 2009, at 21:20, Rodrigo Kumpera kump...@gmail.com wrote:

[Mono-dev] GCC CLI

2009-09-10 Thread Lennie De Villiers
Hi, Did the student of Google Summer Of Code release the code for what his done so far with the GCC CLI project? Kind Regards, Lennie De VIlliers -- Lennie De Villiers Blog: http://lenniedevilliers.blogspot.com/ ___ Mono-devel-list mailing list