Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
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

Réponses (1)

Lokesh
Lokesh le 23 Juil 2024
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 commentaire
王栋
王栋 le 23 Juil 2024
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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by