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
method overload with no arguments.
You cannot call
EndInvoke to wait
for the asynchronous call to complete.