필터 지우기
필터 지우기

MatLab C++ Shared Dll library initialization problem

조회 수: 3 (최근 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
José-Luis
José-Luis 2017년 8월 21일
Access violation: you are trying to access an invalid memory location.
What's the source of the error? No idea without looking at your code. This is something that is easier to troubleshoot using a debugger than reading code, unless it's glaringly obvious.
Also, that is a totally different question.
Please accept the answer that best solves your problem. It is the only "payment" us volunteers get.
Viren Gupta
Viren Gupta 2018년 10월 12일
편집: 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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by