BUG: Some Marshal Class APIs Throw System.ExecutionEngineException If You Pass a Pointer, ByRef, or Array Type (327106)



The information in this article applies to:

  • Microsoft .NET Framework 1.0
  • Microsoft Windows .NET Framework 1.1

This article was previously published under Q327106

SYMPTOMS

If you call some methods in the Marshal class, the application throws an exception that is similar to the following.
An unhandled exception of type 'System.ExecutionEngineException' occured in ConsoleApplication1.exe
where ConsoleApplication1.exe is the application that calls the Marshal class application programming interface (API) with a pointer, with the ByRef keyword, or with an array-type parameter.

STATUS

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

MORE INFORMATION

The following code can cause the problem.
Type t = Type.GetType("System.Int32*");
Marshal.IsTypeVisibleFromCOM(t);
				

Modification Type:MinorLast Reviewed:5/28/2003
Keywords:kbbug kbCOMInterop kbMarshal kbpending KB327106