Freigeben über


InvalidFunctionPointerInDelegate 

The InvalidFunctionPointerInDelegate managed debugging assistant (MDA) is activated when an invalid function pointer is passed in to construct a delegate over a native function pointer.

Symptoms

Access violations or unexpected memory corruption when using a delegate over a function pointer.

Cause

An invalid function pointer was specified.

Resolution

Specify a valid function pointer

Effect on the Runtime

This MDA has no effect on the CLR.

Output

The invalid function pointer.

Configuration

<mdaConfig>
  <assistants>
    <invalidFunctionPointerInDelegate enable="false" />
  </assistants>
</mdaConfig>

See Also

Reference

MarshalAsAttribute

Concepts

Diagnosing Errors with Managed Debugging Assistants
Interop Marshaling Overview

Other Resources

Interoperability