Exceptions when calling mclInitial​izeApplica​tion() C++

5 views (last 30 days)
When I call mclInitializeApplication(NULL, 0) from my C++ application I get an unhandled exception "Microsoft C++ exception: MathWorks::mcl::mclInternalException at memory location 0x00B5EEF8". I have tried with the "-nojvm" parameter, still the same issue.
I set up a small test project that just calls that function but that gives me a different exception (Microsoft C++ exception: fl::i18n::MessageCatalog::MessageCatalogNotInitialized at memory location 0x0122EED4)
I run MATLAB Compiler Runtime 8.2 VS2017 (but I use the VS2015 build tool chain).
I have verified that the runtime is in the path, verified the include/libary paths & that we build for x86.
Include path: C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\extern\include
Library path: C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\bin\win32
I tried reinstalling the runtime, that did not help. I have tried running the test app on a windows 8 machine with VS2013 and still get exceptions.
Is there something I have for got in the setup?

Answers (0)

Categories

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

Products


Release

R2013b

Community Treasure Hunt

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

Start Hunting!