I have a problem calling C exported library from MATLAB 2013a 32 bit

9 次查看(过去 30 天)
Hello there everybody,
I would like to ask for help. I am a developer in a company that's client of your solution. I am in charge of developing a call to exported DLLs from Matlab and am actually doing the technical/functional analyses of this demand. We have licensed MATLAB 2013 and i asked the user to export the DLL in all the option he has available. As of my first "hello world" kind of test, i picked this DLL as C exported type, which is a calculating function they have in here. Runtime is installed, same version and architecture (32 bit).
I am executing mclmcrInitialize first. Then mclInitializeApplication. Further, if no errors, i am executing the DLL initialize function and executing the calculation function. After that i am terminating the DLL.
But i am getting this dump as follows. Could anybody please help me figure out what this stack means?
Much appreciated,
------------------------------------------------------------------------ Access violation detected at Mon May 15 13:52:16 2017 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled Default Encoding : windows-1252 MATLAB Architecture: win32 MATLAB Root : C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82 MATLAB Version : 8.2.0.701 (R2013b) Operating System : Microsoft Windows 7 Processor ID : x86 Family 6 Model 60 Stepping 3, GenuineIntel Virtual Machine : Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot™ Client VM mixed mode Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Abnormal termination: Access violation
Register State (from fault): EAX = 07c0f208 EBX = 07c0f250 ECX = 07c0f1a4 EDX = 07022978 ESP = 07c0f178 EBP = 07c0f190 ESI = 00000000 EDI = 06a7fee8
EIP = 7d26b686 EFL = 00010212
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault): [ 0] 0x7d26b686 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmx.dll+00112262 mxMustBeSparse+00010406 [ 1] 0x7d26c352 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmx.dll+00115538 mxCreateSharedDataCopy+00000018 [ 2] 0x0275337c C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00799612 cmddistributor::detail::FEvalOpaqueDataEvent<void>::createEvent+00000396 [ 3] 0x027536ac C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00800428 cmddistributor::detail::FEvalOpaqueInputData<std::vector<boost::shared_ptr<mxArray_tag const >,std::allocator<boost::shared_ptr<mxArray_tag const > > > const >::getInputs+00000124 [ 4] 0x04980a29 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\mvm.dll+00330281 mvm::detail::DefaultMVM::protectedRestore+00003337 [ 5] 0x02748f3d C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00757565 cmddistributor::FEvalIIP::getInputArguments+00000029 [ 6] 0x027564d6 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00812246 iqm::DefaultFEvalPlugin::getRhs+00000054 [ 7] 0x02756210 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00811536 iqm::BaseFEvalPlugin::execute+00000048 [ 8] 0x7c9a001e C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\mcr.dll+00131102 mcr_initialize_main+00005278 [ 9] 0x0270646f C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00484463 iqm::initialize+00000303 [ 10] 0x0270c813 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00509971 iqm::initialize+00025811 [ 11] 0x02704cc4 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\iqm.dll+00478404 iqm::IqmInputRequestEvent::EventType+00031540 [ 12] 0x043c2d8c C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\uiw.dll+00339340 UIW_IsUserMessage+00000124 [ 13] 0x043c3349 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\uiw.dll+00340809 UIW_SetGLIMUserMsg+00000105 [ 14] 0x043c33ee C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\uiw.dll+00340974 UIW_SetGLIMUserMsg+00000270 [ 15] 0x76398f26 C:\WINDOWS\syswow64\USER32.dll+00167718 RemovePropA+00000178 [ 16] 0x763880a9 C:\WINDOWS\syswow64\USER32.dll+00098473 GetUserObjectInformationW+00000065 [ 17] 0x76388ba1 C:\WINDOWS\syswow64\USER32.dll+00101281 RegisterClassW+00000316 [ 18] 0x7777011a C:\WINDOWS\SysWOW64\ntdll.dll+00065818 KiUserCallbackDispatcher+00000046 [ 19] 0x763971ac C:\WINDOWS\syswow64\USER32.dll+00160172 PeekMessageA+00000360 [ 20] 0x043a1fad C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\uiw.dll+00204717 UIW_SetCurrentDialog+00000637 [ 21] 0x043c45a4 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\uiw.dll+00345508 ws_FreeSystemFont+00000452 [ 22] 0x02e723e4 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+00992228 services::system_events::PpeDispatchHook::~PpeDispatchHook+00055588 [ 23] 0x02e72bfa C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+00994298 services::system_events::PpeDispatchHook::~PpeDispatchHook+00057658 [ 24] 0x02e7158f C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+00988559 services::system_events::PpeDispatchHook::~PpeDispatchHook+00051919 [ 25] 0x02e7391b C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+00997659 services::system_events::PpeDispatchHook::~PpeDispatchHook+00061019 [ 26] 0x02e7bb5a C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+01031002 sysq::removeProcessPendingEventsHook+00010746 [ 27] 0x02e7bdbe C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+01031614 svWS_ProcessPendingEvents+00000094 [ 28] 0x02e7bdf2 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\libmwservices.dll+01031666 svWS_ProcessPendingEvents+00000018 [ 29] 0x7c9940d3 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\mcr.dll+00082131 mcr::runtime::setInterpreterThreadToCurrent+00030899 [ 30] 0x7c994390 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\mcr.dll+00082832 mcr::runtime::setInterpreterThreadToCurrent+00031600 [ 31] 0x7c988fbf C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32\mcr.dll+00036799 mcrInstantiationError::operator=+00003231 [ 32] 0x7558336a C:\WINDOWS\syswow64\kernel32.dll+00078698 BaseThreadInitThunk+00000018 [ 33] 0x77799902 C:\WINDOWS\SysWOW64\ntdll.dll+00235778 RtlInitializeExceptionChain+00000099 [ 34] 0x777998d5 C:\WINDOWS\SysWOW64\ntdll.dll+00235733 RtlInitializeExceptionChain+00000054
If this problem is reproducible, please submit a Service Request via: http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by