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 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/251948-mex-bad-allocation-error#comment_319712
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/251948-mex-bad-allocation-error#comment_319712
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/251948-mex-bad-allocation-error#comment_319715
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/251948-mex-bad-allocation-error#comment_319715
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/251948-mex-bad-allocation-error#comment_319875
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/251948-mex-bad-allocation-error#comment_319875
Sign in to comment.