title | description | ms.date | helpviewer_keywords | ms.assetid | ||||||
---|---|---|---|---|---|---|---|---|---|---|
exceptionSwallowedOnCallFromCom MDA |
Review the exceptionSwallowedOnCallFromCOM managed debugging assistant in .NET. This MDA occurs if an exception was thrown but there's no good way to report it. |
03/30/2017 |
|
55d6ab12-f251-4aab-aa64-aacbe9d9f974 |
[!INCLUDE net-framework-specific]
The exceptionSwallowedOnCallFromCOM
managed debugging assistant (MDA) is activated when an exception is thrown from common language runtime (CLR) code called from COM via a method that does not have an unmanaged HRESULT return type.
A call to a managed component from COM returns with a value of FALSE or 0. Alternatively, if the method has a void return type, there may be no indication that an exception was thrown during the execution of the method. In this case, the exception will be silently caught and execution will return to the COM caller.
An exception was thrown, but there is no valid way to report it.
Informational only, not necessarily indicative of a bug.
This MDA has no effect on the CLR. It only reports data about silently caught exceptions.
Informational message containing the method name, type name, and exception message.
<mdaConfig>
<assistants>
<exceptionSwallowedOnCallFromCom />
</assistants>
</mdaConfig>
- xref:System.Runtime.InteropServices.MarshalAsAttribute
- Diagnosing Errors with Managed Debugging Assistants
- Interop Marshaling