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.

MATLAB Terminates Unexpectedly When Calling Function in Shared Library

Some shared libraries, compiled as Microsoft® Windows® 32-bit libraries, use a calling convention that is incompatible with the default MATLAB® calling convention. The default calling convention for MATLAB and for Microsoft C and C++ compilers is cdecl. For more information, see the MSDN® Calling Conventions article.

If your library uses a different calling convention, create a loadlibrary prototype file and modify it with the correct settings, as described in MATLAB Answers™ article Why does MATLAB crash when I make a function call on a DLL in MATLAB 7.6 (R2008a)?

See Also

Related Topics

External Websites