[Mono-devel-list] Exception using CultureInfo

Jean-Marc ANDRE jeanmarc.andre at cpe.fr
Thu Oct 23 05:40:32 EDT 2003


Hi,

I've got a problem using CultureInfo.
I've got an ArgumentException while using the constructor
CultureInfo(string name).
Don't know if it comes from my mono installation or if it is an internal
bug.
Here is what I get:

Unhandled Exception: System.ArgumentException: An invalid argument was
specified.
in (unmanaged)
/home/jim/monocvs/install/lib/libmono.so.0(mono_raise_exception+0x1b)
[0x4007936f]
in (unmanaged) /home/jim/monocvs/install/lib/libmono.so.0 [0x4009ee7d]
in <0x0005a> System.Globalization.CultureInfo:Construct
(int,string,bool)
in <0x00098> System.Globalization.CultureInfo:.ctor (string,bool)
in <0x00012> System.Globalization.CultureInfo:.ctor (string)
in <0x0002d> .MainClass:Main ()

while the following class:

using System.Globalization;

public class MainClass {
	public static void Main() {
		CultureInfo c = new CultureInfo("en-US");
	}
}

Thanks
-- 
Jean-Marc ANDRE <jeanmarc.andre at cpe.fr>
-------------- next part --------------
using System.Globalization;

public class MainClass {
	public static void Main() {
		CultureInfo c = new CultureInfo("en-US");
	}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031023/f9bb0d92/attachment.bin 


More information about the Mono-devel-list mailing list