You are currently offline, waiting for your internet to reconnect

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

This article was previously published under Q327106
This article has been archived. It is offered "as is" and will no longer be updated.
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: 01/17/2015 05:55:04 - Revision: 2.6

Microsoft .NET Framework 1.0, Microsoft .NET Framework 1.1

  • kbnosurvey kbarchive kbbug kbcominterop kbmarshal kbpending KB327106
Feedback