Matlab crashes after mex from cpp
显示 更早的评论
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 个评论
Stelios Fanourakis
2019-8-4
Walter Roberson
2019-8-4
Is this something that happens just as a result of using mex(), or is it something that happens when you run code that has been compiled with mex?
Stelios Fanourakis
2019-8-4
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
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!