visual C++ call matlab dll(dynamic library) exception,is this a bug?

1 view (last 30 days)
environment:
windows 7
matlab7.0 / matlab2012a + VC6/VS2008/VS2010
I use follow file to generate a dll.
// .m file
function [ y ] = add(x)
y=x+1;
end
Although, the result is right when i run exe. But it's a lot of exception on output window with visual C++.
// matrixdriver.cpp is an example (path: R2012a\extern\examples\compiler)
mclmcrInitialize();
mclInitializeApplication(NULL,0);
addInitialize() ;
when go to this function【mclmcrInitialize();】 or 【mclInitializeApplication(NULL,0);】
visual C++ print follow exception:
“matlabtest.exe”: 已加载“D:\Program Files\MATLAB\MATLAB Compiler Runtime\v717\bin\win32\zlib1.dll”,Cannot find or open the PDB file
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed1f0 处的 fl::i18n::MwLcDataNotFound。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed1f0 处的 fl::i18n::MwLcDataNotFound。 matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed1f0 处的 fl::i18n::MwLcDataNotFound。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed278 处的 fl::i18n::MwLcDataNotFound。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed278 处的 fl::i18n::MwLcDataNotFound。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed278 处的 fl::i18n::MwLcDataNotFound。
......
when go to this function【addInitialize() ;】
visual C++ print follow exception:
“matlabtest.exe”: 已加载“C:\Windows\System32\profapi.dll”,Cannot find or open the PDB file
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x09aefce0 处的 boost::thread_interrupted。
线程 'Win32 线程' (0x1298) 已退出,返回值为 0 (0x0)。 matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0a6efc68 处的 boost::thread_interrupted。 线程 'Win32 线程' (0x8c0) 已退出,返回值为 0 (0x0)。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed8b4 处的 xsd_binder::MalformedDocumentError。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed188 处的 xsd_binder::MalformedDocumentError。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed8b4 处的 xsd_binder::MalformedDocumentError。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x002ed188 处的 xsd_binder::MalformedDocumentError。
......
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0a67f780 处的 boost::thread_interrupted。
线程 'Win32 线程' (0x79c) 已退出,返回值为 0 (0x0)。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0a7efd18 处的 boost::thread_interrupted。
线程 'Win32 线程' (0x13d8) 已退出,返回值为 0 (0x0)。
matlabtest.exe 中的 0x7482d36f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0a45fb7c 处的 boost::thread_interrupted。 线程 'Win32 线程' (0xedc) 已退出,返回值为 0 (0x0)。
“matlabtest.exe”: 已加载“D:\Program Files\MATLAB\MATLAB Compiler Runtime\v717\bin\win32\tbbmalloc.dll”,Cannot find or open the PDB file

Answers (0)

Community Treasure Hunt

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

Start Hunting!