Microsoft KB Archive/327106

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

Article ID: 327106

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.0
 * Microsoft .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(&quot;System.Int32*&quot;); Marshal.IsTypeVisibleFromCOM(t);

Keywords: kbbug kbcominterop kbmarshal kbpending KB327106

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.