Why is dos() crashing my executable?
4 views (last 30 days)
Show older comments
I'm using a MATLAB script to run a standalone executable I wrote (C++) several times, each time with different inputs. This has been working perfectly up until the point I updated my standalone executable with parallelized code. Now, both the dos() and system() functions will cause my executable to crash immediately, whereas it runs fine when called outside of MATLAB.
I've even tried writing a "middleman" executable, which is called by the MATLAB script and in turn calls the parallelized executable, but I see the same behavior. What is it about the way MATLAB calls external programs that causes a program that functions perfectly well on its own to crash the moment it's called?
0 Comments
Answers (0)
See Also
Categories
Find more on File Operations 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!