BUG: Activator.CreateInstance Causes a Fatal Execution Engine Exception Error Message (327416)



The information in this article applies to:

  • Microsoft .NET Framework 1.0

This article was previously published under Q327416

SYMPTOMS

If you try to create an array of reference type objects with the Activator.CreateInstance() method, you receive the following error message in the common language runtime:
Fatal Execution Engine Error
If you run the same program from the Visual Studio .NET IDE, you receive the following error message:
An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

Compile and run the following code:
using System;

class MainClass 
{
  	static public void Main() 
	{
		Activator.CreateInstance(typeof(Object[]) );
	}
}
				

Modification Type:MajorLast Reviewed:11/6/2003
Keywords:kbbug KB327416