Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Manuel de la Pena
Hello, I don't know if I have this correct, but until 2.0 value types were not nullables. I have trid this solution my self but you could try this alternative code: NullableDateTime dt = new NullableDateTime(null); or alternatively DateTime? dt = null; and later do the check if(dt != null)

[Mono-dev] Very long time to complete tests after make

2008-04-08 Thread Mads Bondo Dydensborg
Hi there When compiling mono-svn on a 64 bit debian 4.0, it takes a _very_ long time to run the tests (make tests in mono/mono/tests). In fact, I think it may be hanging: Testing loader.exe... pass. Testing pointer.exe... pass. Testing hashcode.exe... pass. Testing delegate1.exe... pass.

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Marek Safar
Hello Casey, I've noticed that on a recent SVN build of mono, I get a CS0019 error if I try to compare a value type against null. E.g.: DateTime dt; if (dt != null) Console.WriteLine(dt); As far as I can tell, this is the correct behavior, since a value type can't be null. I'm

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Andrés G. Aragoneses
Marek Safar wrote: Hello Casey, I've noticed that on a recent SVN build of mono, I get a CS0019 error if I try to compare a value type against null. E.g.: DateTime dt; if (dt != null) Console.WriteLine(dt); As far as I can tell, this is the correct behavior, since a value type

[Mono-dev] Unable to locate msc during compile

2008-04-08 Thread Mads Bondo Dydensborg
Hi there I am getting a pretty confusing message when trying to compile mono-svn - it can not find mcs. The machine already have an install of mono-1.9. My PATH (ect) includes a reference to this: Here is the last few lines of output from the compilation process: Making all in runtime

[Mono-dev] Problems with threads, when running CruiseControl.NET

2008-04-08 Thread Mads Bondo Dydensborg
Hi there I have problems getting CruiseControl.NET (1.4.0.3226) to run stable on mono 1.9 both on 32 and 64 bit systems. Many errors. Any ideas what could be causing this particular one, which occurs quite often: ** (CruiseControl.NET-1.4.0.3226/server/ccnet.exe:11885): WARNING **:

Re: [Mono-dev] Moonlight on Mac PowerPC

2008-04-08 Thread Anoop Madhusudanan
Slobodnic, Ciprian wrote: Is there any information regarding support for Mac PowerPCs? Based on the Silverlight 2.0 information it seems like Ms will not support it. Thanks, Ciprian Slobodnic Ciprian, Scott from MS officially confirmed that they are not going to support Silverlight

Re: [Mono-dev] Mono-devel-list Digest, Vol 36, Issue 20

2008-04-08 Thread GAO FENG
Hi,everyone.I have a strange problem on compiling olive. The error report is:System.Windows.Browser.Netnamespace BrowserHttpWebResponse.cs has some function using override but actually the original type HeepWebResponse's function is not a virtual one .So I can not compile the olive source~

Re: [Mono-dev] Data Execution Prevention and dynamic methods codegen

2008-04-08 Thread Zoltan Varga
Hi, This is tracked as: https://bugzilla.novell.com/show_bug.cgi?id=320036 Zoltan 2008/4/8 Aras Pranckevicius [EMAIL PROTECTED]: Hi, We have a problem in that when Data Execution Prevention (DEP) on Windows XP/Vista is on, some Mono scripts can't be executed. When debugging the

[Mono-dev] Data Execution Prevention and dynamic methods codegen

2008-04-08 Thread Aras Pranckevicius
Hi, We have a problem in that when Data Execution Prevention (DEP) on Windows XP/Vista is on, some Mono scripts can't be executed. When debugging the thing, it looks like sometimes mono-codeman allocates memory through raw malloc instead of VirtualAlloc with proper execute flags. Specifically

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Marek Safar
Hello Andrés, Marek Safar wrote: Hello Casey, I've noticed that on a recent SVN build of mono, I get a CS0019 error if I try to compare a value type against null. E.g.: DateTime dt; if (dt != null) Console.WriteLine(dt); As far as I can tell, this is the correct

Re: [Mono-dev] status of ilasm?

2008-04-08 Thread Erven ROHOU
Miguel de Icaza a écrit : We use ilasm for C toolchain and we were planning to add a few features. Are we better off waiting for new version? Am sorry if this was confusing on the web page. We are not looking to rewrite ilasm, we are only looking to change the backend engine for it.

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Casey Marshall
On Tue, 2008-04-08 at 10:14 +0100, Marek Safar wrote: Hello Casey, I've noticed that on a recent SVN build of mono, I get a CS0019 error if I try to compare a value type against null. E.g.: DateTime dt; if (dt != null) Console.WriteLine(dt); As far as I can tell, this is

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Marek Safar
Hello, I've noticed that on a recent SVN build of mono, I get a CS0019 error if I try to compare a value type against null. E.g.: DateTime dt; if (dt != null) Console.WriteLine(dt); As far as I can tell, this is the correct behavior, since a value type can't

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Casey Marshall
On Tue, 2008-04-08 at 19:26 +0100, Marek Safar wrote: Hello, So, my question is, what's going on here? Does anyone know what the semantics are if the compiler generates a conditional based on a `valuetype CMP null' test? This particular comparison is in-lined to false

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Casey Marshall
On Tue, 2008-04-08 at 12:53 +0100, Marek Safar wrote: Hello Andrés, Marek Safar wrote: Hello Casey, I've noticed that on a recent SVN build of mono, I get a CS0019 error if I try to compare a value type against null. E.g.: DateTime dt; if (dt != null)

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Marek Safar
Hello, I'm working with code that does this: if (valuetype != null) { // Code assuming `valuetype' is initialized. } This is correct, and `valuetype' will be always initialized Which is wrong, since the test is (apparently) always true. Even worse would be: if (valuetype

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Casey Marshall
On Tue, 2008-04-08 at 20:38 +0100, Marek Safar wrote: Hello, I'm working with code that does this: if (valuetype != null) { // Code assuming `valuetype' is initialized. } This is correct, and `valuetype' will be always initialized Yes, but the body of the 'if' is

[Mono-dev] [PATCH] ucs4 and utf16 conversion functions for eglib

2008-04-08 Thread Bill Holmes
Hello All, I have added the implementations for g_ucs4_to_utf16 and g_utf16_to_ucs4 along with unit tests. Please review. I did have some questions. First I added the code to the utf8.c file which I am thinking that may not be right. Let me know if there is a better place to put them or if a

Re: [Mono-dev] libgc Win64 Patch

2008-04-08 Thread Jonathan Chambers
Sorry, it's not licensed under MIT/X11, but whatever license Boehm/GC 7 releases the files under (which appears close to MIT/X11). Thanks, Jonathan On Tue, Apr 8, 2008 at 4:33 PM, Jonathan Chambers [EMAIL PROTECTED] wrote: Hello, Here is a patch that back ports a few lines from GC 7.0 to

[Mono-dev] libgc Win64 Patch

2008-04-08 Thread Jonathan Chambers
Hello, Here is a patch that back ports a few lines from GC 7.0 to support Win64. Code is contributed under MIT/X11 license. Thanks, Jonathan Index: win32_threads.c === --- win32_threads.c (revision 100097) +++ win32_threads.c

Re: [Mono-dev] Mono.Media for GSOC

2008-04-08 Thread Andreas Färber
Hi, Am 07.04.2008 um 20:51 schrieb Miguel de Icaza: As pointed out previously by someone, Sun's Java Media Framework is not the best point to model from. It is much too complicated and inefficient to use, and can be considered mostly dead (we had to use it at university for a project, but Sun

Re: [Mono-dev] libgc Win64 Patch

2008-04-08 Thread Andreas Färber
Hello Jonathan, Am 08.04.2008 um 22:43 schrieb Jonathan Chambers: Sorry, it's not licensed under MIT/X11, but whatever license Boehm/ GC 7 releases the files under (which appears close to MIT/X11). Thanks, Jonathan On Tue, Apr 8, 2008 at 4:33 PM, Jonathan Chambers [EMAIL PROTECTED]

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Mike Edenfield
Casey Marshall wrote: meaning `valuetype' would never be initialized. It's a little nit-picky, since I don't think this results in any real bugs, since the value types here are usually simple (e.g., Rectangle, DateTime), but it easily could. It almost seems like the buggy gmcs was doing a