Borrar filtros
Borrar filtros

Matlab Coder crashes while running with mex file

8 visualizaciones (últimos 30 días)
Harel Arnon
Harel Arnon el 27 de Jun. de 2022
Respondida: Tony Mohan Varghese el 28 de Jun. de 2022
while running the matlab coder , during the run-time checks while the matlab runs with its generated mex, it crashes leaving no crash report.
I tried to comment\uncomment line codes to see if there's a problematic line but didn't find any.The only thing that affects is the total amount of code.
Could this be a memory issue with the mex? how can I identify and solve this

Respuestas (1)

Tony Mohan Varghese
Tony Mohan Varghese el 28 de Jun. de 2022
You can debug the generated mex and identify the problem site. To debug generated MEX code, just pass the -g option to codegen and that will compile a debug MEX file. You can then debug that MEX code by following the same process you'd use for debugging hand-written MEX files:
In short, you compile and run the MEX in MATLAB and attach Visual Studio to MATLAB, stopping when the MEX code is executed.
Note that the -g option is the same as the Coder config setting EnableDebugging:

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by