invalidFunctionPointerInDelegate MDA

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 />  
  </assistants>  
</mdaConfig>  

See also