Why do I receive an Unknown Windows exception of type=c000001d when using the Generic DLL interface in MATLAB 7.1 (R14SP3)?

2 views (last 30 days)
I have built a custom Generic DLL using a Windows compiler, and when I use it in MATLAB with the LOADLIBRARY and CALLLIB functions:
loadlibrary('myLib','myLib.h')
calllib('myLib','myFunction')
I receive the following Windows error:
Unknown Windows exception of type=c000001d

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error can indicate an illegal instruction, such as a Pentium 4 Streaming SIMD Extensions 2 (SSE2) instruction on a Pentium 3. For more information on ensuring compatibility with older processors, consult your compiler documentation.
For example, with Microsoft Visual C++ 2005, these options are controlled by selecting Project -> Properties -> Configuration Properties -> C/C++ -> Code Generation. Ensure that "Enable Enhanced Instruction Set" specifies a standard that is compatible with all processors you expect your library to encounter.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!