Mex-file bugs calling a working C++ code
1 view (last 30 days)
Show older comments
Hi, i've got a really weird problem. I have a C++ code which is working perfectly well when i'm testing it with some inputs.
When I call exactly the same instructions in a mex function, without Matlab inputs, just calling the same code Matlab doesn't stop computing (infinite loop ?).
What is the difference between calling a code in a mex function, or in a classic main.cpp file ?
I really don't get what happens.
Thanks.
2 Comments
Answers (2)
Jan
on 10 Jun 2013
MEX-code is code. Code contains bugs. Bugs are known to let programs crash or loop infinitely.
0 Comments
See Also
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!