RE: [Mono-list] mcs 0.26 fails on Windows

2003-09-16 Thread Varga Zoltan

 Hi All,

   I can reproduce this on my Win2K machine with a recent
snapshot.
This bug may only affect people in certain timezones. Here
is a small
testcase:

<<<<<<<<<<<<<<<<<<<<<<<<
using System;

class Hello {

public static void Main (String[] args) {
TimeZone.CurrentTimeZone.GetDaylightChanges
(2003);
}
}
<<<<<<<<<<<<<<<<<<<<<<<<

It also looks like to be a runtime problem. If I run this using
./mono.exe hello.exe
it fails.
But when I run it using --trace, it runs.

   Zoltan




Mark Gimelfarb <[EMAIL PROTECTED]> írta:

> I have WinXP running Mono 0.26 and it works just fine. I
compiled your
> test program and it ran fine. Here's my mono version
output from mcs
> --version:
>  
> Mono C# compiler version 0.26.42336.0
>  
> Regards,
> Mark.
>  
>  
> -Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
Paul Paximadis
> Sent: Monday, September 15, 2003 4:45 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [Mono-list] mcs 0.26 fails on Windows
>  
> Hi,
>  
> I installed mono-0.26-win32-2.exe on a Windows 2000
Professional
> machine.
> When I try and compile a simple "Hello World" app. I get
the errors
> below:
> This works fine with 'mono-0.25-win32-1.exe'.
>  
> I have also compiled a simple gtk-sharp program ( compiles
fine with
> 0.25 ) but when I try and execute with 'mono Hello.exe'
windows
> generates a unhadled exception etc.., yet I can run the
program fine
> with Microst.
> Any ideas.
>  
> Any help would be appreciated.
>  
> Thanks,
> Paul
>  
> 
> C:\C#Samples>mcs Hello.cs
>  
> Unhandled Exception: System.TypeInitializationException:
An exception
> was thrown
>  by the type initializer for System.Guid --->
> System.ArgumentOutOfRangeException
> : Argument is out of range
> in <0x001e3> 00 System.DateTime:.ctor (bool,long)
> in <0x00015> 00 System.DateTime:.ctor (long)
> in <0x001be> 00 System.CurrentTimeZone:GetDaylightChanges
(int)
> in <0x00046> 00 System.TimeZone:IsDaylightSavingTime
(System.DateTime)
> in <0x0001e> 00 System.CurrentTimeZone:GetUtcOffset
(System.DateTime)
> in <0x00078> 00 System.DateTime:.ctor (bool,long)
> in <0x0003b> 00 System.DateTime:get_Now ()
> in <0x0004e> 00 .GuidState:.ctor (bool)
> in <0x00026> 00 System.Guid:.cctor ()
> --- End of inner exception stack trace ---
>  
> in (unmanaged) 00 System.Guid:NewGuid ()
> in <0x00093> 00 System.Reflection.Emit.ModuleBuilder:.ctor
> (System.Reflection.Em
> it.AssemblyBuilder,string,string,bool,bool,bool)
> in <0x00159> 00
> System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule
(stri
> ng,string,bool,bool)
> in <0x00021> 00
> System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule
(stri
> ng,string,bool)
> in <0x000d0> 00 Mono.CSharp.CodeGen:Init (string,string,bool)
> in <0x006be> 00 Mono.CSharp.Driver:MainDriver (string[])
> in <0x0001b> 00 Mono.CSharp.Driver:Main (string[])
> 


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] mcs 0.26 fails on Windows

2003-09-16 Thread Mark Gimelfarb
Title: Message









I have WinXP
running Mono 0.26 and it works just fine. I compiled your test program and it
ran fine. Here’s my mono version output from mcs
--version:

 

Mono C# compiler version 0.26.42336.0

 

Regards,

    Mark.

 

 

-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Paximadis
Sent: Monday, September 15, 2003
4:45 AM
To:
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Mono-list] mcs 0.26
fails on Windows

 



Hi,





 





I installed mono-0.26-win32-2.exe on
a Windows 2000 Professional machine.





When I try and compile a simple
"Hello World" app. I get the errors below:





This works fine with
'mono-0.25-win32-1.exe'.





 





I have also compiled a simple
gtk-sharp program ( compiles fine with 0.25 ) but when I try and execute with
'mono Hello.exe' windows generates a unhadled exception etc.., yet I can run
the program fine with Microst.





Any ideas.





 





Any help would be appreciated.





 





Thanks,





Paul





 






C:\C#Samples>mcs Hello.cs





 





Unhandled Exception:
System.TypeInitializationException: An exception was thrown
 by the type initializer for System.Guid --->
System.ArgumentOutOfRangeException
: Argument is out of range
in <0x001e3> 00 System.DateTime:.ctor (bool,long)
in <0x00015> 00 System.DateTime:.ctor (long)
in <0x001be> 00 System.CurrentTimeZone:GetDaylightChanges (int)
in <0x00046> 00 System.TimeZone:IsDaylightSavingTime (System.DateTime)
in <0x0001e> 00 System.CurrentTimeZone:GetUtcOffset (System.DateTime)
in <0x00078> 00 System.DateTime:.ctor (bool,long)
in <0x0003b> 00 System.DateTime:get_Now ()
in <0x0004e> 00 .GuidState:.ctor (bool)
in <0x00026> 00 System.Guid:.cctor ()
--- End of inner exception stack trace ---





 





in (unmanaged) 00 System.Guid:NewGuid
()
in <0x00093> 00 System.Reflection.Emit.ModuleBuilder:.ctor
(System.Reflection.Em
it.AssemblyBuilder,string,string,bool,bool,bool)
in <0x00159> 00
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (stri
ng,string,bool,bool)
in <0x00021> 00 System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule
(stri
ng,string,bool)
in <0x000d0> 00 Mono.CSharp.CodeGen:Init (string,string,bool)
in <0x006be> 00 Mono.CSharp.Driver:MainDriver (string[])
in <0x0001b> 00 Mono.CSharp.Driver:Main (string[])










Re: [Mono-list] mcs 0.26 fails on Windows

2003-09-16 Thread Denis Gervalle
Hi Paul,

A new bug (48376) has been recently introduced regarding this problem in 
the 0.26 release. An old bug (45518) concerning the same kind of problem 
has already came up in the 0.25 release, but not with a simple program. 
Both seems related to the usage of DateTime:get_Now(). If you compile 
with another mcs (or event csc), using the DateTime:get_Now() under the 
0.26 runtime shows the same error. So, this seems runtime related.

By the way, I have also reproduce it under Win2000 Server SP4. It does 
not happen under Windows XP.
My current workaround is actually to use the 0.25 version that has also 
the benefit to be build with GC support.

Regards,

Denis Gervalle
SOFTEC sa
http://www.softec.st
Paul Paximadis wrote:

Hi,
 
I installed mono-0.26-win32-2.exe on a Windows 2000 Professional machine.
When I try and compile a simple "Hello World" app. I get the errors below:
This works fine with 'mono-0.25-win32-1.exe'.
 
I have also compiled a simple gtk-sharp program ( compiles fine with 
0.25 ) but when I try and execute with 'mono Hello.exe' windows 
generates a unhadled exception etc.., yet I can run the program fine 
with Microst.
Any ideas.
 
Any help would be appreciated.
 
Thanks,
Paul
 

C:\C#Samples>mcs Hello.cs
 
Unhandled Exception: System.TypeInitializationException: An exception 
was thrown
 by the type initializer for System.Guid ---> 
System.ArgumentOutOfRangeException
: Argument is out of range
in <0x001e3> 00 System.DateTime:.ctor (bool,long)
in <0x00015> 00 System.DateTime:.ctor (long)
in <0x001be> 00 System.CurrentTimeZone:GetDaylightChanges (int)
in <0x00046> 00 System.TimeZone:IsDaylightSavingTime (System.DateTime)
in <0x0001e> 00 System.CurrentTimeZone:GetUtcOffset (System.DateTime)
in <0x00078> 00 System.DateTime:.ctor (bool,long)
in <0x0003b> 00 System.DateTime:get_Now ()
in <0x0004e> 00 .GuidState:.ctor (bool)
in <0x00026> 00 System.Guid:.cctor ()
--- End of inner exception stack trace ---
 
in (unmanaged) 00 System.Guid:NewGuid ()
in <0x00093> 00 System.Reflection.Emit.ModuleBuilder:.ctor 
(System.Reflection.Em
it.AssemblyBuilder,string,string,bool,bool,bool)
in <0x00159> 00 
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (stri
ng,string,bool,bool)
in <0x00021> 00 
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (stri
ng,string,bool)
in <0x000d0> 00 Mono.CSharp.CodeGen:Init (string,string,bool)
in <0x006be> 00 Mono.CSharp.Driver:MainDriver (string[])
in <0x0001b> 00 Mono.CSharp.Driver:Main (string[])


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mcs 0.26 fails on Windows

2003-09-15 Thread Paul Paximadis
Title: Message



Hi,
 
I installed 
mono-0.26-win32-2.exe on a Windows 2000 Professional 
machine.
When I try and 
compile a simple "Hello World" app. I get the errors below:
This works fine with 
'mono-0.25-win32-1.exe'.
 
I have also compiled 
a simple gtk-sharp program ( compiles fine with 0.25 ) but when I try and 
execute with 'mono Hello.exe' windows generates a unhadled exception etc.., yet 
I can run the program fine with Microst.
Any 
ideas.
 
Any help would be 
appreciated.
 
Thanks,
Paul
 
C:\C#Samples>mcs Hello.cs
 
Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Guid ---> 
System.ArgumentOutOfRangeException: Argument is out of rangein 
<0x001e3> 00 System.DateTime:.ctor (bool,long)in <0x00015> 00 
System.DateTime:.ctor (long)in <0x001be> 00 
System.CurrentTimeZone:GetDaylightChanges (int)in <0x00046> 00 
System.TimeZone:IsDaylightSavingTime (System.DateTime)in <0x0001e> 00 
System.CurrentTimeZone:GetUtcOffset (System.DateTime)in <0x00078> 00 
System.DateTime:.ctor (bool,long)in <0x0003b> 00 
System.DateTime:get_Now ()in <0x0004e> 00 .GuidState:.ctor 
(bool)in <0x00026> 00 System.Guid:.cctor ()--- End of inner 
exception stack trace ---
 
in (unmanaged) 00 System.Guid:NewGuid ()in <0x00093> 00 
System.Reflection.Emit.ModuleBuilder:.ctor 
(System.Reflection.Emit.AssemblyBuilder,string,string,bool,bool,bool)in 
<0x00159> 00 System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule 
(string,string,bool,bool)in <0x00021> 00 
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule 
(string,string,bool)in <0x000d0> 00 Mono.CSharp.CodeGen:Init 
(string,string,bool)in <0x006be> 00 Mono.CSharp.Driver:MainDriver 
(string[])in <0x0001b> 00 Mono.CSharp.Driver:Main 
(string[])


Hello.cs
Description: Hello.cs