ExecutionEngineExeception?!
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:
Quote:
An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll (no additional information)
Code:
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);
}
}
}