This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Limitations to Support of .NET Delegates

MATLAB® does not support associating a delegate instance with a generic .NET method.

When calling a method asynchronously, use the technique described in Calling a Method Asynchronously Without a Callback. Be aware that:

  • MATLAB is a single-threaded application. Therefore, handling asynchronous calls in the MATLAB environment might result in deadlocks.

  • For the technique described in the MSDN® topic Blocking Application Execution Using an AsyncWaitHandle, MATLAB does not support the use of the WaitOne() method overload with no arguments.

  • You cannot call EndInvoke to wait for the asynchronous call to complete.