PDA

Click to See Complete Forum and Search --> : ExecutionEngineExeception?!


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);
}
}
}

Pirate
Mar 5th, 2004, 01:37 PM
Both lines work fine . They return "US" .

sunburnt
Mar 5th, 2004, 09:30 PM
Thanks. I reinstalled the framework and it fixed it. I'm mystified.