Mex bad allocation error
Afficher commentaires plus anciens
Hi,
I have a mex file which i run from matlab. It works fine. However, if i try to run it multiple times in a loop ( about 25 times) i get "Unexpected Standard exception from MEX file. What() is:bad allocation" What is this error and what do i need to look for in order to fix it ?
3 commentaires
Geoff Hayes
le 30 Oct 2015
Itzik - are you allocating memory within your MEX function? Is the loop outside of the MEX function (so are you calling it 25 times from MATLAB, or iterating 25 times within the function)? You may need to post a subset of the code so that we can get an idea of what you are trying to do with this function.
Itzik Ben Shabat
le 1 Nov 2015
Réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!