MatLab C++ Shared Dll library initialization problem

9 ビュー (過去 30 日間)
kishore
kishore 2017 年 8 月 21 日
編集済み: Viren Gupta 2018 年 10 月 12 日
could you please provide the compatibility version for MATLAB R2016b with visual studio version.
same issue with MATLAB R2016b with visual studio 2013.
  1 件のコメント
Xuechu Xu
Xuechu Xu 2018 年 7 月 3 日
Hello, have you solved the problem of access violation? I have the same problem as yours. I appriciate it very much if you could tell me how to solve this.

サインインしてコメントする。

回答 (2 件)

Anatoly Khamukhin
Anatoly Khamukhin 2018 年 1 月 25 日
The same problem (Matlab2017 + VS 2015) for me. Probably there is some conflict with java used by MATLAB.
I've fixed it by
const char *args[] = {"-nojvm"};
const int count = sizeof(args) / sizeof(args[0]);
mclInitializeApplication(args, count))
instead of
mclInitializeApplication(NULL,0)

José-Luis
José-Luis 2017 年 8 月 21 日
編集済み: José-Luis 2017 年 8 月 21 日
This was the third hit on the list when googling "compatible compilers matlab 2016b".
Just a hint for the next time you try figuring out something like that.
  3 件のコメント
Viren Gupta
Viren Gupta 2018 年 10 月 12 日
Were you able to solve the issue of Access violation? I am facing a similar issue and need some help!

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by