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

Article translations Article translations
Article ID: 327106 - View products that this article applies to.
This article was previously published under Q327106
Expand all | Collapse all

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

Properties

Article ID: 327106 - Last Review: February 23, 2007 - Revision: 2.6
APPLIES TO
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1
Keywords: 
kbbug kbcominterop kbmarshal kbpending KB327106

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com