[Mono-dev] PR 1359: System.Web.HttpApplication: set StatusCode = 500 when we send an exception to the client

2014-10-24 Thread Etienne Champetier
Hi, when we get an exception in InitOnce (in HttpApplication), we send this exception to the browser, without changing StatusCode so we get a wonderful http 200. I've checked and it's the only place where we call FinalErrorWrite and we didn't set StatusCode.

[Mono-dev] elimination of TARGET_J2EE/TARGET_JVM ?

2014-10-24 Thread Etienne Champetier
Hi, Is TARGET_J2EE still in use (and TARGET_JVM), because it really complicate some class? Thanks in advance Etienne ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: [Mono-dev] elimination of TARGET_J2EE/TARGET_JVM ?

2014-10-24 Thread akoeplinger
I removed TARGET_JVM with https://github.com/mono/mono/pull/1200, do you still see it somewhere? TARGET_J2EE should be removed too I guess. -- Alex -- View this message in context: http://mono.1490590.n4.nabble.com/elimination-of-TARGET-J2EE-TARGET-JVM-tp4664347p4664348.html Sent from the

Re: [Mono-dev] elimination of TARGET_J2EE/TARGET_JVM ?

2014-10-24 Thread Etienne Champetier
Hi 2014-10-24 12:37 GMT+02:00 akoeplinger alex.koeplin...@outlook.com: I removed TARGET_JVM with https://github.com/mono/mono/pull/1200, do you still see it somewhere? No (except in changelogs). Writing about TARGET_J2EE i remembered that there was also a TARGET_JVM, so I asked about it in my

[Mono-dev] Replacing missing monolite 110 archive ?

2014-10-24 Thread Alex J Lennon
Hi, I'm nearly at the point where I can build mono win32 under Appeyor CI. I'm trying to understand why there appears to be no mono.exe installed, as a prelude to packaging up the build. To do this I am trying to build the latest official release 3.2.3 but this fails without monolite and I

Re: [Mono-dev] elimination of TARGET_J2EE/TARGET_JVM ?

2014-10-24 Thread Martin Thwaites
I think I remember seeing a load of ifdefs for j2ee in Httpapplication. On 24 Oct 2014 11:58, Etienne Champetier champetier.etie...@gmail.com wrote: Hi 2014-10-24 12:37 GMT+02:00 akoeplinger alex.koeplin...@outlook.com: I removed TARGET_JVM with https://github.com/mono/mono/pull/1200, do you

Re: [Mono-dev] elimination of TARGET_J2EE/TARGET_JVM ?

2014-10-24 Thread Etienne Champetier
2014-10-24 13:32 GMT+02:00 Martin Thwaites mar...@my2cents.co.uk: I think I remember seeing a load of ifdefs for j2ee in Httpapplication. That's exactly where i am On 24 Oct 2014 11:58, Etienne Champetier champetier.etie...@gmail.com wrote: Hi 2014-10-24 12:37 GMT+02:00 akoeplinger

Re: [Mono-dev] PR 1359: System.Web.HttpApplication: set StatusCode = 500 when we send an exception to the client

2014-10-24 Thread Etienne Champetier
2014-10-24 13:53 GMT+02:00 Etienne Champetier champetier.etie...@gmail.com : I know nothing about customerrors, but we are in the init so we may have fail to parse the config, so using customerror here is dangerous Exception e = initialization_exception; HttpException exc =

Re: [Mono-dev] PR 1359: System.Web.HttpApplication: set StatusCode = 500 when we send an exception to the client

2014-10-24 Thread Martin Thwaites
Is this something that we can unit test to verify against .Net? On 24 Oct 2014 13:26, Etienne Champetier champetier.etie...@gmail.com wrote: 2014-10-24 13:53 GMT+02:00 Etienne Champetier champetier.etie...@gmail.com: I know nothing about customerrors, but we are in the init so we may have

[Mono-dev] PR 1362: Webapp stuck with Key duplication when adding: httpModules

2014-10-24 Thread Etienne Champetier
Hi, 4 commits in this PR, 1 that should fix the race condition that lead to the exception, 3 improvements. https://github.com/mono/mono/pull/1362 Etienne ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

[Mono-dev] Memleak in mono_domain_unload

2014-10-24 Thread Vardar Sahin
Hello to all, I noticed that mono_domain_unload is leaking memory. I wrote a small test in my application where I create a domain, load an assembly into it, execute the C# main which does nothing and then call mono_domain_unload. The assembly and all its references are loaded with

Re: [Mono-dev] elimination of TARGET_J2EE/TARGET_JVM ?

2014-10-24 Thread Rodrigo Kumpera
They are no longer in use but we're not in a rush to remove the from the code base. If it's making it hard for you to read a piece of code, remove them and submit a pull request - we'd love to kill more of those defines. :) On Fri, Oct 24, 2014 at 2:10 AM, Etienne Champetier

Re: [Mono-dev] Memleak in mono_domain_unload

2014-10-24 Thread Rodrigo Kumpera
Please file a bug report with your test case so we can fix any leaks. On Fri, Oct 24, 2014 at 7:56 AM, Vardar Sahin sakirs...@gmail.com wrote: Hello to all, I noticed that mono_domain_unload is leaking memory. I wrote a small test in my application where I create a domain, load an

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Miguel de Icaza
Hey, There is no 3.5 profile. There are currently only 2.0, 4.0 (reference assemblies), 4.5 and the mobile versions (mobile, android, ios). What you think is 3.5 are assemblies introduced at 3.5, but we ship with the above 4.0/4.5 ones. On Fri, Oct 24, 2014 at 12:33 AM, xplicit s...@ngs.ru

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Martin Thwaites
Hi Miguel, I think my preference would be to have the 3.x.x series continue (as security fix only) with all the profiles, and essentially have it be a legacy branch. Then have the 4.x.x series by a .NET 4.5+ only code base. I think it should continue if people are willing to support it, but the

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Sergey Zhukov
I'll try to reformulate my question. Do I understand correctly that in new version of mono it will not be possible to compile assembly for Mono/.NET 3.5 target and use the compiled assembly in Unity 3D (because of referencing different corlib libraries in Unity (corlib 2.0) and compiled assembly

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Miguel de Icaza
Hello Martin, There is no such thing as a 3.x.x series. It does not exist. It never did. You must be confused. Miguel On Fri, Oct 24, 2014 at 12:34 PM, Martin Thwaites monofo...@my2cents.co.uk wrote: Hi Miguel, I think my preference would be to have the 3.x.x series continue (as

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Miguel de Icaza
I can not answer that question, as I am not familiar with the situation, and it seems like you are as confused as I am. There wont be 2.0 reference assemblies anymore. Miguel On Fri, Oct 24, 2014 at 2:05 PM, Sergey Zhukov s...@ngs.ru wrote: I'll try to reformulate my question. Do I understand

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread akoeplinger
To make things clear, I had to make a small adjustment to https://github.com/fanf2/unifdef so it didn't complain about C# multiline strings. I had to remove this else if: https://github.com/fanf2/unifdef/blob/90ca2eee76db715943ec4b7ca2892d155ca64075/unifdef.c#L1216-L1220, then it ran fine on the

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Martin Thwaites
Hi Miguel, I'm referring to 3.9, 3.10.1, etc. i.e. the current version being 3.10.1. So I guess it should be considered the 3.x series. I'm meaning that we shouldn't preclude there being a 3.11, or 3.12, if there is a critical bug. Also, do you have an answer to the distro question? Thanks,

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Miguel de Icaza
Ah, I see. Yeah, perhaps we will move to the 4.0 branding, just need to check with folks around here what they think. For distros: nobody in the Linux world really ever cared about this. We kept these profiles with the idea that this was something that actually mattered, and it turns out, it

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-24 Thread Greg Young
Is everything from 4.0 on the correct side currently there? I have seen this cause confusion in the past for many thinking the version numbers somehow match up :) On Friday, October 24, 2014, Miguel de Icaza mig...@xamarin.com wrote: Ah, I see. Yeah, perhaps we will move to the 4.0 branding,

[Mono-dev] InvalidCastException - which makes no sense

2014-10-24 Thread Edward Ned Harvey (mono)
This is a fun one. I'd love it if anyone could explain this to me. using (var command = new SqliteCommand(@SELECT COUNT(*) FROM someTable WHERE someColumn = @someValue , dbConn)) { command.Parameters.Add(new SqliteParameter(someValue, foobar)); object scalar = command.ExecuteScalar();

Re: [Mono-dev] InvalidCastException - which makes no sense

2014-10-24 Thread Miguel de Icaza
Hello, What happens is this. The value returned from ExecuteScalar is boxed. This basically means that you have a wrapper that indicates the type of the boxed object, as well as the contents of the boxed object. The reality is that: (Int64) (scalar) and (Int32) (Int64) (scalar) perform

Re: [Mono-dev] InvalidCastException - which makes no sense

2014-10-24 Thread David Nelson
Eric Lippert has a good write up about this behavior: http://blogs.msdn.com/b/ericlippert/archive/2009/03/19/representation-and-identity.aspx On Oct 24, 2014, at 5:28 PM, Miguel de Icaza mig...@xamarin.com wrote: Hello, What happens is this. The value returned from ExecuteScalar is

Re: [Mono-dev] InvalidCastException - which makes no sense

2014-10-24 Thread Edward Ned Harvey (mono)
From: Miguel de Icaza [mailto:mig...@xamarin.com] What happens is this.   The value returned from ExecuteScalar is boxed.   This Got it, thanks. In fact, I simplified to this: Object foo = (Int64)0; Int64 foo64 = (Int64)foo; Int32 foo6432 =

[Mono-dev] Review of PR1363: MembershipPasswordAttribute

2014-10-24 Thread Martin Thwaites
Hi All, This is part of the ongoing work for the aspnetwebstack. The only thing it's missing is tests around the PasswordStrength regex, however, I'm no good with regex so maybe someone can give me some to add to the test and valid/invalid strings to test against? I'm also hoping that the