필터 지우기
필터 지우기

Matlab crashes after mex from cpp

조회 수: 12 (최근 30일)
Stelios Fanourakis
Stelios Fanourakis 2019년 8월 4일
답변: Prasad Parameswaran 2019년 10월 23일
Hello
I usually have my Matlab crashes after the succesfully completion of mex from cpp to mexmaci64. It gives a warning message that an internal error occured and needs to shut down and it prompts me either send a report to Matlab or not.
I need to try maybe more than 6-8 times to make it run without crashing. After multiple attemps, it will eventually finishes running without crashing. Any idea why this might happen?
  댓글 수: 5
Guillaume
Guillaume 2019년 8월 4일
The crash is because of a bug in the code that was compiled as mex. The mex file tries to access some memory it's not allowed.
Walter Roberson
Walter Roberson 2019년 8월 4일
For example if you compile the code and then quit MATLAB and then restart MATLAB and run code that uses the .mex* file, then do you still get the crash?
If you use mex to compile the file but do not run the .mex* file, then does the crash still appear?

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

채택된 답변

Prasad Parameswaran
Prasad Parameswaran 2019년 10월 23일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by