sunburnt
Mar 3rd, 2004, 06:02 PM
Perhaps someone else could run this code And tell me if it fails for them. I am using the .NET Framework 1.1 and it dies on the marked line with this:
An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll (no additional information)
using System;
using System.Globalization;
namespace Test
{
class CTest
{
[STAThread]
static void Main(string[] args)
{
CultureInfo c = CultureInfo.CurrentCulture;
RegionInfo r = RegionInfo.CurrentRegion;
// or
// RegionInfo r = new RegionInfo(c.LCID);
// Any reference to any property of r will cause this exception.
Console.WriteLine(r.Name);
}
}
}
An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll (no additional information)
using System;
using System.Globalization;
namespace Test
{
class CTest
{
[STAThread]
static void Main(string[] args)
{
CultureInfo c = CultureInfo.CurrentCulture;
RegionInfo r = RegionInfo.CurrentRegion;
// or
// RegionInfo r = new RegionInfo(c.LCID);
// Any reference to any property of r will cause this exception.
Console.WriteLine(r.Name);
}
}
}