MatLab C++ Shared Dll library initialization problem

could you please provide the compatibility version for MATLAB R2016b with visual studio version.
same issue with MATLAB R2016b with visual studio 2013.

1 comentario

Xuechu Xu
Xuechu Xu el 3 de Jul. de 2018
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.

Iniciar sesión para comentar.

Respuestas (2)

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 el 21 de Ag. de 2017
Editada: José-Luis el 21 de Ag. de 2017
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 comentarios

kishore
kishore el 21 de Ag. de 2017
thanks a lot! could you please help me with the following issues. I'm dealing with C++ and while debugging failing at <lib>Initialize(). if you need any further information please ping me. error: Access violation reading location
José-Luis
José-Luis el 21 de Ag. de 2017
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 el 12 de Oct. de 2018
Editada: Viren Gupta el 12 de Oct. de 2018
Were you able to solve the issue of Access violation? I am facing a similar issue and need some help!

Iniciar sesión para comentar.

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Ag. de 2017

Editada:

el 12 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by