Results 1 to 3 of 3

Thread: ExecutionEngineExeception?!

  1. #1

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    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:

    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);
    		}
    	}
    }
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Both lines work fine . They return "US" .

  3. #3

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    Thanks. I reinstalled the framework and it fixed it. I'm mystified.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width