필터 지우기
필터 지우기

When VS initializes the library generated by calling Matlab, the following problem occurs and the application crashes.

조회 수: 24 (최근 30일)
Hello expert, I would like to ask if Matlab2015b (32-bit) is compatible with vs2013(32-bit), the problem I am having now is that when I generate the corresponding .lib.h.dll.crf with Matlab, I call it with vs2013, but when it comes to initializing the loading library I generated, the application somehow jumps out. Prompt:
First-chance exception at 0x7695A782 in MfdPrj.exe: Microsoft C++ exception: MathWorks::System::SimpleException at memory location 0x4C0FD8AC.
First-chance exception at 0x7695A782 in MfdPrj.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
and the following questions are asked
Ask the great god for guidance

답변 (1개)

Lokesh
Lokesh 2024년 7월 23일 12:32
I understand that you are encountering errors when initializing the library generated by calling MATLAB.
Please refer to the following MATLAB Answer, which discusses a similar issue and several alternative workarounds that might help resolve the problem:
  댓글 수: 1
王栋
王栋 2024년 7월 23일 14:12
Thank you for your answer. I really appreciate it. After carefully reviewing your reference answers, I don't think it's a software compatibility issue with matlab2015b (32-bit) and vs2013 (32-bit project) because I followed the official compatibility guidelines. I also don't think it's a path issue because I added and referenced the standard libraries completely. I'm confused. I tried to change the properties in the VS project to mixed programming, but when initializing the libraries, the application still popped up. I don't think there's a good way to mix C++with Matlab at the moment, so I can only use C++to build the model

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

카테고리

Help CenterFile Exchange에서 Build MATLAB Interface to C++ Library에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by