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

errorintelMATLABprocessor

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

Best Answer

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.